comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL/PV-Wave - Can they strip headers in bina
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL/PV-Wave - Can they strip headers in bina [message #1246 is a reply to message #1244] Thu, 17 June 1993 08:50 Go to previous message
oet is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Faster algorithm for array index correlation?
Next Topic: IDL (Interactive Data Language) FAQ

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Mar 20 09:58:34 PDT 2026

Total time taken to generate the page: 0.79978 seconds