I have posted this question yesterday - but in another topic - so repeating here!
In SeaDAS GUI there is a way to get 50m land mask (based on SRTM data). Is there any way to include this high-res land mask when running l2gen on a Linux machine to batch process L1 to L2 conversion for OLI images?
No. The 50m landmask in SeaDAS is a series of tiled PNG images, which is not a format that l2gen reads. For a project the OBPG supports, we have a limited scope (the continental US) 60m resolution landmask based on the SRTM data set. That one l2gen does read. It will be part of the next SeaDAS release, but if your interests are limited to CONUS, you can pull this file down and use it now:
Could you please help me with its usage in l2gen? I see that current land mask file is located in ocssw/share/common. I see these files:
landmask.dat landmask_GMT15ARC.nc landmask_dilated_25.dat landmask_null.dat
I will add the 60m land mask to this directory. Should I specify this file name in the parameter file for l2gen? I'd really be grateful if you can let me know which program file would read this data during l2gen processing.
The l2gen usage statement (what you get when l2gen runs with no inputs or with only --help) lists (most) of the parameters it accepts (a few are super secret :wink:).
The landmask is:
land (ifile) (default=$OCDATAROOT/common/landmask_GMT15ARC.nc) = land mask file
So, in your parameter file (or on the command line), add:
land=<path where you put it>/lwm_CONUS_SRTM60m_v3.1.ncIt can live anywhere,so lon as the
<path where you put it>points to is where it is.
When we release it with SeaDAS, that'll be