Ignore:
Timestamp:
08/21/06 11:01:50 (18 years ago)
Author:
navarro
Message:

header improvements + xxx doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ReadWrite/idl-NetCDF/ncdf_quickread/ncdf_quickread_helper.pro

    r134 r157  
    3737;                           Also, only stringify attributes of type CHAR. 
    3838;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
    39  
     39;+ 
     40; @file_comments 
     41; This function returns the filename name from the full path. 
     42; 
     43; @categories 
     44; 
     45; 
     46; @param FULLPATH 
     47; full directory+file path 
     48; 
     49; @keyword SUFFIX 
     50; include inptu suffix in output file name 
     51; 
     52; @returns 
     53; file - filename 
     54; 
     55; @restrictions 
     56; 
     57; 
     58; @examples 
     59; Call: file = ncdf_quickread_getfile(fullpath) 
     60;  
     61; @history 
     62; 
     63; 
     64; @version 
     65; $Id$ 
     66;- 
    4067function ncdf_quickread_getFile, fullpath, suffix=suffix 
    4168on_error,2 
    4269compile_opt hidden 
    43 ; func_description 
    44 ; This function returns the filename name from the full path. 
    45 ; Inputs:    fullpath - full directory+file path 
    46 ; Keyword:   /suffix:   include inptu suffix in output file name 
    47 ; Outputs:   file - filename 
    48 ; Example Call: file = ncdf_quickread_getfile(fullpath) 
    49  
    5070; Retrieve the postion at which the first '/' character occurs from 
    5171; the end of the string. 
     
    7393end 
    7494 
     95;+ 
     96; @file_comments 
     97; This function returns the directory name from the full path. 
     98; 
     99; @categories 
     100; 
     101; 
     102; @param FULLPATH 
     103; full directory+file path 
     104; 
     105; @returns 
     106; directory path 
     107; 
     108; @restrictions 
     109; 
     110; 
     111; @examples 
     112; Call: dir = ncdf_quickread_getdir(fullpath) 
     113;  
     114; @history 
     115; 
     116; 
     117; @version 
     118; $Id$ 
     119;- 
    75120 
    76121function ncdf_quickread_getDir, fullpath 
    77122on_error,2 
    78123compile_opt hidden 
    79 ; func_description 
    80 ; This function returns the directory name from the full path. 
    81 ; Inputs:   fullpath - full directory+file path 
    82 ; Outputs:  dir - directory path 
    83 ; Example Call: dir = ncdf_quickread_getdir(fullpath) 
    84  
    85124; Retrieve the postion at which the first '/' character occurs from 
    86125; the end of the string. 
     
    97136end 
    98137 
    99  
    100 function ncdf_quickread_validateName, varname 
    101 on_error,2 
    102 compile_opt hidden 
    103 ; func_description 
     138;+ 
     139; @file_comments 
    104140; This routine ensures that the given name does not start with a number, 
    105141; nor contain a dash.  IDL cannot accept a variable starting with a  
     
    107143; underscore is prepended to the name, and if it contains a dash, the  
    108144; dash is replaced with an underscore.   
     145; 
     146; @categories 
     147; 
     148; 
     149; @param VARNAME 
     150; The name of the variable to be read 
     151;  
     152; 
     153; @returns 
     154; 
     155; 
     156; @restrictions 
     157; 
     158; 
     159; @examples 
     160;  
     161;  
     162; @history 
     163; 
     164; 
     165; @version 
     166; $Id$ 
     167;- 
     168 
     169function ncdf_quickread_validateName, varname 
     170on_error,2 
     171compile_opt hidden 
    109172 
    110173; Initialize the name. 
     
    138201; End function. 
    139202end 
    140  
    141  
     203;+ 
     204; @file_comments 
     205; This procedure creates a script to read the data in a given netCDF 
     206; file into IDL.  The default output file is the name of the netCDF 
     207; file with idl replacing any existing suffix.  The default output is 
     208; variable data only. 
     209; 
     210; @categories 
     211; 
     212; 
     213; @param INFILE 
     214; full path to netCDF file of interest 
     215; 
     216; @keyword VERBOSE   
     217; Set this keyword to return an error message in case of an error. 
     218; 
     219; @keyword PREFIX 
     220; see changelog above. 
     221; 
     222; @keyword FIELDS 
     223; 
     224; 
     225; @keyword REFORM 
     226; see changelog above.  
     227; 
     228; @returns 
     229; array of commands to run at top level 
     230; 
     231; @restrictions 
     232; 
     233; 
     234; @examples 
     235;  
     236;  
     237; @history 
     238; 
     239; 
     240; @version 
     241; $Id$ 
     242; 
     243;- 
    142244function ncdf_quickread_helper, infile, verbose=verbose,  $ 
    143245                                prefix=prefix, fields=fields, $ 
     
    146248compile_opt hidden 
    147249; 
    148 ; This procedure creates a script to read the data in a given netCDF 
    149 ; file into IDL.  The default output file is the name of the netCDF 
    150 ; file with idl replacing any existing suffix.  The default output is 
    151 ; variable data only. 
    152 ; Inputs:           infile  - full path to netCDF file of interest 
    153 ; Optional Inputs:  verbose - includes extractions of all input file  
    154 ;                             attributes in idl script 
    155 ;                   prefix, reform - see changelog above. 
    156 ; 
    157 ; Return value:  array of commands to run at top level 
     250; 
    158251 
    159252; Ensure that the netCDF format is supported on the current platform. 
Note: See TracChangeset for help on using the changeset viewer.