IDL batch processing: fully automatic input selection -



IDL batch processing: fully automatic input selection -

i need process modis ocean level 2 info , obtained external plugin envi https://github.com/dawhite/epoc/releases. now, want batch process hundreds of images modified code next code. code running fine, have select input file every time. can please help me create programme automatic? appreciate , lot help!

pro ocl2convert

dir = 'c:\modis\' cd, dir ; batch processing of level 2 ocean chlorophyll info files=file_search('*.l2_lac_oc.x.hdf', count=numfiles) ; command search files in directory end ; specified 1 counter=0 ; counter tells idl file beingness read-starts @ 0 while (counter lt numfiles) begin ; command tells idl start loop , finish when counter ; equal number of files name specified name=files(counter) openr, 1, name proj = envi_proj_create(/utm, zone=40, datum='wgs-84') ps = [1000.0d,1000.0d] no_bowtie = 0 ;same not setting keyword no_msg = 1 ;same setting keyword ;output choices ;0 -> standard product ;1 -> georeferenced product ;2 -> standard , georeferenced products output_choice = 2 ;returned values ;r_fid -> envi fid standard product, if requested ;georef_fid -> envi fid georeferenced product, if requested convert_oc_l2_data, fname=fname, output_path=output_path, $ proj=proj, ps=ps, output_choice=output_choice, r_fid=r_fid, $ georef_fid=georef_fid, no_bowtie=no_bowtie, no_msg=no_msg print,'done!' close, 1 counter=counter+1 endwhile

end

not knowing convert_oc_l2_data (it appears programme created, there no public documentation it), problem might out_path variable not defined in rest of program.

batch-processing idl

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -