Reducing processing time required to produce l2gen formatted metadata
Posted: Fri Jan 14, 2022 12:24 pm America/New_York
Hello,
I am attempting to create an 'imitation' l2gen netcdf that can be used with l2bin/l3bin from a level 2 file generated by an alternative atmospheric correction algorithm (e.g., ACOLITE) and algorithm (e.g., PC/Chl from a machine learning algorithm). I successfully did this by running l2gen on a single vertical line of the imagery, creating a new imitation netcdf using the metadata from the l2gen produced netcdf, and appending the water quality product calculated from the alternative water quality algorithm/atmospheric correction method. However, on high resolution imagery (e.g., MSI) this process can take a while to basically just generate l2gen formatted metadata for my application. Is there a way to only generate the l2gen metadata (loaded in SeaDAS as 'Global_attributes' and 'scan_line_attrbutes') for the netcdf, without estimating any product? Or is there a product I can specify that is rapidly generated across the entire image? I attempted to turn off atmospheric correction and select a l2prod that shouldn't take long to calculate (using the below arguments/keywords), but the process still takes a relatively long time.
I currently use '--epixl=2', '"--atmocorr=0"' and '--l2prod="pixnum"' as arguments/keywords to l2gen, to reduce required processing time.
Of course, I could write my own code to grab the metadata, and appropriately format it, but I was hoping there might be a way to speed up generation of the metadata using l2gen.
Thanks for your help,
Ryan
I am attempting to create an 'imitation' l2gen netcdf that can be used with l2bin/l3bin from a level 2 file generated by an alternative atmospheric correction algorithm (e.g., ACOLITE) and algorithm (e.g., PC/Chl from a machine learning algorithm). I successfully did this by running l2gen on a single vertical line of the imagery, creating a new imitation netcdf using the metadata from the l2gen produced netcdf, and appending the water quality product calculated from the alternative water quality algorithm/atmospheric correction method. However, on high resolution imagery (e.g., MSI) this process can take a while to basically just generate l2gen formatted metadata for my application. Is there a way to only generate the l2gen metadata (loaded in SeaDAS as 'Global_attributes' and 'scan_line_attrbutes') for the netcdf, without estimating any product? Or is there a product I can specify that is rapidly generated across the entire image? I attempted to turn off atmospheric correction and select a l2prod that shouldn't take long to calculate (using the below arguments/keywords), but the process still takes a relatively long time.
I currently use '--epixl=2', '"--atmocorr=0"' and '--l2prod="pixnum"' as arguments/keywords to l2gen, to reduce required processing time.
Of course, I could write my own code to grab the metadata, and appropriately format it, but I was hoping there might be a way to speed up generation of the metadata using l2gen.
Thanks for your help,
Ryan