Error using l3bin
-
- Subject Matter Expert
- Posts: 306
- Joined: Mon Apr 07, 2008 4:40 pm America/New_York
- Been thanked: 3 times
Error using l3bin
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
Danny
Error using l3bin
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
Bianca
-
- Subject Matter Expert
- Posts: 306
- Joined: Mon Apr 07, 2008 4:40 pm America/New_York
- Been thanked: 3 times
Error using l3bin
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
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
Error using l3bin
Sorry I didn't catch this earlier (dealing with a failed upgrade of my laptop to Windows 10).
Using your list file, I get:
Using emacs' whitespace-mode, your "
There should be three "
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