PACE RGB generation

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
tsm00
Posts: 3
Joined: Wed Jun 22, 2022 11:43 am America/New_York
Answers: 0

PACE RGB generation

by tsm00 » Mon Apr 15, 2024 8:16 am America/New_York

Greetings,

I have a PACE related Seadas 9.0 question/problem. I am trying to generate a RBG true-color image from a level-1b granule using Seadas 9.0, Tag T2024.16. I am on a macos 14.2.1, and have python 3.12 active.

First, the installer had a problem with loading luts - the 'install_ocssw' script was defaulting to python2.7, but only for the lut installation.

Secondly, when I tried running 'mapgen':

mapgen --ifile /Users/tim/Desktop/images/PACE/PACE_OCI.20240413T175156.L1B.nc --ofile /Users/tim/Desktop/images/PACE/testrgb --use_rgb

I got this strange error message with 'dshea' in the error. It was:

line 246 of /Users/dshea/ocssw/oel_hdf4/libbin/ncdfbin_utils.c: NetCDF: Variable not found

I don't have this directory, and I think 'dshea' is a programmer for NASA, as that name appears also at the top of the 'install_ocssw' script.

I think its a code bug, but there is something weird with the original python installer defaulting to 2.7, even though my window had python 3.12 active when I ran the installer.

Thanks!

Tim

Tags:

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 378
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 4 times

Re: PACE RGB generation

by OB ODPS - towens » Mon Apr 15, 2024 9:31 am America/New_York

try adding '--product_rgb=rhos_610,rhos_555,rhos_465' to your command.

Tommy

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 378
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 4 times

Re: PACE RGB generation

by OB ODPS - towens » Mon Apr 15, 2024 9:48 am America/New_York

Sorry that won't help:
Running: /accounts/towens/work/SeaDAS/ocssw/bin/l2bin flaguse=ATMFAIL,BOWTIEDEL ifile=mapgen_l2gen_list.txt ofile=mapgen_tmp.l2bin.nc area_weighting=1 prodtype=regional resolution=1
line 246 of /home/dshea/ocssw/oel_hdf4/libbin/ncdfbin_utils.c: NetCDF: Variable not found

I'll notify the SeaDAS folks

Tommy

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 278
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0

Re: PACE RGB generation

by OB SeaDAS - knowles » Tue Apr 16, 2024 11:44 am America/New_York

please send or look at your seadas_info:

From command line:
seadas_info

...or in GUI:
Menu > SeaDAS Toolbox > System and Software Info

Make sure the returned info acknowledges that oci is installed and that you are using tag T2024.16

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 378
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 4 times

Re: PACE RGB generation

by OB ODPS - towens » Tue Apr 16, 2024 1:29 pm America/New_York

./SeaDAS/ocssw/bin/mapgen -v --ifile PACE_OCI.20240413T175156.L1B.nc --ofile test.rgb --use_rgb product_rgb=rhos_610,rhos_555,rhos_465

###### l2gen ######

Running: SeaDAS/ocssw/bin/l2gen ifile=PACE_OCI.20240413T175156.L1B.nc ofile=mapgen_l2gen_01.nc l2prod=rhos_nnn atmocor=0 proc_sst=0
Generated L2 file for input: PACE_OCI.20240413T175156.L1B.nc

###### l2bin ######

Running: SeaDAS/ocssw/bin/l2bin flaguse=ATMFAIL,BOWTIEDEL ifile=mapgen_l2gen_list.txt ofile=mapgen_tmp.l2bin.nc area_weighting=1 prodtype=regional resolution=1
line 246 of /home/dshea/ocssw/oel_hdf4/libbin/ncdfbin_utils.c: NetCDF: Variable not found

Exiting: SeaDAS/ocssw/bin/l2bin flaguse=ATMFAIL,BOWTIEDEL ifile=mapgen_l2gen_list.txt ofile=mapgen_tmp.l2bin.nc area_weighting=1 prodtype=regional resolution=1 returned a status 1

{45}% seadas_info
NASA Science Processing (OCSSW):
OCSSWROOT=work/SeaDAS/ocssw
OCDATAROOT=work/SeaDAS/ocssw/share
l2gen version: msl12 9.7.0-T2024.16 (Apr 10 2024 04:50:43)
l2bin version: 7.0.6
l3bin version: 5.14
l3mapgen version: l3mapgen 2.4.0-T2024.16 (Apr 10 2024 04:50:14)
Installed Missions: ['aqua', 'viirsn', 'viirsj1', 'viirsj2', 'viirsdem', 'oci']

General System and Software:
Operating system: Ubuntu 20.04.6 LTS
Java version: 11.0.22
Python3 version: 3.8.10
Python3 Path: /usr/bin/python3

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 378
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 4 times

Re: PACE RGB generation

by OB ODPS - towens » Tue Apr 16, 2024 2:16 pm America/New_York

If I add l3bprod=rhos_465,rhos_555,rhos_610 to the l2bin command, the binning completes without error.

Tommy

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

Re: PACE RGB generation

by OB SeaDAS - xuanyang02 » Tue Apr 16, 2024 5:38 pm America/New_York

We replicated the error, and it seems that l2bin bailed when l3bprod was not provided.

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 378
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 4 times

Re: PACE RGB generation

by OB ODPS - towens » Tue Apr 16, 2024 6:16 pm America/New_York

Since OCI is hyperspectral, with an undefined l3bprod, the l2bin file has 286 binned rhos bands from rhos_315 to rhos_2258.

Tommy

Post Reply