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

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

modification of some headers (+some corrections) to prepare usage of the new idldoc

  • Property svn:keywords set to Id
File size: 796 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;
[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
[130]15; IDL> scanoasis,'grids_orca_t106'
[44]16;
[238]17; @history
18; Sebastien Masson (smasson\@lodyc.jussieu.fr)
[130]19;                            July 01, 2002
[238]20; @version
21; $Id$
22;
[44]23;-
24PRO scanoasis, filename
[114]25;
26  compile_opt idl2, strictarrsubs
27;
[44]28
29   openr, unit,filename , /F77_UNFORMATTED, /GET_LUN, /SWAP_IF_LITTLE_ENDIAN $
30    , error=err
31   if err ne 0 then begin
[236]32      ras = report(!err_string)
[44]33      return
34   endif
35
36   char8 = '12345678'
37   WHILE NOT EOF(unit) DO BEGIN
38      readu, unit, char8
[236]39      ras = report(char8)
[44]40      readu, unit
41   ENDWHILE
42
43   free_lun,unit
44   return
45end
Note: See TracBrowser for help on using the repository browser.