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

Last change on this file since 272 was 238, checked in by pinsard, 17 years ago

improvements/corrections of some *.pro headers

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