User Tools

Site Tools


code:work:lvisf:processing:idl:examples

This is an old revision of the document!


Code Examples

IDL example code to read raw data files and extract the digitizer header and trailer information

; load a raw file
mydir='/Users/drabine/data/lvisf/ltr/20220324_ltr_gedi_vertical_iris_test'
myfilter='lvis_*.dat.gz'
myfiles = file_search(mydir,myfilter)

; set one
myfile = myfiles(0)
result = filename2meta( myfile, compress, filedate, galvdepth, version )
c = read_lvisf_fn( myfile, COMPRESS=compress, VERSION=version, /BIG )

shot = c(0)
; decode a sample digitzer header
h = lvisf_decode_fpga_meta_header(shot.DIGIA_META_HEADER_DATA)

; decode a sample digitizer trailer
t = lvisf_decode_fpga_meta_trailer(shot.DIGIA_META_TRAILER_DATA)
code/work/lvisf/processing/idl/examples.1649353707.txt.gz · Last modified: 2022/04/07 17:48 by david