What is the calfile for Sentinel 2 L1C process in l2gen?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
guorz
Posts: 18
Joined: Wed Apr 19, 2017 1:22 pm America/New_York
Answers: 0

What is the calfile for Sentinel 2 L1C process in l2gen?

by guorz » Thu Jun 07, 2018 3:52 pm America/New_York

I was processing Sentinel 2 L1C in l2gen via bash and got an error:

-E- clo_getOptionString: option=calfile needs to be set

what should I put as a calfile? This isn't something must choose when using GUI.

Thanks a lot.
Ruizhe

Filters:

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

What is the calfile for Sentinel 2 L1C process in l2gen?

by OB SeaDAS - dshea » Thu Jun 07, 2018 8:14 pm America/New_York

Just today I processed a Sentinel 2A and 2B file on the command line with no problem, so we need to see what is different with your setup.
What computer and OS are you using?

Sounds like some of the defaults files are not getting loaded.
Make sure OCSSWROOT is set correctly and
source $OCSSWROOT/OCSSW_bash.env

Let me know if you get the same error.

don

guorz
Posts: 18
Joined: Wed Apr 19, 2017 1:22 pm America/New_York
Answers: 0

What is the calfile for Sentinel 2 L1C process in l2gen?

by guorz » Fri Jun 08, 2018 9:43 am America/New_York

Hi don,

I am using a Mac High Sierra, set OCSSWROOT as:

export OCSSWROOT=/Applications/seadas-7.5/ocssw
source $OCSSWROOT/OCSSW_bash.env

and still getting the same error.

Ruizhe

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

What is the calfile for Sentinel 2 L1C process in l2gen?

by OB SeaDAS - dshea » Fri Jun 08, 2018 3:29 pm America/New_York

could you post all of the output from this command:

$ l2gen ifile=manifest.safe ofile=~/zzz.L2.nc --dump_options | grep calfile

This is what I get:

dshea@gs616-crab:~/.../msi/S2A_MSIL1C_20180306T185231_N0206_R113_T10SEG_20180306T222919.SAFE$ l2gen ifile=manifest.safe ofile=~/zzz.L2.nc --dump_options | grep calfile
   xcalfile (ifile) (source=default)
   calfile (ifile) (current=<noValue>) (source=/accounts/dshea/local/seadas-7.5/ocssw/share/msi/s2a/msl12_defaults.par)

don

guorz
Posts: 18
Joined: Wed Apr 19, 2017 1:22 pm America/New_York
Answers: 0

What is the calfile for Sentinel 2 L1C process in l2gen?

by guorz » Mon Jun 11, 2018 9:33 am America/New_York

Hi don,

Thanks for the help, I got this solved by install_ocssw.py --git-branch=v7.5 --msis2b.

Thanks!
Ruizhe

Post Reply