Open sgcderek opened 1 year ago
Any idea if these are normal L1B files? Here is a link to the configuration file that has all the file patterns supported by the VIIRS L1B reader:
The main difference seems to be the 01
part of the prefix. V
is expected, J1
is expected, the 01
after those is not. We expect something like 02IMG
for example. I don't usually use Earthdata. Could you point me to the product catalog that describes this product?
Ah those are likely the raw radiances:
https://www.earthdata.nasa.gov/learn/find-data/near-real-time/viirs
Our reader only supports the calibrated L1B products.
Indeed it appears that I have been mistakenly downloading L1A files instead L1B, thank you. However I am running into another issue, with a correct file, simply trying to save a single band as a png file;
from satpy.scene import Scene
reader = "viirs_l1b"
scn = Scene(reader=reader, filenames=["VJ102IMG_NRT.A2023092.1200.021.2023092135849.nc"])
scn.load(['M01'])
scn = scn.resample(resampler='native')
scn.save_datasets(filename="__{name}.png")
I get the following errors;
/usr/lib/python3/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
Required file type 'vgeom' not found or loaded for 'm_lon'
Required file type 'vgeom' not found or loaded for 'm_lat'
Required file type 'vl1bm' not found or loaded for 'M01'
The following datasets were not created and may require resampling to be generated: DataID(name='M01', wavelength=WavelengthRange(min=0.402, central=0.412, max=0.422, unit='µm'), resolution=742, calibration=<calibration.reflectance>, modifiers=())
Traceback (most recent call last):
File "/home/derek/satpy/viirs-combiner.py3", line 6, in <module>
scn = scn.resample(resampler='native')
File "/home/derek/.local/lib/python3.10/site-packages/satpy/scene.py", line 958, in resample
destination = self.finest_area(datasets)
File "/home/derek/.local/lib/python3.10/site-packages/satpy/scene.py", line 313, in finest_area
return self._compare_areas(datasets=datasets, compare_func=max)
File "/home/derek/.local/lib/python3.10/site-packages/satpy/scene.py", line 244, in _compare_areas
areas = self._gather_all_areas(datasets)
File "/home/derek/.local/lib/python3.10/site-packages/satpy/scene.py", line 297, in _gather_all_areas
raise ValueError("No dataset areas available")
ValueError: No dataset areas available
Even though I am using the native resampler
That paraniko warning is a little odd, but likely not the issue. Try assigning the resampled Scene to a new name instead of reusing "scn"...but also a single band isn't supposed to require resampling. 🤔 I'll have to think about this later when I have more time.
Oh you only gave it the I band file. You need to provide the M band (MOD) and geolocation for M bands to be able properly resample. Without the geo you should be OK saving to PNG...I think.
Describe the bug Trying to open an nc file downloaded from NOAA containing VIIRS NRT data gives
ValueError: No supported files found
To Reproduce
Expected behavior The scene is loaded without errors.
Actual results
Environment Info:
viirs_l1b
viirs_sdr
viirs_compact
all OKAdditional context Tried with all three above mentioned readers. The nc file was obtained from NOAA Earthdata, full link;
https://nrt3.modaps.eosdis.nasa.gov/api/v2/content/archives/allData/5201/VJ101_NRT/2023/092/VJ101_NRT.A2023092.1200.021.2023092130010.nc