Ignore:
Timestamp:
Apr 14, 2009 3:31:17 PM (13 years ago)
Author:
srkline
Message:

minor changes and comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtils2D_v40.ipf

    r419 r490  
    2020        LoadWave/G/D/W/A 
    2121        String fileName = S_fileName 
     22        String path = S_Path 
    2223        Variable numCols = V_flag 
    2324 
     
    4647                NewDataFolder/S $("root:"+baseStr) 
    4748        endif 
     49         
     50        //read in the 18 lines of header (18th line starts w/ ASCII... 19th line is blank) 
     51        Make/O/T/N=18 header 
     52        Variable refnum,ii 
     53        string tmpStr="" 
     54        Open/R refNum  as (path+filename) 
     55        ii=0 
     56        do 
     57                tmpStr = "" 
     58                FReadLine refNum, tmpStr 
     59                header[ii] = tmpStr 
     60                ii+=1 
     61        while(ii < 18)           
     62        Close refnum 
     63         
     64        // ? parse to get nice variable names? put these in a structure just for fun? 
     65         
    4866         
    4967        ////overwrite the existing data, if it exists 
Note: See TracChangeset for help on using the changeset viewer.