Error using l3bin

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Error using l3bin

by gnwiii » Tue Jun 11, 2019 5:13 am America/New_York

Have you tried providing the full path for the input list file?

Tags:

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

Error using l3bin

by OB SeaDAS - knowles » Tue Jun 11, 2019 11:06 am America/New_York

If it runs from the command line and not the GUI then you either need to make the file list contain the full path name to the input files or you need to have the text file be located in the same directory as the input files. 

Danny

bbroman93
Posts: 38
Joined: Fri Feb 01, 2019 11:04 am America/New_York
Answers: 0

Error using l3bin

by bbroman93 » Tue Jun 11, 2019 11:35 am America/New_York

I already have the text file in same directory as the *nc files I am trying to bin from the GUI. I have also edited the txt file and written the absolute paths to my *.nc files and it still did not work. Same error.

Bianca

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

Error using l3bin

by OB SeaDAS - knowles » Tue Jun 11, 2019 1:32 pm America/New_York

Did you test this new text file run of l3bin from the command line?   Your error still indicates something wrong with your text file such as the presence of an extra new line character.

To rule out the editor issue, can you try to generate your text file directly from the command line like this?

ls -1 /MY_FILES_DIR/A*.L3b_MO_NSST.nc >  /MY_FILES_DIR/files.txt

That command will generate a file "files.txt" containing a full path listing (1 file per line) of all files matching the pattern A*.L3b_MO_NSST.nc.   Creating text files this way using a regular expression I find much simpler and quicker than using an editor.

Danny

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Error using l3bin

by gnwiii » Wed Jun 12, 2019 6:30 am America/New_York

Sorry I didn't catch this earlier (dealing with a failed upgrade of my laptop to Windows 10). 

Using your list file, I get:
$ l3bin ifile=2003spring.txt ofile=A20030602003121.L3b_QYR_NSST.nc
L3BIN 5.12 (Dec 19 2018 12:40:40)
3 input files
0 A20030602003090.L3b_MO_NSST.nc
1 A20030912003120.L3b_MO_NSST.nc
2 A20031212003151.L3b_MO_NSST.n
A20031212003151.L3b_MO_NSST.n cannot be opened.


Using emacs' whitespace-mode, your "2003spring.txt"  file is missing the 3rd newline:

A20030602003090.L3b_MO_NSST.nc$
A20030912003120.L3b_MO_NSST.nc$
A20031212003151.L3b_MO_NSST.nc

There should be three "$" symbols.  After adding a newline (using emacs), I get:

$ l3bin ifile=2003spring.txt ofile=A20030602003121.L3b_QYR_NSST.nc
L3BIN 5.12 (Dec 19 2018 12:40:40)
3 input files
0 A20030602003090.L3b_MO_NSST.nc
1 A20030912003120.L3b_MO_NSST.nc
2 A20031212003151.L3b_MO_NSST.nc
irow:     0 of     4320 Wed Jun 12 06:25:29 2019
[...]
irow:  4000 of     4320 Wed Jun 12 06:26:02 2019
Done

Post Reply