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
Latitude and Longitude for GK2A AMI products #2399
Comments
Hi @Frankie91, I'm not familiar with the AMI data, but satpy is capable of reading the level 1b netcdf files and thus provide the longitudes and latitudes for every pixel. Something like this should work: from satpy import Scene
import glob
if __name__ == "__main__":
curfiles = glob.glob('/path/to/my/ami/files/*.nc')
scn = Scene(curfiles, reader='ami_l1b')
channel = 'C05'
scn.load([channel])
lons, lats = scn[channel].attrs["area"].get_lonlats() Tell me if it works! |
Hi @mraspaud, Thank you for the prompt answer. I've tried your code snippet with L1b and L2 files both for my region of interest and for the full AMI disk, but I always get the same identical error message:
|
Do you have netcdf installed? |
Maybe this can help: https://satpy.readthedocs.io/en/stable/quickstart.html#troubleshooting |
@simonrp84 I assume you meant netcdf4 which yes, I have installed(probably got it with xarray). @mraspaud I do get the following message with regard to the ami_l1b reader: ami_l1b: cannot find module 'satpy.readers.ami_l1b' (No module named 'pyspectral') |
@Frankie91 just install the |
@mraspaud That solved it with the reader, however now I get the following error message:
For clarity, I've modified the channel name to 'image_pixel_values' because that is the only band available in the netcdf files that can be downloaded from the korean meteorological agency - they do not provide a single netcdf with all bands, but separate ones for each band. |
@Frankie91 I'm not sure I understand. If you have a single L1b file then can you pass that file to the Scene and load the related band for that file? You can also see |
@djhoese Yes, that was indeed my plan - work with a band with 2 km resolution so I could get lon-lat arrays that I could then also use for the AOD product. Using
|
@Frankie91 I think you forgot one piece from the line you copied from my code, it should be |
@mraspaud correct, my bad :) That finally solved it, Thanks everyone! |
Hello everyone,
Hope this is the right place to ask this question. I am currently trying to obtain estimates of the latitude and longitude for each pixel of GK2A AMI AOD L2 products for its 'East Asia' observation area. I first wanted to test whether I could, with some adaptation, use the L1 reader provided by this package, but I don't see it when running available_readers().
My second attempt was to adapt the following calc_latlon function (original source: https://github.com/lsterzinger/goes-l2-latlon-tutorial/blob/main/tutorial.ipynb) which I already use to make identical estimates for identical GOES ABI L2 products:
The Netcdf files provided by the South Korean Meteorological Agency, however, do not include the required information about the horizontal and vertical scan angles (in radians), used by the function to define x and y at the beginning. Everything else is provided, as the metadata for an example file show:
Does anyone know if there is an alternative approach, either in satpy or with other packages, to estimate these scan angles for each GK2A AMI pixel? Or, alternatively, of another way to obtain the same latitude and longitude estimates for GK2A AMI products?
Thank you in advance for your attention!
The text was updated successfully, but these errors were encountered: