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/ANSTO_Utils.ipf

    r575 r683  
    869869        return("Function Empty") 
    870870End 
     871 
     872// Return the filename that represents the previous or next file. 
     873// Input is current filename and increment.  
     874// Increment should be -1 or 1 
     875// -1 => previous file 
     876// 1 => next file 
     877Function/S GetPrevNextRawFile(curfilename, prevnext) 
     878        String curfilename 
     879        Variable prevnext 
     880 
     881        String filename 
     882         
     883        //get the run number 
     884        Variable num = GetRunNumFromFile(curfilename) 
     885                 
     886        //find the next specified file by number 
     887        fileName = FindFileFromRunNumber(num+prevnext) 
     888 
     889        if(cmpstr(fileName,"")==0) 
     890                //null return, do nothing 
     891                fileName = FindFileFromRunNumber(num) 
     892        Endif 
     893 
     894//      print "in FU "+filename 
     895 
     896        Return filename 
     897End 
Note: See TracChangeset for help on using the changeset viewer.