source: trunk/SRC/ReadWrite/scanoasis.pro @ 106

Last change on this file since 106 was 106, checked in by pinsard, 18 years ago

start to modify headers of ReadWrite? *.pro files for better idldoc output

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; @file_comments scan an Oasis file (version < 2.5)
6;
7; @categories know what is inside
8;
9; @param filename {in}{required} the file name
10;
11; @restrictions List the variable names included in a Oasis file
12;
13; @examples
14;  IDL> scanoasis,'grids_orca_t106'
15;
16; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
17;                      July 01, 2002
18;-
19;------------------------------------------------------------
20;------------------------------------------------------------
21;------------------------------------------------------------
22
23PRO scanoasis, filename
24
25   openr, unit,filename , /F77_UNFORMATTED, /GET_LUN, /SWAP_IF_LITTLE_ENDIAN $
26    , error=err
27   if err ne 0 then begin
28      print,!err_string
29      return
30   endif
31
32   char8 = '12345678'
33   WHILE NOT EOF(unit) DO BEGIN
34      readu, unit, char8
35      print,  char8
36      readu, unit
37   ENDWHILE
38
39   free_lun,unit
40   return
41end
Note: See TracBrowser for help on using the repository browser.