-
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
The reader "viirs_l1b" cannot read the VIIRS L1B data #1489
Comments
This was updated by @simonrp84 in #1420 and was released in Satpy 0.24. Please update your version of Satpy. Closing this since this should be fixed. Feel free to comment here if you still have issues after upgrading and we can reopen it. |
The previous problem has been solved by updating to version 0.24. But now the code asks for the coordinates which are missing. code: from satpy.scene import Scene
from glob import glob
myfile = glob("VNP02DNB_NRT.A2020326.0912.001.nc")
scn = Scene(reader="viirs_l1b", filenames=myfile)
scn.load(['DNB']) Error message:
My aim is to convert the VIIRS data to GeoTIFF. |
These messages are warnings, not necessarily errors. Satpy will always try to load the geolocation information for the data it is loading and it can't do that without the geolocation files in the case of VIIRS data. For saving to geotiff: you won't be able to do that without resampling as VIIRS data is not pre-gridded (it is a swath of pixels and non-uniform distances/sizes). Resampling will also require the geolocation files as you can't resample without knowing where the pixels are. |
The geolocation file ( Code: from satpy.scene import Scene
from glob import glob
file1 = glob("VNP02IMG_NRT.A2020351.0154.001.nc")
file2 = glob("VNP03IMG_NRT.A2020354.0012.001.nc")
scn_main = Scene(reader="viirs_l1b", filenames=file1)
scn_geoloc = Scene(reader="viirs_l1b", filenames=file2)
scn_geoloc.load(['i_lon'])
scn_geoloc.load(['i_lat'])
main_data.load(['I05']) |
You need to pass all the files to a single Scene object:
If you personally want to access the lon/lat arrays then the easiest way would be to do:
But the resampling in Scene.resample already knows how to do this. |
Code:
Error message:
Environment Info:
The text was updated successfully, but these errors were encountered: