Calculating geophysical products with Sentinel 2

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
lukecarberry
Posts: 20
Joined: Fri Apr 09, 2021 4:50 pm America/New_York
Answers: 0

Calculating geophysical products with Sentinel 2

by lukecarberry » Fri Jul 12, 2024 8:39 pm America/New_York

Hi! I want to calculate chlor_a from a Sentinel 2B image and I'm having trouble. Below is the error I'm getting - l2gen doesn't recognize the manifest.safe file that Sentinel produces. I have tried many different assortments of installing the --msis2b processes with different versions. I can't figure out what to do to get l2gen to work. Just trying to get a rough Chl and SST plot from Sentinel for a project (Sentinel has the only high-resolution matchup on the day we sampled). I also pasted the result of seadas_info below. Thanks!

Code: Select all

lukecarberry$ l2gen par=/Users/lukecarberry/Documents/6_Nick_Project/Projects/Finesst_Subm/landsat/LS_params_noifile_local2 ifile=/Users/lukecarberry/Documents/6_Nick_Project/Projects/Glider/3Processed/Satellite/210918/S2B_MSIL2A_20210918T183929_N0500_R070_T10SGD_20230114T002842.SAFE/manifest.safe ofile=/Users/lukecarberry/Documents/6_Nick_Project/Projects/Glider/3Processed/Satellite/210918/S2B_MSIL2A_20210918T183929_N0500_R070_T10SGD_20230114T002842.SAFE/S2B_MSI.20210918T183929.L2.OC.nc
Loading default parameters from /Users/lukecarberry/SeaDAS/ocssw/share/common/msl12_defaults.par
-E- /Users/dshea/ocssw/oel_hdf4/libl1/l1_options.c Line 212: Could not find type for file /Users/lukecarberry/Documents/6_Nick_Project/Projects/Glider/3Processed/Satellite/210918/S2B_MSIL2A_20210918T183929_N0500_R070_T10SGD_20230114T002842.SAFE/manifest.safe.

Code: Select all

NASA Science Processing (OCSSW):
OCSSWROOT=/Users/lukecarberry/SeaDAS/ocssw
OCDATAROOT=/Users/lukecarberry/SeaDAS/ocssw/share
l2gen version: msl12 9.7.0-V2024.0 (Jun 26 2024 12:31:54)
l2bin version: 7.0.7
l3bin version: 5.14
l3mapgen version: l3mapgen 2.4.0-V2024.0 (Jun 26 2024 12:30:39)
Installed Missions: ['aquarius', 'aqua', 'terra', 'msis2a', 'msis2b', 'olcis3a', 'olcis3b', 'olil8', 'olil9', 'seawifs']

General System and Software:
Operating system: MacOS 14.1.2
Java version: 
Python3 version: 3.10.9
Python3 Path: /opt/homebrew/anaconda3/bin/python3
Env:
   CC=gcc
   CXX=g++
   ELEMENTS=/Users/lukecarberry/SeaDAS/ocssw/var/seawifs
   EOS_LIB_PREFIX=macarm64
   FC=gfortran
   GCC_TUNE=
   HDFEOS_LIB=/Users/lukecarberry/SeaDAS/ocssw/opt/EOS/lib/macarm64
   HRPT_STATION_IDENTIFICATION_FILE=/Users/lukecarberry/SeaDAS/ocssw/share/seawifs/station/station_id.dat
   L2GEN_ANC=/Users/lukecarberry/SeaDAS/ocssw/var/anc
   LIB3_BIN=/Users/lukecarberry/SeaDAS/ocssw/opt/bin
   LIB3_CHECK=0
   LIB3_DIR=/Users/lukecarberry/SeaDAS/ocssw/opt
   LIB3_INC=/Users/lukecarberry/SeaDAS/ocssw/opt/include
   LIB3_LIB=/Users/lukecarberry/SeaDAS/ocssw/opt/lib
   NAVCTL=/Users/lukecarberry/SeaDAS/ocssw/share/seawifs/nav
   NAVQC=/Users/lukecarberry/SeaDAS/ocssw/share/seawifs/nav
   OCSSW_ARCH=macosx_arm64
   OCSSW_BIN=/Users/lukecarberry/SeaDAS/ocssw/bin
   OCSSW_DEBUG=0
   OCSSW_MODIS=1
   OCTS_REGISTRATION_TABLES=/Users/lukecarberry/SeaDAS/ocssw/share/octs/nav
   OCVARROOT=/Users/lukecarberry/SeaDAS/ocssw/var
   ORBCTL=/Users/lukecarberry/SeaDAS/ocssw/share/seawifs/nav
   PGSINC=/Users/lukecarberry/SeaDAS/ocssw/opt/EOS/include
   PGSLIB=/Users/lukecarberry/SeaDAS/ocssw/opt/EOS/lib/macarm64
   PROJ_DATA=/Users/lukecarberry/SeaDAS/ocssw/opt/share/proj
   PROJ_LIB=/Users/lukecarberry/SeaDAS/ocssw/opt/share/proj
   SWFTBL=/Users/lukecarberry/SeaDAS/ocssw/share/seawifs/qc
   SWTBL=/Users/lukecarberry/SeaDAS/ocssw/share/seawifs

Filters:

OB.DAACx - SeanBailey
Posts: 1519
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 9 times

Re: Calculating geophysical products with Sentinel 2

by OB.DAACx - SeanBailey » Mon Jul 15, 2024 5:42 pm America/New_York

A while ago (rather a long while) the Sentinel-2 SAFE format changed. It was a minor change, but one that impacts the ability for l2gen to properly read the data. We have not had time to figure out how to make l2gen happy with the new format and until we do, it will not work. The Sentinel-2 support was a contributed sensor. We support it as resources are available, but with PACE garnering all of our attention, the resources just aren't there.

Sorry,
Sean

Post Reply