Last change
on this file since 371 was
371,
checked in by pinsard, 16 years ago
|
improvements of headers (alignments of IDL prompt in examples)
|
-
Property svn:keywords set to
Id
|
File size:
800 bytes
|
Rev | Line | |
---|
[44] | 1 | ;+ |
---|
[232] | 2 | ; |
---|
[130] | 3 | ; @file_comments |
---|
| 4 | ; scan an Oasis file (version < 2.5) |
---|
[44] | 5 | ; |
---|
[106] | 6 | ; @categories know what is inside |
---|
[44] | 7 | ; |
---|
[238] | 8 | ; @param FILENAME {in}{required} |
---|
[163] | 9 | ; The file name |
---|
[44] | 10 | ; |
---|
[238] | 11 | ; @restrictions |
---|
[136] | 12 | ; List the variable names included in a Oasis file |
---|
[44] | 13 | ; |
---|
[106] | 14 | ; @examples |
---|
[44] | 15 | ; |
---|
[371] | 16 | ; IDL> scanoasis,'grids_orca_t106' |
---|
| 17 | ; |
---|
[238] | 18 | ; @history |
---|
| 19 | ; Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
[130] | 20 | ; July 01, 2002 |
---|
[238] | 21 | ; @version |
---|
| 22 | ; $Id$ |
---|
| 23 | ; |
---|
[44] | 24 | ;- |
---|
| 25 | PRO scanoasis, filename |
---|
[114] | 26 | ; |
---|
| 27 | compile_opt idl2, strictarrsubs |
---|
| 28 | ; |
---|
[44] | 29 | |
---|
| 30 | openr, unit,filename , /F77_UNFORMATTED, /GET_LUN, /SWAP_IF_LITTLE_ENDIAN $ |
---|
| 31 | , error=err |
---|
| 32 | if err ne 0 then begin |
---|
[236] | 33 | ras = report(!err_string) |
---|
[44] | 34 | return |
---|
| 35 | endif |
---|
| 36 | |
---|
| 37 | char8 = '12345678' |
---|
| 38 | WHILE NOT EOF(unit) DO BEGIN |
---|
| 39 | readu, unit, char8 |
---|
[236] | 40 | ras = report(char8) |
---|
[44] | 41 | readu, unit |
---|
| 42 | ENDWHILE |
---|
| 43 | |
---|
| 44 | free_lun,unit |
---|
| 45 | return |
---|
| 46 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.