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