write maccs.pro

InfoInfo
Search:    

; Comments added by Erik Johnson 7/6/07

; write_maccs.pro, compiles and runs with idl

; called by igloolik_despike.pro (which creates despiked .s2 files)
; called by five_sec_avg.pro (which creates 5 second average .5s files)
; called by sec_to_min.pro (which creates 1 minute average .1m files)

; writes 5 different types of maccs data files: .1m (1 minute files), .1mg (1 month of 1 min files merged together in one file), .5sg (rotated 5 second files), .5s (5 second files), .s2 (cleaned files)
; uses the type parameter to specify what type of file to write, Ex: type="1m"
; all parameters are required

pro write_maccs,filename,bx,by,bz,bx2=bx2,by2=by2,bz2=bz2,tf1=tf1,type=type

case type of

; writeu,unit2,byte(hr),byte(mi),long(bx(j)*1000),long(by(j)*1000),long(bz(j)*1000)

; writeu,unit2,byte(hr),byte(mi),long(bx(j)*1000),long(by(j)*1000),long(bz(j)*1000)

;if j eq 86399L then begin

; print, bx(j),long(bx(j)),tf1(j),byte(tf1(j)),byte(hr),byte(mi),byte(se)

; help, bx, tf1, hr, mi, se

;endif

endcase

print,'done writing'

end

This is a Wiki Spot wiki. Wiki Spot is a non-profit organization that helps communities collaborate via wikis.