Add new products for l2bin-l3mapgen

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
m_brown
Posts: 12
Joined: Thu Nov 04, 2021 6:34 pm America/New_York
Answers: 0

Add new products for l2bin-l3mapgen

by m_brown » Tue Dec 07, 2021 4:46 pm America/New_York

Hello,

I am working with some non-standard MERIS and OLCI "Level 2" imagery that I have wrapped into the l2gen format so that they can be input to SeaDAS. I plan to: 1) spatially bin (l2bin), 2) temporally bin (l3bin), and 3) export (l3mapgen). At least with l3mapgen I have encountered the issue that my non-standard products are not recognized by SeaDAS. A few questions below:

- I believe the solution is to add these products to the ocssw/share/common/product.xml file - is that correct?
- At a minimum, which fields are necessary to specify?
- What is the cat_ix field, and should it be specified?
- Is this only necessary for l3mapgen, or do other functions use the product.xml file?

Thanks,
Mike

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 258
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

Re: Add new products for l2bin-l3mapgen

by OB SeaDAS - dshea » Wed Dec 08, 2021 12:00 pm America/New_York

All of the programs you mentioned read the product.xml file. Here is a minimum product entry:

Code: Select all

   </product>
        <product name="my_new_product">
        <units>m s^-1</units>
        <category>Derived</category>
        <range>
            <validMin>0</validMin>
            <validMax>50</validMax>
            <displayMin>0</displayMin>
            <displayMax>20</displayMax>
        </range>
        <algorithm>
            <cat_ix>-1</cat_ix>
            <description>My product for Speed</description>
        </algorithm>
    </product>
Most of the programs will use valid min/max to truncate data values. l3mapgen uses display min/max to get a reasonable mapping from data value -> color. The default data type is a 32 bit float. If your L2 product is a different add <type>.

The cat_ix field is only used by l2gen. We us -1 for non-l2gen products.

By "not recognized by SeaDAS" are you referring to the SeaDAS display GUI?

don

m_brown
Posts: 12
Joined: Thu Nov 04, 2021 6:34 pm America/New_York
Answers: 0

Re: Add new products for l2bin-l3mapgen

by m_brown » Wed Dec 08, 2021 5:19 pm America/New_York

Thanks Don,

The error I was receiving occurred when calling l3mapgen, and was:
"-E- product MDN_chl not found in XML product table"

Adding the info for my product to the product.xml file solved the problem!

Given that l2bin and l3bin use the product.xml file, is there a reason that they did not complain about not finding the product info (and only l3mapgen did)?

Thanks!
Mike

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

Re: Add new products for l2bin-l3mapgen

by OB.DAAC - SeanBailey » Thu Dec 09, 2021 3:41 pm America/New_York

Mike,

Simple....l3bin doesn't use it, so that's easy. All l3bin does is combine l2bin files. As for l2bin, it currently only uses the file to check for the valid min value. If it doesn't find one (in that either the product.xml record didn't define it or the product wasn't found in the xml file) it set the min to zero.
The l3mapgen code uses the product.xml file more 'fully' and simply expects the product to exist in it or it bails.

Sean

Post Reply