2012 Data Discussion Examples: Difference between revisions

From canSAS
(remove @Q attributes)
Line 8: Line 8:
SASentry
SASentry
SASdata
SASdata
@Q="Q"
@Qindices="*"
@Qindices="*"
@Iindices="Q"
@Iindices="Q"
Line 23: Line 22:
SASentry
SASentry
SASdata
SASdata
@Q="Q"
@Qindices="*,"
@Qindices="*,"
@Iindices="Q,time"
@Iindices="Q,time"
Line 39: Line 37:
SASentry
SASentry
SASdata
SASdata
@Q="Q"
@Qindices="*,time"
@Qindices="*,time"
@Iindices="Q,time"
@Iindices="Q,time"
Line 58: Line 55:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy"
@Qindices="*,*"
@Qindices="*,*"
@Iindices="Q,Q"
@Iindices="Q,Q"
Line 74: Line 70:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy,Qz"
@Qindices="*"
@Qindices="*"
@Iindices="Q"
@Iindices="Q"
Line 89: Line 84:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy,Qz"
@Qindices="*,time"
@Qindices="*,time"
@Iindices="Q,time"
@Iindices="Q,time"
Line 105: Line 99:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy,Qz"
@Qindices="*,time,T,P"
@Qindices="*,time,T,P"
@Iindices="Q,time,T,P"
@Iindices="Q,time,T,P"
Line 123: Line 116:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy,Qz"
@Qindices=",*,*,time,"
@Qindices=",*,*,time,"
@Iindices="T,Q,Q,time,P"
@Iindices="T,Q,Q,time,P"
Line 137: Line 129:
== example of simple 2D SAS/WAS data, Isas(Q) & Iwas(Q) ==
== example of simple 2D SAS/WAS data, Isas(Q) & Iwas(Q) ==


