Page 1 of 1

PACE RGB generation

Posted: Mon Apr 15, 2024 8:16 am America/New_York
by tsm00
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

Re: PACE RGB generation

Posted: Mon Apr 15, 2024 9:31 am America/New_York
by OB ODPS - towens
try adding '--product_rgb=rhos_610,rhos_555,rhos_465' to your command.

Tommy

Re: PACE RGB generation

Posted: Mon Apr 15, 2024 9:48 am America/New_York
by OB ODPS - towens
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

Re: PACE RGB generation

Posted: Tue Apr 16, 2024 11:44 am America/New_York
by OB SeaDAS - knowles
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

Re: PACE RGB generation

Posted: Tue Apr 16, 2024 1:29 pm America/New_York
by OB ODPS - towens
./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

Re: PACE RGB generation

Posted: Tue Apr 16, 2024 2:16 pm America/New_York
by OB ODPS - towens
If I add l3bprod=rhos_465,rhos_555,rhos_610 to the l2bin command, the binning completes without error.

Tommy

Re: PACE RGB generation

Posted: Tue Apr 16, 2024 5:38 pm America/New_York
by OB SeaDAS - xuanyang02
We replicated the error, and it seems that l2bin bailed when l3bprod was not provided.

Re: PACE RGB generation

Posted: Tue Apr 16, 2024 6:16 pm America/New_York
by OB ODPS - towens
Since OCI is hyperspectral, with an undefined l3bprod, the l2bin file has 286 binned rhos bands from rhos_315 to rhos_2258.

Tommy