Index of /instruments/software/secchi/secchi_software_in_ssw/idl/display/sunloop/vicar

Icon  Name                                                                     Last modified      Size  
[PARENTDIR] Parent Directory - [TXT] gethost.pro 2010-01-11 05:47 2.4K [   ] idlvicar.pro 2010-01-11 05:47 401 [TXT] read_vicar.pro 2010-01-11 05:47 8.0K [TXT] read_vicar_label.pro 2010-01-11 05:47 2.2K [TXT] vicgetpar.pro 2010-01-11 05:47 3.4K [TXT] vicsetpar.pro 2010-01-11 05:47 2.5K [TXT] write_vicar.pro 2010-01-11 05:47 5.5K
There are two main routines, read_vicar and write_vicar.
Both have help sections within the code, but here's a quick
example of how to use them.  vicsetpar, vicgetpar and gethost
are called by the main programs.



image=read_vicar('vicar.img', lab, /flip)

reads a vicar image, stores the ascii label in the variable 'lab',
flips the image so it is displayed correctly in IDL.  Puts the
image data in the IDL array 'image'.




write_vicar,'vicar.img', image, lab

writes the IDL array 'image' to a VICAR file with an ascii label from 'lab'.



Ashwin
x6960