Ignore:
Timestamp:
Apr 12, 2010 11:03:04 AM (13 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/FACILITY_Utils.ipf

    r573 r683  
    703703        return("Function Empty") 
    704704End 
     705 
     706 
     707// Return the filename that represents the previous or next file. 
     708// Input is current filename and increment.  
     709// Increment should be -1 or 1 
     710// -1 => previous file 
     711// 1 => next file 
     712Function/S GetPrevNextRawFile(curfilename, prevnext) 
     713        String curfilename 
     714        Variable prevnext 
     715 
     716        String filename 
     717         
     718        //get the run number 
     719        Variable num = GetRunNumFromFile(curfilename) 
     720                 
     721        //find the next specified file by number 
     722        fileName = FindFileFromRunNumber(num+prevnext) 
     723 
     724        if(cmpstr(fileName,"")==0) 
     725                //null return, do nothing 
     726                fileName = FindFileFromRunNumber(num) 
     727        Endif 
     728 
     729//      print "in FU "+filename 
     730 
     731        Return filename 
     732End 
Note: See TracChangeset for help on using the changeset viewer.