Re: IDL/PV-Wave - Can they strip headers in bina [message #1244] |
Thu, 17 June 1993 12:01 |
dieh2133
Messages: 11 Registered: December 1992
|
Junior Member |
|
|
The ASSOC stuff seams to be the same with WAVE 3.0, works quite nicely for me.
Another possibility would be to use the OFFset keyword with FIX, DOUBLE,...
after heving read the stuff into a bytearray.
Rolf.
|
|
|
Re: IDL/PV-Wave - Can they strip headers in bina [message #1246 is a reply to message #1244] |
Thu, 17 June 1993 08:50  |
oet
Messages: 28 Registered: February 1993
|
Junior Member |
|
|
In article AA03092@tigermoth.aero.gla.ac.uk.gla.ac.uk, gnaa38@aero.gla.ac.uk (Paul Porcelli) writes:
> Could someone tell me how IDL or PV-Wave copes with dislaying data from a
> binary file which has a a header of various types (ie int,float,string) and
> which also defines the number of records in the file.
> Would the header have to be stripped first by another program?
> I am specifically interested in how easy it is to read from a file of
> this type and ouput the data in a graphical format(ie plot etc).
> Are any of the two products more suited to this task?
IDL has the assoc function with the possiblity to define an offset
value as third parameter to skip a header. Below a read procedure for
a meteo sat file. In addition there are now included CDF, NETCDF and
HDF read in routines in IDL which are types of self describing data.
We use the function below to read in the satellite images into our
IDL-Meteosat-Monitor.
--
|Thomas Oettli Internet: Thomas.Oettli@sma.ch |
|Swiss Meteorological Institute thomas.oettli@active.ch |
|Kraehbuehlstr. 58 CServe: 100015.3543@compuserve.com |
|8044 Zuerich |
;Read a meteo sat image
;+
; NAME:
; SATREAD
;
; PURPOSE:
; Read a meteo sat file
;
; CATEGORY:
; Input/Output
;
; CALLING SEQUENCE:
; image=satread(<path>/<file name>)
;
;
; COMMON BLOCKS:
;
; SIDE EFFECTS:
;
; RESTRICTIONS:
;
; EXAMPLE:
; image=satread('/proj/sat/satfil/921008.580')
; TV, image
;
; MODIFICATION HISTORY:
; Written by: Philippe Overney, Th. Oettli, SMI, Oct-1992
;
;
;-
FUNCTION SATREAD, s
OPENR, unit, s, /GET_LUN
a=ASSOC(unit, BYTARR(800,800),201)
r=ROTATE(a(0),7)
FREE_LUN, unit
RETURN, r
end
|
|
|