I have two questions :
1) Is there a way to bin L1B files (spatially / temporally) ? I would like to create daily MODISA files in L1B format.
2) Is there a way to convert the L1B file into netCDF ? Just to read it later with Matlab / Python.
- Subject Matter Expert
- Posts: 142
- Joined: Tue Feb 09, 2021 8:19 am America/New_York
coordinates (i.e. scan-line and pixel), it is not possible (by definition) to
combine individual scenes into a daily level-1 file.
You can, however, bin individual scenes and combine them into a
daily level-3 format.
For most of our products, we do not archive L1B, so our software that generates
L1B still produces HDF4 instead of the NetCDF4 that we now store our archive
products in. I imagine that there are Matlab or Python utilities that read HDF4.
Here's how it can be done:
l2gen ifile=<MODIS L1B> geofile=<MODIS GEO> ofile=<L2 filename> atmocor=0 gain=[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0] l2prod=Lt_nnn
l2bin ifile=<L2_files.txt> ofile=<Daily L3b> flaguse=ATMFAIL
l3mpagen ifile=<Daily L3b> ofile=<Daily L3m>
The output of the l2gen example above would be a reasonably equivalent netCDF4 version of the L1B that could easily be read by tools that read netCDF.