Opened 7 years ago

Closed 6 years ago

#22 closed enhancement (fixed)

support transmission spectra

Reported by: prjemian Owned by: Jemian
Priority: major Version:
Keywords: v1.1 Cc:

Description

ISIS has a need to store transmission spectra with the SASentry. This need is particular to TOF-SANS instruments. Currently, these spectra are stored as siblings to SASData using an XML foreign namespace. It would be easier if the canSAS defined these terms so that a foreign namespace is not required.

Separate data sets for "sample" and "can" are typical. Each would hold this kind of data:

Lambda (A) T (none) Tdev (none) 
2.238500  0.97901E+00  0.12E-01  
2.316848  0.95479E+00  0.12E-01  
2.397937  0.95020E+00  0.12E-01 
...

Suggest that we store this data similar to the 1-D SASdata, such as:

  <SAStransmission_spectrum name="sample">
   <data><Lambda unit="A"> 2.238500 </Lambda><T unit="none"> 0.97901E+00 </T><Tdev unit="none"> 0.12E-01 </Tdev></data>
   <data><Lambda unit="A"> 2.316848 </Lambda><T unit="none"> 0.95479E+00 </T><Tdev unit="none"> 0.12E-01 </Tdev></data>
   <data><Lambda unit="A"> 2.397937 </Lambda><T unit="none"> 0.95020E+00 </T><Tdev unit="none"> 0.12E-01 </Tdev></data>
   <!-- ... -->
  </SAStransmission_spectrum>

Change History (5)

comment:1 Changed 7 years ago by prjemian

Perhaps we generalize a SASspectrum object, then set name="sample_transmission" or name="can_transmission".

comment:2 Changed 7 years ago by prjemian

On 2012-08-10, Steve King writes:

We already have provision in the standard under SASsample for stating a fixed-wavelength transmission, so for consistency I think wavelength-dependent transmissions should really also go in the same place''

comment:3 Changed 7 years ago by prjemian

Structure called data is too general if we are to specify the minimum array names to be found. Change to TSdata:

currently

  <SAStransmission_spectrum name="sample">
   <TSdata><Lambda unit="A"> 2.238500 </Lambda><T unit="none"> 0.97901E+00 </T><Tdev unit="none"> 0.12E-01 </Tdev></TSdata>
   <TSdata><Lambda unit="A"> 2.316848 </Lambda><T unit="none"> 0.95479E+00 </T><Tdev unit="none"> 0.12E-01 </Tdev></TSdata>
   <TSdata><Lambda unit="A"> 2.397937 </Lambda><T unit="none"> 0.95020E+00 </T><Tdev unit="none"> 0.12E-01 </Tdev></TSdata>
   <!-- ... -->
  </SAStransmission_spectrum>

comment:4 Changed 7 years ago by prjemian

2012-08-13, Steve King wrote:

To be brief:

1) Could we not just use Tdata instead of TSdata? (matches Idata then?)

2) I'm happy with <SAStransmission_spectrum name="sample"> and <...name="can">

Steve

comment:5 Changed 6 years ago by prjemian

  • Resolution set to fixed
  • Status changed from new to closed

fixed in [280]

Note: See TracTickets for help on using tickets.