l3bin additional

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

l3bin additional

by dale.robinson » Fri Jun 17, 2022 3:07 pm America/New_York

This is an extension of the resolved post
viewtopic.php?t=3213#p11502

I reinstalled ocssw as outlined in the post above. However, I get a new error when trying l3bin

Error message below:
/cwdata1/seadas8.2/ocssw/bin/l3bin infile=ma_binmo_list200402.txt ofile=/cwdata1/poc2/bin_month/modis/2004/M_200402_monthbin.nc prod=poc
L3BIN 5.13 (Aug 16 2019 12:47:26)
29 input files
0 /cwdata1/poc2/bin_day/modis/2004/02/A2004032_20040201_dailybin.nc
1 /cwdata1/poc2/bin_day/modis/2004/02/A2004033_20040202_dailybin.nc
2 /cwdata1/poc2/bin_day/modis/2004/02/A2004034_20040203_dailybin.nc
3 /cwdata1/poc2/bin_day/modis/2004/02/A2004035_20040204_dailybin.nc
4 /cwdata1/poc2/bin_day/modis/2004/02/A2004036_20040205_dailybin.nc
5 /cwdata1/poc2/bin_day/modis/2004/02/A2004037_20040206_dailybin.nc
6 /cwdata1/poc2/bin_day/modis/2004/02/A2004038_20040207_dailybin.nc
7 /cwdata1/poc2/bin_day/modis/2004/02/A2004039_20040208_dailybin.nc
8 /cwdata1/poc2/bin_day/modis/2004/02/A2004040_20040209_dailybin.nc
9 /cwdata1/poc2/bin_day/modis/2004/02/A2004041_20040210_dailybin.nc
10 /cwdata1/poc2/bin_day/modis/2004/02/A2004042_20040211_dailybin.nc
11 /cwdata1/poc2/bin_day/modis/2004/02/A2004043_20040212_dailybin.nc
12 /cwdata1/poc2/bin_day/modis/2004/02/A2004044_20040213_dailybin.nc
13 /cwdata1/poc2/bin_day/modis/2004/02/A2004045_20040214_dailybin.nc
14 /cwdata1/poc2/bin_day/modis/2004/02/A2004046_20040215_dailybin.nc
15 /cwdata1/poc2/bin_day/modis/2004/02/A2004047_20040216_dailybin.nc
16 /cwdata1/poc2/bin_day/modis/2004/02/A2004048_20040217_dailybin.nc
17 /cwdata1/poc2/bin_day/modis/2004/02/A2004049_20040218_dailybin.nc
18 /cwdata1/poc2/bin_day/modis/2004/02/A2004050_20040219_dailybin.nc
19 /cwdata1/poc2/bin_day/modis/2004/02/A2004051_20040220_dailybin.nc
20 /cwdata1/poc2/bin_day/modis/2004/02/A2004052_20040221_dailybin.nc
21 /cwdata1/poc2/bin_day/modis/2004/02/A2004053_20040222_dailybin.nc
22 /cwdata1/poc2/bin_day/modis/2004/02/A2004054_20040223_dailybin.nc
23 /cwdata1/poc2/bin_day/modis/2004/02/A2004055_20040224_dailybin.nc
24 /cwdata1/poc2/bin_day/modis/2004/02/A2004056_20040225_dailybin.nc
25 /cwdata1/poc2/bin_day/modis/2004/02/A2004057_20040226_dailybin.nc
26 /cwdata1/poc2/bin_day/modis/2004/02/A2004058_20040227_dailybin.nc
27 /cwdata1/poc2/bin_day/modis/2004/02/A2004059_20040228_dailybin.nc
28 /cwdata1/poc2/bin_day/modis/2004/02/A2004060_20040229_dailybin.nc
line 2205 of /home/dshea/focs/oel_hdf4/libbin/bin_io.cpp: Permission denied

/home/dshea/focs/oel_hdf4/libbin/bin_io.cpp does not exist

