Dear Mike,
Now the program runs fine with the MODIS data. Thanks a lot.
My main aim to do this was to be able to extract pixel values from some of the OCM1 L2 images I processed. Bryan had told me that the OCM1 L2 file should be viewable with SeaDAS. I am able to display these L2 files in SeaDAS and also I am able to extract pixel values in the interactive mode. Can we extract pixel values from these L2 files in command mode too?
I changed the program to extract pixel values from one of these L2 files, and I am getting the following error:
seadas@seadasva:~/shared/Data/lda_hdf$ seadas -b lda_output1
IDL Version 7.0 (linux x86 m32). (c) 2007, ITT Visual Information Solutions
% Embedded IDL: NASA GSFC SeaDAS Development, SeaDAS.
% Embedded IDL: NASA GSFC SeaDAS Development, SeaDAS.
SeaDAS Version 6.0 (pid = 9565)
[LOAD] - Invalid file type for keyword FTYPE
SDP_VAL_BAND: No band available for band_no : 1
% Attempt to subscript FREEBANDFLAG (SDS_BAND) with BAND_IX is out of range.
[MAIN]: Error executing the command:
if (fnm ne "" ) then out_track, iband=1, ifile=fnm, skip=0, ofile=out_fnm, /no_connect else message, pgm+': File <'+trk_fnm+'> could not be not read.'
MAIN: Error executing command in batch file
seadas@seadasva:~/shared/Data/lda_hdf$
Thanks for your time,
Regards,
Dash
P.S. Please find the program, lat/lon file and the L2 file used attached. Could we add few lines in the program for projection of the file first (the SeaDAS default projection is fine), and then do the pixel value extraction?