Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/8.0.0/doc/dsslib/node3.html
Дата изменения: Wed Jul 2 00:49:05 2008
Дата индексирования: Fri Sep 5 17:51:30 2008
Кодировка:

Поисковые слова: m 5
Tips and Grouping of Region Functions XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


dsslib (dsslib-5.5.7) [xmmsas_20080701_1801-8.0.0]

Data Subspace Expression Parser Data Subspace Expression Parser Errors Home Index

Meta Index / Home Page / Description / Data Subspace Expression Parser

Tips and Grouping of Region Functions

The data subspace in some cases will produce more compact subspace specifications than in others. For range filters, it is always better to use the ``in'' operator than to specify ranges using $>$, $<$, etc. Though the two examples below are mathematically equivalent, the second example results in a more compact subspace specification than the first.


\begin{displaymath}RAWX < 50\ \&\&\ RAWX >25 \qquad \textrm{allowed, but discouraged} \end{displaymath}


\begin{displaymath}RAWX\ in\ (25:50) \qquad \textrm{allowed} \end{displaymath}

There is also a special subtlety with regards to the grouping of region function filters. When the parser sees the expression below,


\begin{displaymath}(A,B)\ IN\ ellipse(100, 200, 30, 40, 0)\ \&\&\ (A, B)\ in\ polygon(100,200,1,1) \qquad \textrm{allowed} \end{displaymath}

it tries to combine these into one filter with two regions. If the cooridate specifications do not match, then it returns an error.


\begin{displaymath}(A,B)\ IN\ ellipse(100, 200, 30, 40, 0)\ \&\&\ (A, BX)\ in\ polygon(100,200,1,1) \qquad \textrm{NOT allowed} \end{displaymath}

If, however, the region functions are isolated in parentheses, then the parser will put them in seperate filters. Thus the following expression is allowed.


\begin{displaymath}( (A,B)\ IN\ ellipse(100, 200, 30, 40, 0) )\ \&\&\ ( (A, BX)\ in\ polygon(100,200,1,1) ) \qquad \textrm{allowed} \end{displaymath}

Note that putting in the parentheses unnecessarily will result in a much less compact data subspace. The following expression is equivalent to the first one in this section, but will result in the creation of two subspace filters, instead of one.


\begin{displaymath}( (A,B)\ IN\ ellipse(100, 200, 30, 40, 0) )\ \&\&\ ( (A, B)\ ...
...olygon(100,200,1,1) ) \qquad \textrm{allowed, but discouraged} \end{displaymath}


Data Subspace Expression Parser Data Subspace Expression Parser Errors Home Index

XMM-Newton SOC/SSC -- 2008-07-01