l2prod list

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
cmitchell
Posts: 19
Joined: Tue Jun 06, 2017 11:42 am America/New_York
Answers: 0

l2prod list

by cmitchell » Thu Jan 27, 2022 5:16 pm America/New_York

Is it possible to get a list of all the available level 2 products from the command line? i.e. I'm looking for a list of the possible options to use in the l2prod argument of l2gen (and I don't have the SeaDAS GUI installed).

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1464
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

Re: l2prod list

by OB.DAAC - SeanBailey » Thu Jan 27, 2022 5:25 pm America/New_York

Catherine,
You *could* look at the $OCDATAROOT/common/product.xml file...or use the program called get_prod_info, which groks that file better than human eyes:

get_product_info 3.0 (Jan 27 2022 11:14:02)
Program to list products or detailed information about a single product
Usage: get_product_info [option=val] <productName>
Options:
help (boolean) (alias=h) (default=false) = print usage information
version (boolean) (default=false) = print the version
information
dump_options (boolean) (default=false) = print
information about each option
dump_options_paramfile (ofile) = print
information about each option to paramfile
dump_options_xmlfile (ofile) = print
information about each option to XML file
l (boolean) (default=false) = list all of the products
r (boolean) (default=false) = list all of the products recursing through
the wavelengths of the sensor specified
csv (boolean) (default=false) = list all of the products, output in CSV format
sensor (string) (default=MODISA) = sensor name (or ID) to use for wavelength
expansion or product lookup
<productName> product to print detailed information about

Sean

cmitchell
Posts: 19
Joined: Tue Jun 06, 2017 11:42 am America/New_York
Answers: 0

Re: l2prod list

by cmitchell » Thu Jan 27, 2022 6:07 pm America/New_York

Perfect, get_product_info is just what I was looking for. Thanks!

Post Reply