l2bin error
Posted: Wed May 20, 2020 11:32 am America/New_York
Hi, everyone, help~ :smile:
When I run l2bin, I got error like this:
"line 1479 of /home/seadas/ocssw/src/l2bin/l2bin.c: Permission denied"
my code is:
"l2bin infile=List_s3a.ls ofile=bin_s3a resolve=1 flaguse=LAND,HILT l3bprod=Kd490 prodtype=regional noext=1"
I did not install ocssw in /home/seadas/ocssw/src/l2bin/. I did give the right path to OCSSWROOT by adding
export SEADASPATH={my rootpath}/program/oceancolor
export PATH=$PATH:$SEADASPATH/bin
export OCSSWROOT=$SEADASPATH/ocssw
export OCSSDEBUG=0
source $OCSSWROOT/OCSSW_bash.env
in my ~/.bash_profile. And source ~/.bash_profile
I install ocssw by doing this:
"./install_ocssw.py --install-dir=$OCSSWROOT --direct-broadcast --git-branch=v7.5 "
the error only showed up when i process s3a level2 data (processed by l2gen), however it is ok when i process aqua level 2 data.
another qustion is I can run l2gen successfully when I did not give a value to "iop_opt". the program will be crashed when I set iop_opt=2 (gsm). The error information is "segmentation fault (core dumped)" . my system is ‘Linux iz0xi38jexm12p93ki3hqmz 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux’.
Another weird thing is I can process some of virrs L1 data downloaded from
https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/5000/VNP01/2016/141/. it works sometimes (mostly not . I am sure all data had been downloaded completely and successfully)
But i can not process viirs l1 data from here:
wget https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2017241160000.L1A_SNPP.nc
wget https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2017241160000.GEO-M_SNPP.nc
l2gen ifile=V2017241160000.L1A_SNPP.nc geofile=V2017241160000.GEO-M_SNPP.nc ofile=V2017241160000.L2_SNPP_FAI.nc l2prod=rhos_nnn
The error is “/home/seadas/viirs_l1/src/geolocate_viirs/geolocate_viirs_input.cpp:115 - Could not find sensor directory for the file V2017241160000.L1A_SNPP.nc”.
But again i did not install seadas there. And I do not have any folder named by “src” in my $OCSSWROOT path. I only have “bin OCSSW_bash.env ocssw-src opt scripts share var” in my $OCSSWROOT.
I set my ocssw path in ~/.bashrc.
I am totally lost. What should i do? Thank you very much for your help and time.
When I run l2bin, I got error like this:
"line 1479 of /home/seadas/ocssw/src/l2bin/l2bin.c: Permission denied"
my code is:
"l2bin infile=List_s3a.ls ofile=bin_s3a resolve=1 flaguse=LAND,HILT l3bprod=Kd490 prodtype=regional noext=1"
I did not install ocssw in /home/seadas/ocssw/src/l2bin/. I did give the right path to OCSSWROOT by adding
export SEADASPATH={my rootpath}/program/oceancolor
export PATH=$PATH:$SEADASPATH/bin
export OCSSWROOT=$SEADASPATH/ocssw
export OCSSDEBUG=0
source $OCSSWROOT/OCSSW_bash.env
in my ~/.bash_profile. And source ~/.bash_profile
I install ocssw by doing this:
"./install_ocssw.py --install-dir=$OCSSWROOT --direct-broadcast --git-branch=v7.5 "
the error only showed up when i process s3a level2 data (processed by l2gen), however it is ok when i process aqua level 2 data.
another qustion is I can run l2gen successfully when I did not give a value to "iop_opt". the program will be crashed when I set iop_opt=2 (gsm). The error information is "segmentation fault (core dumped)" . my system is ‘Linux iz0xi38jexm12p93ki3hqmz 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux’.
Another weird thing is I can process some of virrs L1 data downloaded from
https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/5000/VNP01/2016/141/. it works sometimes (mostly not . I am sure all data had been downloaded completely and successfully)
But i can not process viirs l1 data from here:
wget https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2017241160000.L1A_SNPP.nc
wget https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2017241160000.GEO-M_SNPP.nc
l2gen ifile=V2017241160000.L1A_SNPP.nc geofile=V2017241160000.GEO-M_SNPP.nc ofile=V2017241160000.L2_SNPP_FAI.nc l2prod=rhos_nnn
The error is “/home/seadas/viirs_l1/src/geolocate_viirs/geolocate_viirs_input.cpp:115 - Could not find sensor directory for the file V2017241160000.L1A_SNPP.nc”.
But again i did not install seadas there. And I do not have any folder named by “src” in my $OCSSWROOT path. I only have “bin OCSSW_bash.env ocssw-src opt scripts share var” in my $OCSSWROOT.
I set my ocssw path in ~/.bashrc.
I am totally lost. What should i do? Thank you very much for your help and time.