Looking in the installation dir (/cwdata1/seadas8.2/ocssw/):
1) I find oel_hdf4 here but no focs folder inside: /cwdata1/seadas8.2/ocssw/ocssw_src/oel_hdf4

2) I find bin_io.cpp here: /cwdata1/seadas8.2/ocssw/ocssw_src/oel_hdf4/libbin/bin_io.cpp

Thanks for your help.

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: l3bin additional

by OB SeaDAS - xuanyang02 » Tue Jun 21, 2022 1:16 pm America/New_York

I think you have an older version of ocssw and V2022.0 mixed in your /cwdata1/seadas8.2/ocssw/ directory because
1. The error message says your L3 BIN is an old one
L3BIN 5.13 (Aug 16 2019 12:47:26)

2. In your /cwdata1/seadas8.2/ocssw directory, there is ocssw_src, which should not be there if you didn't install with --src argument

Please delete install_ocssw.py and /cwdata1/seadas8.2/ocssw/, and then reinstall ocssw from scratch by downloading install_ocssw (not install_ocssw.py) https://seadas.gsfc.nasa.gov/downloads/

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin additional

by dale.robinson » Tue Jun 21, 2022 6:09 pm America/New_York

I deleted delete install_ocssw.py and /cwdata1/seadas8.2/ocssw/, then dowloaded reinstalled per your instructions (https://seadas.gsfc.nasa.gov/downloads/) and got the same result:

(base) [cwatch@baddog bin]$ l3bin infile=ma_binmo_list200301.txt ofile=/cwdata1/poc2/bin_month/modis/2003/M_200301_monthbin.nc
L3BIN 5.13 (Jan 11 2022 14:32:32)
31 input files
0 /cwdata1/poc2/bin_day/modis/2003/01/A2003001_20030101_dailybin.nc
1 /cwdata1/poc2/bin_day/modis/2003/01/A2003002_20030102_dailybin.nc
2 /cwdata1/poc2/bin_day/modis/2003/01/A2003003_20030103_dailybin.nc
3 /cwdata1/poc2/bin_day/modis/2003/01/A2003004_20030104_dailybin.nc
4 /cwdata1/poc2/bin_day/modis/2003/01/A2003005_20030105_dailybin.nc
5 /cwdata1/poc2/bin_day/modis/2003/01/A2003006_20030106_dailybin.nc
6 /cwdata1/poc2/bin_day/modis/2003/01/A2003007_20030107_dailybin.nc
7 /cwdata1/poc2/bin_day/modis/2003/01/A2003008_20030108_dailybin.nc
8 /cwdata1/poc2/bin_day/modis/2003/01/A2003009_20030109_dailybin.nc
9 /cwdata1/poc2/bin_day/modis/2003/01/A2003010_20030110_dailybin.nc
10 /cwdata1/poc2/bin_day/modis/2003/01/A2003011_20030111_dailybin.nc
11 /cwdata1/poc2/bin_day/modis/2003/01/A2003012_20030112_dailybin.nc
12 /cwdata1/poc2/bin_day/modis/2003/01/A2003013_20030113_dailybin.nc
13 /cwdata1/poc2/bin_day/modis/2003/01/A2003014_20030114_dailybin.nc
14 /cwdata1/poc2/bin_day/modis/2003/01/A2003015_20030115_dailybin.nc
15 /cwdata1/poc2/bin_day/modis/2003/01/A2003016_20030116_dailybin.nc
16 /cwdata1/poc2/bin_day/modis/2003/01/A2003017_20030117_dailybin.nc
17 /cwdata1/poc2/bin_day/modis/2003/01/A2003018_20030118_dailybin.nc
18 /cwdata1/poc2/bin_day/modis/2003/01/A2003019_20030119_dailybin.nc
19 /cwdata1/poc2/bin_day/modis/2003/01/A2003020_20030120_dailybin.nc
20 /cwdata1/poc2/bin_day/modis/2003/01/A2003021_20030121_dailybin.nc
21 /cwdata1/poc2/bin_day/modis/2003/01/A2003022_20030122_dailybin.nc
22 /cwdata1/poc2/bin_day/modis/2003/01/A2003023_20030123_dailybin.nc
23 /cwdata1/poc2/bin_day/modis/2003/01/A2003024_20030124_dailybin.nc
24 /cwdata1/poc2/bin_day/modis/2003/01/A2003025_20030125_dailybin.nc
25 /cwdata1/poc2/bin_day/modis/2003/01/A2003026_20030126_dailybin.nc
26 /cwdata1/poc2/bin_day/modis/2003/01/A2003027_20030127_dailybin.nc
27 /cwdata1/poc2/bin_day/modis/2003/01/A2003028_20030128_dailybin.nc
28 /cwdata1/poc2/bin_day/modis/2003/01/A2003029_20030129_dailybin.nc
29 /cwdata1/poc2/bin_day/modis/2003/01/A2003030_20030130_dailybin.nc
30 /cwdata1/poc2/bin_day/modis/2003/01/A2003031_20030131_dailybin.nc
line 2205 of /home/dshea/focs/oel_hdf4/libbin/bin_io.cpp: Permission denied

Looking at the version in the just installed files:
$ /cwdata1/seadas8.2/install_ocssw --version
install_ocssw 6.0

$ /cwdata1/seadas8.2/ocssw/bin/l3bin --version
L3BIN 5.13 (Jan 11 2022 14:32:32)
5.13

and for comparisons
$ /cwdata1/seadas8.2/ocssw/bin/l2bin --version
l2bin 7.0.3 (Jan 11 2022 14:32:55)
7.0.3

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin additional

by dale.robinson » Tue Jun 21, 2022 6:17 pm America/New_York

This was my install command:
./install_ocssw -i=/cwdata1/seadas8.2/ocssw --tag V2022.0 --seadas --modisa --seawifs --viirsj1 --viirsn --viirsdem

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1464
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 4 times

Re: l3bin additional

by OB.DAAC - SeanBailey » Wed Jun 22, 2022 9:04 am America/New_York

Check your output directory permissions. The line in the code that is reporting "Permission denied" is the line that creates the output file. It's dying because it cannot do so for permission reasons.

Sean

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin additional

by dale.robinson » Wed Jun 22, 2022 5:24 pm America/New_York

Hi Sean,
The error is: /home/dshea/focs/oel_hdf4/libbin/bin_io.cpp: Permission denied

/home is where user spaces are. It is owned by root. There is no /home/dshea directory. Is the insulation process trying to create /home/dshea in the user space folder? I don't think that we would allow that.

BTW:
I find the "bin_io.cpp" file in my installation ("oel_hdf4/libbin/bin_io.cpp") at this location (I installed the source code).
/cwdata1/seadas8.2/ocssw/ocssw_src/oel_hdf4/libbin/bin_io.cpp

Is that where it should be? Could there be an environmental variable that is not set. Or an old one that was set in some earlier installation that is point to the wrong location? One that would normally point to bin_io.cpp?

Thanks,
Dale

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin additional

by dale.robinson » Wed Jun 22, 2022 10:28 pm America/New_York

OK, I reinstalled everything again from root. It works now. Thanks.

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1464
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 4 times

Re: l3bin additional

by OB.DAAC - SeanBailey » Thu Jun 23, 2022 9:06 am America/New_York

The error message was reporting the line in the code where the error occurred. The reported path to that source code has nothing to do with where the code resides on your machine - and it is not trying to put anything on your machine under that path. The permission denied part is the return from the attempt to write the output file to the directory where you defined it to be when passing the argument to the code. You probably should not install as root, but as an unprivileged user. Just make sure that the path to the output file desired is writable by that unprivileged user.

Sean

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin additional

by dale.robinson » Wed Jun 29, 2022 1:11 pm America/New_York

Thank you. Understood and changed

Post Reply