Extracting spectral data from L1B netCDF4 files
Posted: Thu Jan 27, 2022 11:25 pm America/New_York
I'm trying to extract spectral radiance, sensor zenith/azimuth, and solar zenith/azimuth for unsaturated cloud pixels from HICO data I downloaded from OBDAAC Level 1 & 2 browser (https://oceancolor.gsfc.nasa.gov/cgi/browse.pl?sen=amod). I am having a few issues.
First, I can't seem to find the actual spectral radiance ('Lt') data from the L1B files. My issue is similar to the one reported here:
https://forum.step.esa.int/t/lt-data-in-nc-format-downloaded-from-nasa-could-not-be-displayed-entirely/30593
only I can't view the data in either SNAP or SeaDAS. I'm using these viewers to browse, but I'm also using the netCDF4 python library to navigate and pull data from these files, and they also aren't showing anything about TOA radiance data aside from the metadata (e.g. wavelengths, band fwhm, units, scaling factors). Given how large these files are, it seems the data must be there. I've tried two different L1B files from two different months.
Second, I'm having problems pulling azimuthal angle data, the same as the user in this post:
viewtopic.php?f=7&t=1609
I think the answer provided here - that the angle data is outside the bounds of the valid bounds (-180 to 180, whereas actual azimuth is stored 0 to 360) is correct. The user said they resolved it on a different computer but I'm sort of wondering if they just pulled a file that, by luck, didn't have azimuthal angles above 180. This isn't a huge deal to me because I, too, can find such data, but it is sort of annoying.
Finally, the Ocean Color "Sensor and Data Characteristics" page (https://oceancolor.gsfc.nasa.gov/hico/instrument/dataset-characteristics/) has a section on flags that suggests L1B files have flags for things like clouds, which is exactly what I need to create a mask for, but I can't seem to locate this either. The page in question is for hdf5 files, not netCFD4, so maybe that's the difference.
I can find spectral radiance data in L2 files but these seem to lack sensor/solar angle information (haven't looked in python yet, only SeaDAS).
Any insight is appreciated, thanks!
First, I can't seem to find the actual spectral radiance ('Lt') data from the L1B files. My issue is similar to the one reported here:
https://forum.step.esa.int/t/lt-data-in-nc-format-downloaded-from-nasa-could-not-be-displayed-entirely/30593
only I can't view the data in either SNAP or SeaDAS. I'm using these viewers to browse, but I'm also using the netCDF4 python library to navigate and pull data from these files, and they also aren't showing anything about TOA radiance data aside from the metadata (e.g. wavelengths, band fwhm, units, scaling factors). Given how large these files are, it seems the data must be there. I've tried two different L1B files from two different months.
Second, I'm having problems pulling azimuthal angle data, the same as the user in this post:
viewtopic.php?f=7&t=1609
I think the answer provided here - that the angle data is outside the bounds of the valid bounds (-180 to 180, whereas actual azimuth is stored 0 to 360) is correct. The user said they resolved it on a different computer but I'm sort of wondering if they just pulled a file that, by luck, didn't have azimuthal angles above 180. This isn't a huge deal to me because I, too, can find such data, but it is sort of annoying.
Finally, the Ocean Color "Sensor and Data Characteristics" page (https://oceancolor.gsfc.nasa.gov/hico/instrument/dataset-characteristics/) has a section on flags that suggests L1B files have flags for things like clouds, which is exactly what I need to create a mask for, but I can't seem to locate this either. The page in question is for hdf5 files, not netCFD4, so maybe that's the difference.
I can find spectral radiance data in L2 files but these seem to lack sensor/solar angle information (haven't looked in python yet, only SeaDAS).
Any insight is appreciated, thanks!