Consider the multi-technique experiment that produces small-angle and wide-angle scattering data images.  The reduced data results in images as well.  Each image might be described separately (see [[2012_Data_Discussion_Examples#example_of_SAS_data_with_several_detectors.2C_I.28Q.29 | example of SAS data with several detectors]] for an alternative).  Here the SAS data image is 100 x 512 pixels.  The WAS data is 256 x 256 pixels.
Consider the multi-technique experiment that produces small-angle and wide-angle scattering data images.  The reduced data results in images as well.  Each image might be described separately (see [[2012_Data_Discussion_Examples#example_of_SAS_data_with_several_detectors.2C_I.28Q.29 | example of SAS data with several detectors]] for an alternative).  Here the SAS data image is 100 x 512 pixels.  The WAS data (not covered by this canSAS standard) is 256 x 256 pixels.


<pre>
<pre>
Line 143: Line 135:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy"
@Qindices="*,*"
@Qindices="*,*"
@Iindices="Q,Q"
@Iindices="Q,Q"
Line 150: Line 141:
Qy: float[100, 512]
Qy: float[100, 512]
WASdata
WASdata
@Q="Q1,Q2"
@Qindices="*,*"
@Qindices="*,*"
@Iindices="Q,Q"
@Iindices="Q,Q"
I: float[256, 256]
I: float[256, 256]
Q1: float[256, 256]
Qx: float[256, 256]
Q2: float[256, 256]
Qy: float[256, 256]
</pre>
</pre>


Line 171: Line 161:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy,Qz"
@Qindices="*"
@Qindices="*"
@Iindices="Q"
@Iindices="Q"
Line 194: Line 183:
SASentry
SASentry
SASdata
SASdata
@Q="Qx,Qy"
@Qindices="*,*"
@Qindices="*,*"
@Iindices=" ??? "
@Iindices=" ??? "

Revision as of 13:01, 30 July 2012

1D

example of simple 1D SAS data, I(Q)

SASroot
	SASentry
		SASdata
			@Qindices="*"
			@Iindices="Q"
			I: float[100]
			Q: float[100]

(see the Discussion page for an XML representation with the recommended minimum content)

example of simple 1D SAS data in a time series, I(Q, t)

SASroot
	SASentry
		SASdata
			@Qindices="*,"
			@Iindices="Q,time"
			I: float[100, ntime]
			Q: float[100]
			t: float[ntime]


example of generic 1D SAS data in a time series, I(Q(t), t)

SASroot
	SASentry
		SASdata
			@Qindices="*,time"
			@Iindices="Q,time"
			I: float[100, ntime]
			Q: float[100, ntime]
			t: float[ntime]



2D

example of simple 2D (image) SAS data, I(Q)

SASroot
	SASentry
		SASdata
			@Qindices="*,*"
			@Iindices="Q,Q"
			I: float[100, 512]
			Qx: float[100, 512]
			Qy: float[100, 512]

example of generic 2D SAS data, I(Q)

Could use this model, for example, to describe data from multiple detectors (by listing individual pixels off all detectors). Or, could describe data from one detector of any geometry. This is the most flexible.

SASroot
	SASentry
		SASdata
			@Qindices="*"
			@Iindices="Q"
			I: float[100*512]
			Qx: float[100*512]
			Qy: float[100*512]
			Qz: float[100*512]

example of generic 2D SAS data in a time series, I(Q(t),t)

SASroot
	SASentry
		SASdata
			@Qindices="*,time"
			@Iindices="Q,time"
			I: float[100*512,ntime]
			Qx: float[100*512,ntime]
			Qy: float[100*512,ntime]
			Qz: float[100*512,ntime]
			t: float[ntime]

example of generic 2D SAS data in a time, T, & P series, I(Q(t,T,P),t,T,P)

SASroot
	SASentry
		SASdata
			@Qindices="*,time,T,P"
			@Iindices="Q,time,T,P"
			I: float[100*512,ntime,nT,nP]
			Qx: float[100*512,ntime,nT,nP]
			Qy: float[100*512,ntime,nT,nP]
			Qz: float[100*512,ntime,nT,nP]
			t: float[ntime]
			T: float[nT]
			P: float[nP]

example of generic 2D SAS data in a time, T, & P series, I(T,Q(t),t,P)

SASroot
	SASentry
		SASdata
			@Qindices=",*,*,time,"
			@Iindices="T,Q,Q,time,P"
			I: float[nT,100,512,ntime,nP]
			Qx: float[100,512,ntime]
			Qy: float[100,512,ntime]
			Qz: float[100,512,ntime]
			t: float[ntime]
			T: float[nT]
			P: float[nP]

example of simple 2D SAS/WAS data, Isas(Q) & Iwas(Q)

Consider the multi-technique experiment that produces small-angle and wide-angle scattering data images. The reduced data results in images as well. Each image might be described separately (see example of SAS data with several detectors for an alternative). Here the SAS data image is 100 x 512 pixels. The WAS data (not covered by this canSAS standard) is 256 x 256 pixels.

SASroot
	SASentry
		SASdata
			@Qindices="*,*"
			@Iindices="Q,Q"
			I: float[100, 512]
			Qx: float[100, 512]
			Qy: float[100, 512]
		WASdata
			@Qindices="*,*"
			@Iindices="Q,Q"
			I: float[256, 256]
			Qx: float[256, 256]
			Qy: float[256, 256]

example of SAS data with several detectors, I(Q)

Here, the data are appended to common data objects. This hypothetical case has reduced data derived from three detectors, Ia(Q), Ib(Q), and Ic(Q):

  • Ia(Q) is derived from a 2D detector (100 x 512 pixels)
  • Ib(Q) is derived from a 1D detector (2000 pixels)
  • Ic(Q) is derived from a 2D detector (256 x 256 pixels)
SASroot
	SASentry
		SASdata
			@Qindices="*"
			@Iindices="Q"
			I: float[100*512+2000+256*256]
			Qx: float[100*512+2000+256*256]
			Qy: float[100*512+2000+256*256]
			Qz: float[100*512+2000+256*256]

invalid case

example of **over-simple** 2D (image) SAS data, I(Q)

Invalid because the method of addressing the Q values is different from all the above.


SASroot
	SASentry
		SASdata
			@Qindices="*,*"
			@Iindices=" ??? "
			I: float[100, 512]
			Qx: float[100]
			Qy: float[512]

terms

SASroot

same use as original 1D format

SASentry

some changes from the original 1D format

SASdata

different use from original 1D format, refers to a single reduced data set that can be represented thus (such as from one detector)

SASdata has three possible attributes, as shown in this example:

@Qindices=",*,*,time,"
@Iindices="T,Q,Q,time,P"

Commas are used as delimiters in all cases.

@Qindices

Comma-separated list that describes which indices are used (from the I object) to reference Q. Leave a position empty if that index is not used to describe Q, Use a "*" to describe an index that uses the Q definition. For other data storage objects, name the object for the position where it should appear.

@Iindices

Comma-separated list that describes which objects correspond to the indices of the I object. For indices that involve Q, use the term "Q" and the @Qindices attribute will provide more information.