Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/6.1.0/doc/addattribute.ps.gz
Дата изменения: Mon Nov 22 23:13:14 2004
Дата индексирования: Tue Oct 2 11:18:18 2012
Кодировка:
XMM-Newton Science Analysis System Page: 1
addattribute
November 22, 2004
Abstract
Add attributes to a dataset
1 Instruments/Modes
Instrument Mode
All All
2 Use
pipeline processing yes
interactive analysis no
3 Description
This task adds attributes to a dataset (ie. adds keywords to the FITS primary header). Optional
comments can also be supplied.
4 Parameters
This section documents the parameters recognized by this task (if any).
Parameter Mand Type Default Constraints
set yes dataset
Name of the dataset
attributename yes string
A list of attribute names
xmmsas 20041122 1834-6.1.0

XMM-Newton Science Analysis System Page: 2
(eg. attributename=` \att1" \att2" ..').
attributetype yes string real|integer|string|boolean
A list of the attribute types, one for each attribute name
(eg. attributetype=` \string" \real" \string" ..').
withattributecommenty no boolean n
A list of switches to determine whether a comment is added
y Be careful with this switch when used with a list of attributes. It is only optional for elements occuring
after the last attribute with a supplied comment
(eg. withattributecomment=`y n n y').
attributecomment no string
Comments to be added to attributes, one for each `y' in the withattributecomment list
(eg. attributecomment=` \comment1" \comment2" ').
realvalue no real
A list of values, one for each real attribute
integervalue no integer
A list of values, one for an integer attribute
stringvalue no string
A list of values, one for a string attribute
booleanvalue no boolean
A list of value, one for a boolean attribute
5 Errors
This section documents warnings and errors generated by this task (if any). Note that warnings and
errors can also be generated in the SAS infrastructure libraries, in which case they would not be docu-
mented here. Refer to the index of all errors and warnings available in the HTML version of the SAS
xmmsas 20041122 1834-6.1.0

XMM-Newton Science Analysis System Page: 3
documentation.
uktype (error)
Attribute type unknown
parmlist (error)
Parmater lists do not agree
6 Input Files
1. Input dataset (modi ed in-situ)
7 Output Files
1.
8 Algorithm
subroutine addattribute
Get number of attributes
Validate parameter lists
Open dataset
Foreach attribute
Get attribute name and type
Get comment (if required)
Fetch appropriate value and write to dataset
Close dataset
end subroutine addattribute
9 Comments
 This task will be used in the pipeline to add AMS keywords to FITS les.
xmmsas 20041122 1834-6.1.0

XMM-Newton Science Analysis System Page: 4
10 Future developments
References
xmmsas 20041122 1834-6.1.0