![]() |
|||||
|---|---|---|---|---|---|
P2PP: IMPEX Reference Guide |
|||||
|
This reference guide was originally written by A. Maurizio Chavan.
The Import/Export mechanism in particular is useful in the following situations:
Starting with P2PP v2.9, README files can also be exported and imported following an analogous format to those of exported OBs. The format of IMPEX README files is not described in the present document.
Technical note: Although Import/Export (IMPEX) files are similar to the Observation Block Descriptor (OBD) files, IMPEX and OBD files are not interchangeable.
An example is given at the end of this document.
# comment line, will be ignored. TARGET.NAME "B 1950 target" ra " 12:34:56.001" dec "-78:59:11.001" epoch "2000.0"; equinox "B1950"; # Valid values are "J2000", etc.Empty lines and lines containing only whitespace are ignored, and so are lines beginning with the hash character (#). These lines can be used to insert remarks in an IMPEX files, but note that such remarks will be lost during import.
Meaningful lines include a keyword and a value: the value is always included in double quotes, and may be followed by an optional semicolon.
Optional comments can be appended at the end of a line, in which case they must be separated from the value by a semicolon and a hash character.
IMPEX.VERSION
Keywords
TARGET.NAME
CONSTRAINT.SET.NAME
OBSERVATION.DESCRIPTION.NAME
ACQUISITION.TEMPLATE.NAME and
TEMPLATE.NAME introduce template definitions.
Keywords TARGET.NAME and
ACQUISITION.TEMPLATE.NAME (and the
corresponding section and definition) are not found in
Calibration Block IMPEX files.
An IMPEX file may have zero or more TEMPLATE.NAME
keywords.
TEMPLATE.NAME keywords.
IMPEX.VERSION "2.0"IMPEX filenames are identified by the ".obx" extension.
IMPEX.VERSION keyword introduces the main section,
where OB-level information is specified, like its name and priority.
For instance:
IMPEX.VERSION "2.0"
name "B 1950 OB"
type "O"
userComments "Generic user comment."
userPriority "1"
calibrationReq "No special requirements"
absolute_times_list "{2000-06-07T12:00:00 2000-06-21T21:00:00 1} "
yyyy-mm-ddThh:mm:ss
TARGET.NAME keyword introduces the Target section,
where target information is specified, like its coordinates and
name.
For instance:
TARGET.NAME "B 1950 target" ra " 12:34:56.001" dec "-78:59:11.001" epoch "2000.0" equinox "B1950" propDec "0.0" propRA "0.0" diffRA "0.0" diffDec "0.0" comments "" objectClass "Unknown"
HH:MM:SS.SSS
DD:MM:SS.SSS
Annnn, where
A can be "B" or "J", and nnnn can be
any four digit number.
CONSTRAINT.SET.NAME keyword introduces the Constraint
Set section, where observing constraints are specified, like seeing
and sky transparency. For instance:
CONSTRAINT.SET.NAME "Example CS" air_mass "5.0" fractional_lunar_illumination "1.0" sky_transparency "Photometric" moon_angular_distance "30" seeing "2.0" description ""
OBSERVATION.DESCRIPTION.NAME keyword introduces the
Observation Description section, where the acquisition and observing
templates are listed. For instance:
OBSERVATION.DESCRIPTION.NAME "No Name" longDescription "" instrument "FORS1" ACQUISITION.TEMPLATE.NAME "FORS1_img_acq" INS.COLL.NAID "COLL_SR+1" TEMPLATE.NAME "FORS1_img_obs_crsplit" SEQ.NEXPO "1" DET.WIN1.UIT1 "25.0"Only three keywords make up the observation description section proper:
Note that *all* parameter keyword/value lines are optional: missing lines correspond to default parameter values (described in the documentation of the individual templates). In the example above, all parameters of template FORS1_img_obs_crsplit take their default values, but for the exposure parameters.
It is therefore possible give a template name with no parameters at all; in this case, though, the ACQUISITION.TEMPLATE.NAME or TEMPLATE.NAME keyword/value line must be followed by at least one blank line.
Note that TEL.TARG.xxx parameters of acquisition
templates are never imported/exported.
paramfile are exported to,
and imported from, individual files.
Let's assume, for instance, that a VIMOS OB was created,
including a template which in turns includes
paramfile parameter INS.ADP1; and that
parameter file vmCatQuad1Mask1.adp was associated to
such parameter.
Upon export, the generated IMPEX file will contain:
INS.ADP1 "vmCatQuad1Mask1.adp"and file vmCatQuad1Mask1.adp will be copied to the same directory.
When importing the IMPEX file, the import procedure will look
for file vmCatQuad1Mask1.adp in the same directory, and
associate it to the INS.ADP1 parameter.
#****************************************
# MAIN SECTION *
#****************************************
IMPEX.VERSION "2.0"; # This is a V.2.x IMPEX file
name "Observation Block 0"
type "O"
userComments "This OB was generated from an example IMPEX file."
userPriority "1"
calibrationReq "No special calibration requirements."
absolute_times_list "{2000-06-07T12:00:00 2000-06-21T21:00:00 1} "
#****************************************
# TARGET SECTION *
#****************************************
TARGET.NAME "Target 0"
ra " 12:34:56.001"
dec "-78:59:11.001"
epoch "2000.0"
equinox "B1950"
propDec "0.0"
propRA "0.0"
diffRA "0.0"
diffDec "0.0"
comments "This is a generic target"
objectClass ""
#****************************************
# CONSTRAINT SET SECTION *
#****************************************
CONSTRAINT.SET.NAME "Constraint Set 0"
air_mass "5.0"
fractional_lunar_illumination "1.0"
sky_transparency "Photometric"
moon_angular_distance "30"
seeing "2.0"
description "This is a generic Constraint Set"
#****************************************
# OBSERVATION DESCRIPTION SECTION *
#****************************************
OBSERVATION.DESCRIPTION.NAME "Observation Description 0"
longDescription "This is a generic Observation Description"
instrument "FORS1"
ACQUISITION.TEMPLATE.NAME "FORS1_img_acq"
INS.COLL.NAID "COLL_SR+1"
TEL.ROT.OFFANGLE "0"
TEL.AG.GUIDESTAR "CATALOGUE"
TEMPLATE.NAME "FORS1_img_obs_crsplit"
SEQ.NEXPO "1"
DET.WIN1.UIT1 "250"
DET.READ.CLKIND "ABCD,1x1,high"
DET.WIN1.ST "F"
INS.FILT1.NAME "B_BESS+34"
INS.FILT2.NAME "none"