By Bruce
Date 2008-02-19 14:38
Environment - SeaDAS 5.1.6, IDL 6.4 (full install, not embedded), Fedora 6.
If I type the following at the seadas> prompt, they work fine. If I put them in a idl .pro and execute it, I get an error...
hdf="A20042452004274.L3m_MO_CLCT_4"
load,hdf
alat=21.6925
alon=-17.827
sdp_nav_ll2tv,dum,alat,alon,apix,aline,band=1
handle_value,band_info(0).bdata_handle,banddata
rawdata=banddata(apix-1,aline-1)
geodata=sdp_raw2geo(1,rawdata)
When run as a .pro, I get the error
% Expression must be a structure in this context: BAND_INFO.
% Execution halted at: TESTING 28 /aqua_data/caco3/new/testing.pro
% $MAIN$
If I add "seadisp" after the load in the srcript, the error changes to a dialog box saying "SDP_VAL_BAND: No band available for band_no : 1"
How can I get this to run in a script?