PACE RGB generation
PACE RGB generation
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
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
Filters:
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: PACE RGB generation
try adding '--product_rgb=rhos_610,rhos_555,rhos_465' to your command.
Tommy
Tommy
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: PACE RGB generation
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
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
-
- Subject Matter Expert
- Posts: 306
- Joined: Mon Apr 07, 2008 4:40 pm America/New_York
- Been thanked: 3 times
Re: PACE RGB generation
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
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
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: PACE RGB generation
./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
###### 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
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: PACE RGB generation
If I add l3bprod=rhos_465,rhos_555,rhos_610 to the l2bin command, the binning completes without error.
Tommy
Tommy
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: PACE RGB generation
We replicated the error, and it seems that l2bin bailed when l3bprod was not provided.
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: PACE RGB generation
Since OCI is hyperspectral, with an undefined l3bprod, the l2bin file has 286 binned rhos bands from rhos_315 to rhos_2258.
Tommy
Tommy