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

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

replace some print by some report in some .pro #2

  • Property svn:keywords set to Id
File size: 794 bytes
RevLine 
[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;
[163]8; @param FILENAME {in}{required}
9; The file name
[44]10;
[136]11; @restrictions
12; List the variable names included in a Oasis file
[44]13;
[106]14; @examples
[130]15; IDL> scanoasis,'grids_orca_t106'
[44]16;
[106]17; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
[130]18;                            July 01, 2002
19; @version $Id$
[44]20;-
[231]21;
[44]22PRO scanoasis, filename
[114]23;
24  compile_opt idl2, strictarrsubs
25;
[44]26
27   openr, unit,filename , /F77_UNFORMATTED, /GET_LUN, /SWAP_IF_LITTLE_ENDIAN $
28    , error=err
29   if err ne 0 then begin
[236]30      ras = report(!err_string)
[44]31      return
32   endif
33
34   char8 = '12345678'
35   WHILE NOT EOF(unit) DO BEGIN
36      readu, unit, char8
[236]37      ras = report(char8)
[44]38      readu, unit
39   ENDWHILE
40
41   free_lun,unit
42   return
43end
Note: See TracBrowser for help on using the repository browser.