-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save Datasets using SCMI #225
Comments
I was able to resolve the issue by defining the variable in scmi.py. I opted to call it "platform_name" for my test (below). Thereafter, the scmi writer ran smoothly and created the image. I copied the image to AWIPS and it does indeed work as expected.
|
@WxmanJ Could you please undo your changes to The way the SCMI writer (and all of satpy works) is by using the metadata attached to each dataset to figure out what that dataset is and what to do with it. In the version of satpy you are working with all of a dataset's metadata is kept in a |
Adding "sensor" was actually a mistyping on my part. The script I am using does not actually contain that -- it was in the original script, but not the modified one I am using now. I edited the issue and removed it. I also removed my changes to scmi.py. Adding the print statement requested, this is what is output.
|
Congratulations! You found two bugs. In your copy of the When I originally made the SCMI writer for satpy I was using my geocat reader. There is a bug in the geocat reader (typo I guess) where I use |
I was actually just commenting the same thing about "platform" and "platform_name." You stole my thunder. :-P The writer does work correctly after making the change. |
@WxmanJ Awesome! Thanks for your patience. Does the data load in to AWIPS? It may not look the way you want until style rules are set up, but if it at least loads that's a good sign. I won't be fixing this bug in the 0.8.x version of satpy, but it will be fixed in future 0.9 releases. |
The Wari data does load into AWIPS and I am in the process of setting up style rules. I will be testing MSG data later today. @davidh-ssec Kudos on the writer! I am actually quite impressed with the methods you setup for tiling and pixels. That must have taken some time to put together, but it makes life so much easier for us "AWIPS" users in the end. Thank you! |
I've probably rewritten it 4 times because of bugs and AWIPS being a pain in what it accepts as input. Glad it is working now. |
David, I just tried the same type of script using Meteosat-11 data. Upon loading the data into AWIPS, I am getting "No Data" for the display. I have created a style rule for it and it does load. Should I post this as a separate issue? My traceback below.
|
If you do Edit: Please use 3 back ticks (`) to format your output above. |
If you inspect the NetCDF file that is generated by the SCMI writer (I believe it defaults to one tile), what does the data look like? Is it all fills? I have no experience putting this data through the SCMI writer, but it should be have very similarly. Another possibility is that it is not being written with the correct units for either the SCMI writer to convert it to what AWIPS expects or it may be units that AWIPS isn't configured to understand. |
The data units are in Kelvin. Here is a short summary for the IR108:
If you would like to review the file generated, I am attaching it. |
I don't have time to look at the file. You'll have to look yourself using either The only other thing that stands out to me is the standard_name which for most other BTs I've seen should be "toa_brightness_temperature". I don't think AWIPS cares about standard_name, but it may be something to look at. |
There is some missing data judging by the "_," marks, but for the most part, there is def data there. |
Just for the sake of documenting a comparison, here is the print detail from both Himawari-8 and Meteosat-11. Not sure if this will add any value, but I wanted to at least present it. I did notice the DatasetID was not present on Meteosat-11. Himawari:
Meteosat:
|
I am having an issue using the beta scmi writer. I spoke with David and he mentioned several of the variables are not needed; however, the writer seems to give warnings/errors unless I add the platform, sensor, source_name, and others. Upon entering all requested variables, I am still getting the KeyError: 'platform'.
Here is my script.
Here is the traceback I receive using debug.
The text was updated successfully, but these errors were encountered: