Processing SGLI with SeaDAS

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
jstum
Posts: 70
Joined: Mon Jul 04, 2005 4:54 am America/New_York

Processing SGLI with SeaDAS

by jstum » Thu May 26, 2022 10:35 am America/New_York

Hello,

I'm trying to use l2gen from SeaDAS 8.1.0 to process a SGLI file (namely GC1SG1_202205260207P05515_1BSN_VNRDK_2005.h5). In my l2gen parameter file, I have :
l2prod=rhos_490 rhos_566 rhos_672 rhos_867 rhos_1385 glint_coef chlor_a

plus the other usual parameters (ifile, ofile, met1,...)

launching l2gen par=my parameter file outputs the following message :
/home/seadas/focs/oel_hdf4/libl1/l1_sgli.c, 661, I - The SWIR/IR file: GC1SG1_202205260207P05515_1BSN_IRSDK_2005.h5
does not exist. Using VIS/NIR file only

l2gen result is successfull, and the variable rhos_1385 is present but empty in my output file.
I paid attention to place the IRSDK file in the same directory as the VNRDK file, but this is probably not sufficient dor SeaDAS. Thus I guess the IRS filename shoud be given in the SeaDAS parameter file, but I don't know which syntax to use (like irsfile=, or...), and I miss some documentation.

Could you help me ?

Thank you
Jacques

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 375
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1

Re: Processing SGLI with SeaDAS

by OB SeaDAS - xuanyang02 » Thu May 26, 2022 3:25 pm America/New_York

Strange, I did l2gen on GC1SG1_202205260207P05515_1BSN_VNRDK_2005.h5 with l2prod=rhos_490 rhos_566 rhos_672 rhos_867 rhos_1385 glint_coef chlor_a, and this is the image of rhos_1385

What exactly is in your par file? What tag of OCSSW are you using?
Screen Shot 2022-05-26 at 3.18.46 PM.png
Screen Shot 2022-05-26 at 3.18.46 PM.png (433.61 KiB) Not viewed yet

jstum
Posts: 70
Joined: Mon Jul 04, 2005 4:54 am America/New_York

Re: Processing SGLI with SeaDAS

by jstum » Thu May 26, 2022 4:17 pm America/New_York

Well, my Par file has just :
ifile=GC1SG1_202205260207P05515_1BSN_VNRDK_2005.h5
ofile=my output level 2 file
met1=
met2=
met3=
ozone1=
ozone2=
ozone3=
l2prod= what I showed
As I mentioned, I'm using SeaDAS version 8.1.0
under directory ocssw, in manifest.json, there is :
"tags": [
"T2021.9",
"T2021.10",
"V2021.2",
"T2021.11",
"T2021.12",
"T2021.13",
"T2021.14",
"T2021.15",
"T2021.16",
"T2021.17",
"T2021.18",
"T2021.19",
"T2021.20",
"T2021.21",
"T2021.22"
Just in case it is useful for you.
Did you add the name of the IRS file inside your par file ? Band 1385 nm is inside this file, not inside the VNR file, so unless l2gen build the IRS filename from the content of ifile , it should be inside the par file

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 375
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1

Re: Processing SGLI with SeaDAS

by OB SeaDAS - xuanyang02 » Thu May 26, 2022 4:45 pm America/New_York

This is in my par file --
ifile=/Users/*/Scenes/SGLI/forum/GC1SG1_202205260207P05515_1BSG_VNRDK_2005.h5
l2prod="Kd_490 Rrs_vvv angstrom aot_867 chlor_a glint_coef rhos_1385 rhos_490 rhos_566 rhos_672 rhos_867 chl_ocx"
ofile=/Users/*/Scenes/SGLI/forum/GC1_SGLI.20220526T020721.L2.OC.nc

Yes, I placed GC1SG1_202205260207P05515_1BSG_IRSDK_2005.h5 in the same directory with GC1SG1_202205260207P05515_1BSG_VNRDK_2005.h5

If you type "l2gen" on command line, the very 1st line will show the tag of your OCSSW. Mine says
l2gen 9.5.1-V2022.0 (Jan 11 2022 14:32:35)

I am using V2022.0 along with SeaDAS 8.2.0

jstum
Posts: 70
Joined: Mon Jul 04, 2005 4:54 am America/New_York

Re: Processing SGLI with SeaDAS

by jstum » Thu May 26, 2022 11:52 pm America/New_York

I have SeaDAS 8.1.0 and typing "l2gen" gives 9.5.1-V2021.2 (Jun 18 2021 11:22:53)
I also tried with SeaDAS 8.2.0 -> 9.6.0-R2022.3 (Mar 31 2022 12:03:20). But l2gen with this version does not work (I don't know why, it returns nothing), thats why I used SeaDAS 8.1.0
The only difference with you is that I use the "1BSN" files and you use the "1BSG" files, but I don't think it matters.

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

Re: Processing SGLI with SeaDAS

by OB.DAAC - SeanBailey » Fri May 27, 2022 10:56 am America/New_York

l2gen derives the IRS filename from the input VNR file (it's a simple string substitution), so there is no parameter for passing the IRS filename.
Sure, not ideal, as filename can lie (well, not match the expected pattern).

In your run, l2gen is complaining that "GC1SG1_202205260207P05515_1BSN_IRSDK_2005.h5" does not exist. Does it? and is it in the same directory as the corresponding VNR file?

Sean

jstum
Posts: 70
Joined: Mon Jul 04, 2005 4:54 am America/New_York

Re: Processing SGLI with SeaDAS

by jstum » Tue Jun 14, 2022 8:16 am America/New_York

Sorry for non responding earlier, I was on vacation.
It works fine now (I omitted to copy the IRS file at the same place than the VNR file, sorry for wasting your time...)
Jacques

yyslh999
Posts: 7
Joined: Sun Aug 14, 2022 9:03 pm America/New_York

Re: Processing SGLI with SeaDAS

by yyslh999 » Mon Aug 22, 2022 9:47 pm America/New_York

Thank you very much. When I put the two files in the same folder, the Rrs data is normal.

Post Reply