Error in processing SNPP VIIRS L1A to L1B in SeaDAS

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
reema_mathew
Posts: 11
Joined: Tue Feb 07, 2023 11:19 pm America/New_York
Answers: 0

Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by reema_mathew » Fri Jun 23, 2023 8:04 am America/New_York

I've an SNPP VIIRS L1A file. While trying to use the calibrate_viirs option in SeaDAS to generate L1B, I get the following error:

execution exception: java.io.IOException: calibrate_viirs failed with exit code 1.
Check log for more details.
VcstCalNetcdfInputItem:: Failure opening LUT file: /home/reema/SEADAS/ocssw/var/viirsn/cal/OPER/VIIRS_NPP_CAL_STATIC_LUT_v3.1.0.13_20220728_obpg.nc
VcstCalNetcdfInputItem:: Failure reading netCDF file for LUT RVS_LUT
VcstObc:: LUT initialization failure
VcstViirsCal::Granule initialization failure
Main:: Calibration initialization failure


It would be really helpful if someone can help me out here.


Regards
Reema

Tags:

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

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by OB SeaDAS - xuanyang02 » Fri Jun 23, 2023 11:24 am America/New_York

Are you using SeaDAS 8.3.0? Could you please do SeaDAS-Toolbox -> Software & System Info, and post the result here?

Also, it will be helpful if you could share the name of your VIIRS SNPP L1A file.

reema_mathew
Posts: 11
Joined: Tue Feb 07, 2023 11:19 pm America/New_York
Answers: 0

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by reema_mathew » Mon Jun 26, 2023 12:16 am America/New_York

Yes, I'm using SeaDAS 8.3.0

Software & System Info:
-----------------------------------------------------------
Main Application Platform:
-----------------------------------------------------------
Application Version: SeaDAS 8.3.0
SNAP Engine Version: 9.0.3* (SeaDAS Platform modified)
SNAP Desktop Version: 9.0.3* (SeaDAS Platform modified)
SNAP Engine Build Date: 202212081924
SNAP Desktop Build Date: 202212081928
Installation Directory: /home/reema/SEADAS
Data Directory: /home/reema/.seadas8
Configuration: /home/reema/SEADAS/etc/snap.properties
VM Configuration: /home/reema/SEADAS/etc/seadas.conf
WARNING!! File '/home/reema/SEADAS/etc/seadas.conf' does not exist
VM Configuration: /home/reema/SEADAS/etc/snap.conf
WARNING!! File '/home/reema/SEADAS/etc/snap.conf' does not exist
VM Configuration (gpt): /home/reema/SEADAS/bin/gpt.vmoptions
VM Configuration (pconvert): /home/reema/SEADAS/bin/pconvert.vmoptions
Runtime Configuration: /home/reema/.seadas8/etc/snap.properties
Runtime Configuration (SeaDAS Toolbox): /home/reema/.seadas8/etc/seadas.properties
JRE: Java(TM) SE Runtime Environment 1.8.0_201-b09
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Memory: 3641 MiB
OCSSWROOT (Java Env): /home/reema/SEADAS/ocssw
Python3 Directory: /home/reema/anaconda3/bin/python3


-----------------------------------------------------------
SeaDAS Toolbox:
-----------------------------------------------------------
SeaDAS Toolbox Version: 1.3.0
SeaDAS Toolbox Build Date: 202212081934
Configuration: /home/reema/.seadas8/etc/seadas.properties
OCSSW Root Directory: /home/reema/SEADAS/ocssw
OCSSW Log Directory: /home/reema/SEADAS/bin
OCSSW Location: local
Environment {$OCSSWROOT} (external): /home/reema/SEADAS/ocssw


-----------------------------------------------------------
NASA Science Processing (OCSSW):
-----------------------------------------------------------
OCSSWROOT=/home/reema/SEADAS/ocssw
OCDATAROOT=/home/reema/SEADAS/ocssw/share
l2gen version: msl12 9.6.0-V2023.1 (Apr 4 2023 11:30:59)
l2bin version: 7.0.4
l3bin version: 5.13
l3mapgen version: l3mapgen 2.3.0-V2023.1 (Apr 4 2023 11:28:57)
Installed Missions: ['aqua', 'olcis3a', 'olcis3b', 'seawifs', 'viirsn', 'viirsj1', 'viirsj2', 'viirsdem']


