Ignore:
Timestamp:
Aug 15, 2019 2:33:23 PM (3 years ago)
Author:
krzywon
Message:

Output NSORT data as NXcanSAS. Mostly tested, but a couple TODOs and FIXMEs left.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/branches/nxcansas_writer/NCNR_User_Procedures/Reduction/SANS/Write_SANS_NXcanSAS.ipf

    r1189 r1194  
    3434         
    3535        // Check fullpath and dialog 
    36         print "fullpath: ",fullpath 
    3736        fileID = NXcanSAS_OpenOrCreate(dialog,fullpath,base) 
    3837         
     
    9493         
    9594        // Write all meta data 
    96         WriteMetaData(fileID,parentBase,nxcansasBase,rw,textw) 
     95        if (CmpStr(type,"NSORT") == 0) 
     96                Wave process = $(destStr + ":process") 
     97                // TODO: Write to file 
     98        Else 
     99                WriteMetaData(fileID,parentBase,nxcansasBase,rw,textw) 
     100        EndIf 
    97101         
    98102        // 
     
    278282        // TODO: Reinstate Qdev/resolutions when I can fix the reader issue 
    279283        // 
    280          
    281284 
    282285        // Create qx and qy entry 
     
    344347        Make/O/T/N=5 $(apertureBase + ":attrVals") = {"SASaperture","NXaperture"} 
    345348        CreateStrNxCansas(fileID,apertureParent,"","",empty,$(apertureBase + ":attr"),$(apertureBase + ":attrVals")) 
    346          
    347         // 
    348         // TODO: Where do I get rectangular dimensions from? 
    349         // 
    350          
    351349        // Create SASaperture shape entry 
    352350        Make/O/T/N=1 $(apertureBase + ":shape") = {"pinhole"}  
Note: See TracChangeset for help on using the changeset viewer.