Ignore:
Timestamp:
Jan 30, 2010 12:45:29 AM (13 years ago)
Author:
ajj
Message:

Fix to remove writing of headers from NSORTed files into output as this was broken if the NSORTed files were XML. Could fix it but would be very painful.

File:
1 edited

Legend:

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

    r626 r627  
    235235        Endif 
    236236         
    237         // read in the header information from each of the combined files and put this information in the file header 
    238         String dum,hdr1="none\r\n",hdr2="none\r\n",hdr3="none\r\n" 
    239         PathInfo catPathName 
    240          
    241         // the first file exists, check anyways 
    242         if(cmpstr(firstFileName,"none") !=0) 
    243                 Open/R refNum as S_Path+firstFileName 
    244                 FReadLine refNum, dum 
    245                 FReadLine refNum, hdr1                  //just grab the second line 
    246                 Close refNum 
    247         endif 
    248         //second file 
    249         if(cmpstr(secondFileName,"none") !=0) 
    250                 Open/R refNum as S_Path+secondFileName 
    251                 FReadLine refNum, dum 
    252                 FReadLine refNum, hdr2                  //just grab the second line 
    253                 Close refNum 
    254         endif 
    255         // third file 
    256         if(cmpstr(thirdFileName,"none") !=0) 
    257                 Open/R refNum as S_Path+thirdFileName 
    258                 FReadLine refNum, dum 
    259                 FReadLine refNum, hdr3                  //just grab the second line 
    260                 Close refNum 
    261         endif 
     237//      // read in the header information from each of the combined files and put this information in the file header 
     238//      String dum,hdr1="none\r\n",hdr2="none\r\n",hdr3="none\r\n" 
     239//      PathInfo catPathName 
     240//       
     241//      // the first file exists, check anyways 
     242//      if(cmpstr(firstFileName,"none") !=0) 
     243//              Open/R refNum as S_Path+firstFileName 
     244//              FReadLine refNum, dum 
     245//              FReadLine refNum, hdr1                  //just grab the second line 
     246//              Close refNum 
     247//      endif 
     248//      //second file 
     249//      if(cmpstr(secondFileName,"none") !=0) 
     250//              Open/R refNum as S_Path+secondFileName 
     251//              FReadLine refNum, dum 
     252//              FReadLine refNum, hdr2                  //just grab the second line 
     253//              Close refNum 
     254//      endif 
     255//      // third file 
     256//      if(cmpstr(thirdFileName,"none") !=0) 
     257//              Open/R refNum as S_Path+thirdFileName 
     258//              FReadLine refNum, dum 
     259//              FReadLine refNum, hdr3                  //just grab the second line 
     260//              Close refNum 
     261//      endif 
    262262 
    263263         
     
    267267        fprintf refnum, "COMBINED FILE CREATED: %s \r\n",date() 
    268268         
    269         fprintf refnum, "FIRST File %s",hdr1            //new, Mar 2008 
    270         fprintf refnum, "SECOND File %s",hdr2           //new, Mar 2008 
    271         fprintf refnum, "THIRD File %s",hdr3            //new, Mar 2008 
     269//      fprintf refnum, "FIRST File %s",hdr1            //new, Mar 2008 
     270//      fprintf refnum, "SECOND File %s",hdr2           //new, Mar 2008 
     271//      fprintf refnum, "THIRD File %s",hdr3            //new, Mar 2008 
    272272         
    273273        fprintf refNum, "NSORT-ed   %s \t  +  %s\t  + %s\r\n",firstFileName, secondFileName,thirdFileName 
Note: See TracChangeset for help on using the changeset viewer.