Ignore:
Timestamp:
Apr 12, 2010 11:03:04 AM (12 years ago)
Author:
srkline
Message:

Updated version of HFIR_DataReadWrite.ipf from Jae Hie.

Updated the initialization of the templates from other facilities to remove the NCNR_Package_Loader.ipf since they are by definition incompatible.

Forward/Back? incrementing of the run number (as for the 2D display) has been moved to the Facility_Utils.ipf for all facilities and for the template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ILL_Utils.ipf

    r576 r683  
    987987        return(ff) 
    988988End 
     989 
     990 
     991// Return the filename that represents the previous or next file. 
     992// Input is current filename and increment.  
     993// Increment should be -1 or 1 
     994// -1 => previous file 
     995// 1 => next file 
     996Function/S GetPrevNextRawFile(curfilename, prevnext) 
     997        String curfilename 
     998        Variable prevnext 
     999 
     1000        String filename 
     1001         
     1002        //get the run number 
     1003        Variable num = GetRunNumFromFile(curfilename) 
     1004                 
     1005        //find the next specified file by number 
     1006        fileName = FindFileFromRunNumber(num+prevnext) 
     1007 
     1008        if(cmpstr(fileName,"")==0) 
     1009                //null return, do nothing 
     1010                fileName = FindFileFromRunNumber(num) 
     1011        Endif 
     1012 
     1013//      print "in FU "+filename 
     1014 
     1015        Return filename 
     1016End 
Note: See TracChangeset for help on using the changeset viewer.