comand l2gen error: No such file or directory

Please enter here to ask a question about any NASA Science related topics!
Post Reply
lwk1542
Posts: 26
Joined: Tue Apr 03, 2018 9:52 am America/New_York

comand l2gen error: No such file or directory

by lwk1542 » Sat Jun 08, 2019 8:45 am America/New_York

harris@ubuntu:~$ l2gen,ifile="/home/quzhou/PycharmProjects/modis/MOD021KM.A2008094.0230.061.2017255063942.hdf",geofile="/home/quzhou/PycharmProjects/modis/MOD03.A2008094.0230.061.2017255024925.hdf",ofile="/home/quzhou/PycharmProjects/modis/Tmodis.HDF"
bash: l2gen,ifile=/home/quzhou/PycharmProjects/modis/MOD021KM.A2008094.0230.061.2017255063942.hdf,geofile=/home/quzhou/PycharmProjects/modis/MOD03.A2008094.0230.061.2017255024925.hdf,ofile=/home/quzhou/PycharmProjects/modis/Tmodis.HDF: No such file or directory

the ifile and geofile exist.

if I execute l2gen in MODIS file folder:
(base) quzhou@ubuntu:~/PycharmProjects/modis$ l2gen,ifile="MOD021KM.A2008094.0230.061.2017255063942.hdf",geofile="MOD03.A2008094.0230.061.2017255024925.hdf",ofile='T2008094023000.L2_LAC_OC'
l2gen,ifile=MOD021KM.A2008094.0230.061.2017255063942.hdf,geofile=MOD03.A2008094.0230.061.2017255024925.hdf,ofile=T2008094023000.L2_LAC_OC: command not found

However, "l2gen -h"  is a valid command

Tags:

gnwiii
Posts: 640
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2

comand l2gen error: No such file or directory

by gnwiii » Sat Jun 08, 2019 7:08 pm America/New_York

The bash shell uses spaces rather than commas to separate command-line arguments, so just edit your command line to replace the commas with spaces.

Post Reply