five sec avg.pro

InfoInfo
Search:    

; Comments added by Erik Johnson 7/16/07

; five_sec_avg.pro, compiles and runs with idl

; it is used in the 1/2 sec to 5 sec avg step

; needs five_sec_avg_fast_avg.pro, read_maccs.pro & write_maccs.pro to run

; input must be clean maccs files (.s2 files)

; output is 5 second average files (.5s files)

; example file names: input: CD04024.s2 output: CD04024.5s

; to compile & run: five_sec_avg, files="/path_to_input_file(s)/name_of_input_file(s)", out_dir="/path_to_output_directory/" (you can use * and ?)

; Example: five_sec_avg, files="/Volumes/physics_data/Ftp/MACCS_DATA/Clean/CD/2005/*.s2", out_dir="/Volumes/physics_data/Ftp/MACCS_DATA/Unrotated/5sec/CD/2005/"

pro five_sec_avg, files=files, out_dir=out_dir

if (not keyword_set(files)) and (not keyword_set(out_dir)) then begin

endif

; This program makes 5 sec averages from 1/2 sec MACCS data 04/26/00

; bad_bx1=where(bx1 eq 32767,count)

; bx2(bad_bx1) = 32767

;PRINT, 'The min and max of bx are ', MIN(bx_avg), ' and ', MAX(bx_avg)

;PRINT, 'The min and max of by are ', MIN(by_avg), ' and ', MAX(by_avg)

;PRINT, 'The min and max of bz are ', MIN(bz_avg), ' and ', MAX(bz_avg)

; plot,bx_avg,max_val=30000,/ystyle

end

This is a Wiki Spot wiki. Wiki Spot is a 501(c)3 non-profit organization that helps communities collaborate via wikis.