[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: template for READ_ASCII



From: "Alex Schuster" <Wonko@planet-interkom.de>
> There is the SAVE method already mentioned in this thread, but another
> possibility would be the creation of the template in your program like I
> just did in one of mine:
>
> template = { $
> version : 1.0, $
> datastart : 9, $
> delimiter : 32B, $
> missingvalue : !values.f_nan, $
> commentsymbol : '', $
> fieldcount : 8L, $
> fieldtypes : [ 3, 4, 4, 4, 4, 4, 4, 4 ], $
> fieldnames : [ 'time', 'xyz', 'field3', 'field4', $
> 'field5', 'field6', 'field7', 'winkel' ], $
> fieldlocations : [ 0, 3, 8, 14, 22, 27, 33, 40 ], $
> fieldgroups : [ 0, 1, 1, 1, 1, 1, 1, 7 ] }

Good point, Alex. I considered this some time ago but decided that I
couldn't be bothered decoding the format of the template structures. I guess
they're not too bad if you write them out carefully. Your example will go
into my personal repository of useful IDL tips.
---
Mark Hadfield
m.hadfield@niwa.cri.nz  http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




-- 
Posted from clam.niwa.cri.nz [202.36.29.1] 
via Mailgate.ORG Server - http://www.Mailgate.ORG