-----------------------------------------------------------
General System and Software:
-----------------------------------------------------------
Operating system: Ubuntu 22.04.2 LTS
Java version: 17.0.1
Python3 version: 3.9.16
Python3 Path: /home/reema/anaconda3/bin/python3
Env:
CC=gcc
CXX=g++
ELEMENTS=/home/reema/SEADAS/ocssw/var/seawifs
EOS_LIB_PREFIX=linux64
FC=gfortran
GCC_TUNE=
HDFEOS_LIB=/home/reema/SEADAS/ocssw/opt/EOS/lib/linux64
HRPT_STATION_IDENTIFICATION_FILE=/home/reema/SEADAS/ocssw/share/seawifs/station/station_id.dat
L2GEN_ANC=/home/reema/SEADAS/ocssw/var/anc
LIB3_BIN=/home/reema/SEADAS/ocssw/opt/bin
LIB3_CHECK=0
LIB3_DIR=/home/reema/SEADAS/ocssw/opt
LIB3_INC=/home/reema/SEADAS/ocssw/opt/include
LIB3_LIB=/home/reema/SEADAS/ocssw/opt/lib
NAVCTL=/home/reema/SEADAS/ocssw/share/seawifs/nav
NAVQC=/home/reema/SEADAS/ocssw/share/seawifs/nav
OCSSW_ARCH=linux_64
OCSSW_BIN=/home/reema/SEADAS/ocssw/bin
OCSSW_DEBUG=0
OCSSW_MODIS=1
OCTS_REGISTRATION_TABLES=/home/reema/SEADAS/ocssw/share/octs/nav
OCVARROOT=/home/reema/SEADAS/ocssw/var
ORBCTL=/home/reema/SEADAS/ocssw/share/seawifs/nav
PGSINC=/home/reema/SEADAS/ocssw/opt/EOS/include
PGSLIB=/home/reema/SEADAS/ocssw/opt/EOS/lib/linux64
PROJ_DATA=/home/reema/SEADAS/ocssw/opt/share/proj
PROJ_LIB=/home/reema/SEADAS/ocssw/opt/share/proj
SWFTBL=/home/reema/SEADAS/ocssw/share/seawifs/qc
SWTBL=/home/reema/SEADAS/ocssw/share/seawifs


VIIRS SNPP L1A file that I'm trying to process: SNPP_VIIRS.20230601T035400.L1A.nc

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

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by OB SeaDAS - xuanyang02 » Tue Jun 27, 2023 10:35 am America/New_York

Check if /home/reema/SEADAS/ocssw/var/viirsn/cal/OPER/VIIRS_NPP_CAL_STATIC_LUT_v3.1.0.13_20220728_obpg.nc exists. If not, do SeaDAS-Toolbox -> Update Luts

reema_mathew
Posts: 11
Joined: Tue Feb 07, 2023 11:19 pm America/New_York
Answers: 0

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by reema_mathew » Fri Jun 30, 2023 7:29 am America/New_York

Yes, it worked. Thank you.
After updating luts, calibrate_viirs option is successfully executed.

But when I try to generate an RGB image from this L1B file using band combination M06, M04, M03, there are horizontal stripes at left and right sides. The image is attached hereby.

How to tackle this and also how to reproject this L1B file?

Regards
Reema
Attachments
SNPP_VIIRS_20230601T035400_L1B_RGB.jpg
SNPP_VIIRS_20230601T035400_L1B_RGB.jpg (71.97 KiB) Not viewed yet

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

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by OB SeaDAS - xuanyang02 » Fri Jun 30, 2023 11:17 am America/New_York

The stripes in VIIRS SNPP file is normal, L2 file also has stripes. If you do l2bin and l3mapgen, l3m files do not have stripes.

VIIRS SNPP L1B file does not have geocoding, so it cannot be reprojected --
https://seadas.gsfc.nasa.gov/help-8.3.0/desktop/Reprojection.html

reema_mathew
Posts: 11
Joined: Tue Feb 07, 2023 11:19 pm America/New_York
Answers: 0

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by reema_mathew » Wed Jul 05, 2023 1:30 am America/New_York

Okay. So is there any way to generate an RGB image from this L1B file without any stripes?

Thank you so much for the help

Regards
Reema

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

Re: Error in processing SNPP VIIRS L1A to L1B in SeaDAS

by OB SeaDAS - xuanyang02 » Wed Jul 05, 2023 2:04 pm America/New_York

Yes, you can use mapgen to reproject a VIIRS SNPP file L1A with the corresponding GEO file, with "use_rgb" box checked. Mapgen will produce an RGB file without stripes --
https://seadas.gsfc.nasa.gov/help-8.3.0/processors/ProcessMapgen.html

Post Reply