edit · history · print

PsrXML

Introduction

PsrXML is a definition for an XML based pulsar data header format. PsrXML is designed to be independant of the format of the underlying data, specifying meta-data to sucessfuly read the data. Data provided by a PsrXML file are stored with human friendly names and with units specified in the XML tag. This reduced the chances of confusion with regard to the meaning or values of header fields that has been present in previous data formats. PsrXML files are associated with one or more data files that contain the raw data or other associated data files in an arbitrary format. The PsrXML header file and associated files can be collected together in a TAR archive for ease of filing and writing to magnetic tape.

The PsrXML header format is designed to be extendable with new header fields, this document specifies the minimum fields required to conform to version 1 of the PsrXML format. Fields marked as non-required are optional additional parameters that should be included if the information is avaliable when the header is written, however software based on this specification should be aware that not all headers will be able to provide this data. Software reading PsrXML documents should also be aware that additional XML elements may be present in the file that are not specified by this document. It is intended that any future versions of the PsrXML shall also be complient with this version 1 specification, therefore software may treat PsrXML documents with a version higher than 1 as version 1 documents.

The rest of this document outlines the XML elements present in a version 1 PsrXML header file. The code can be found here.

PsrXML elements

PsrXML documents are contained in a root psrxml element. This contains the main header elements, plus elements describing the properties of the telescope,receiver, backend and associated data files. Associated data files include the raw data as well as any extra information such as bandpass dumps.

‘BPSR Status’ is a temporary column for marking the status of that field in the BPSR observing system.

Element NameData TypeReq’dcommentBPSR Status
source_nameStringYESPulsar name or grid IDOK
source_name_centre_beamStringNOThe source that the telescope was set to point atneed TCS
cat_referenceStringNOA catalogue reference id for the dataneed BK
day_of_observationfloatYESThe MJD at the start of the observationOK
midnight_to_first_sampleint (64 bits)YESAproximate number of nanosec from midnightOK
utcISO8601 DateYESApproimate UTC date/time at start of observationneed dspsr
lstString (hh:mm:ss)YESApproimate LST time at start of observationneed dspsr
local_timeISO8601 DateNOApproimate local time time at start of observationneed dspsr
number_of_samplesintYESThe number of samples recorded in totalOK
native_sample_ratefloat (time)NOThe sampling rate of the backendOK
current_sample_intervalfloat (time)YESThe time between the centre of adjacent samplesOK
requested_obs_timefloat (time)NOThe observing time requestedneed TCS
actual_obs_timefloat (time)YESThe actual observing time representedOK
frequency_header_typeStringYESType of the frequency info: SIMPLE, MULTIBAND or COMPLEX. Only SIMPLE is supported in v1.0OK
centre_frequency_first_channelfloat (freq)YESThe observing frequency at the centre of the first channel. Only valid for SIMPLE frequency headersOK
channel_offsetfloat (freq)YESThe frequency offset between adjacent channels (or the channel bandwidth if only one channel). Only valid for SIMPLE frequency headersOK
number_of_channelsintYESNumber of channels in the fileOK
lo_settingfloat(freq)NOThe LO setting, can have multiple values in one file.OK
receiver_beamintNOThe beam of the receiver the data are from.need TCS
start_coordinateCoordinateYESThe position on the sky at the first sample of this dataneed TCS
end_coordinateCoordinateNOThe position on the sky at the last sample of this dataneed TCS
requested_coordinateCoordinateNOThe requested observation position (of the centre beam)need TCS
start_paralactic_anglefloat (angle)NOThe paralactic angle at the start of the obsneed TCS
end_paralactic_anglefloat (angle)NOThe paralactic angle at the end of the obsneed TCS
paralactic_angle_trackingbooleanNOIs the receiver rotating with the skyneed TCS
start_telescope_positionAz/ElNOThe Azimuth and Elevation at the start of the obsneed TCS
end_telescope_positionAz/ElNOThe Azimuth and Elevation at the end of the obsneed TCS
observing_programmeStringNOA descriptor of the observing programmeneed TCS
observer_nameStringNOThe name of the observerneed TCS
observation_typeStringNOFreeform classification of the observationneed dspsr
observation_configurationStringNOFreeform description of the configurationneed TCS
total_beams_recordedintNONumber of `sister’ observations that should existneed TCS
recorded_polarisationsStringYESII=total intensityOK
telescope_identifying_stringStringNOFreeform string identifying the specifics of the telescope usedOK
receiver_identifying_stringStringNOFreeform string identifying the specifics of the receiver usedOK
backend_identifying_stringStringNOFreeform string identifying the specifics of the backend usedOK
telescope_config_stringStringNOFreeform string identifying the config of the telescope used??
receiver_config_stringStringNOFreeform string identifying the config of the receiver used??
backend_config_stringStringNOFreeform string identifying the config of the backend used??
telescopeTelescopeYESTelescope XML block-
receiverReceiverYESReceiver XML block-
backendBackendYESBackend XML block-
dataData (multiple)YESData XML blocks (one per assoc. file)OK

Data elements

Element NameData TypeReq’dcommentBPSR Status
filenameStringYESThe name of the fileOK
data_typeStringYESWhat this file represents. e.g. TIMESERIES’, BANDPASS’ and VIRTUAL’ are usedOK
sequenceintYESOnce this file is read, go may to the next in sequence of the same typeOK
data_uidString (typed)NOA means to identify this fileOK
checksumString (typed)NOA checksum for the whole fileOK
header_lengthint (data)YESNumber of bytes to skip at start of the fileOK
block_header_lengthint (data)YESNumber of bytes to skip at the start of a data blockOK
block_sizeint (data)YESSize of blocks to be read at onceOK
bits_per_sampleintYESThe number of bits per sampleOK
data_orderStringYESOrder of the data indices. F=freq T=time P=pol, slowest incrementing firstOK
bit_order_first_sample_inStringYESOrder of bits within byte. Either MSB’ or LSB’.OK
endianStringYESEndianness of data. BIG’, LITTLE’ or INDEPENDANT’ (for less than 8 bit data)OK
signedbooleanYESTrue indicates using signed integersOK

Telescope Elements

Element NameData TypeReq’dcommentBPSR Status
nameStringYESThe human name of the telescopeOK
zenith_limitfloat (angle)YESThe zenith limit of the telescope??
longitudefloat (angle)YESTelescope longitude??
lattitudefloat (angle)YESTelescope lattitude??
xfloatYESTelescope X’ coordinate??
yfloatYESTelescope Y’ coordinate??
zfloatYESTelescope Z’ coordinate??
tempo_codeStringYESTelescope code as defined by Tempo(2)??
sigproc_codeintNOTelescope code as defined by Sigproc??
pulsarhunter_codeStringNOTelescope name as defined by Pulsarhunter??

Receiver elements

Element NameData TypeReqiredcommentBPSR Status
nameStringYESThe human name of the receiverOK
feed_polarisation_basisStringYESLINEAR or CIRCULAR??
feed_handednessStringYESThe sign of the polarisaiton phase. LEFT or RIGHT??
cal_phasefloatYESPolarisation phase of the cal??
feed_symetryfloat (angle)YESPolarisation symmetry angle??
number_of_polarisationsintYESPolarisations in the feed, 1 or 2??

Backend elements

Element NameData TypeReq’dcommentBPSR Status
nameStringYESThe human name of the backendOK
sidebandStringYESUPPER or LOWER??
cross_phaseStringYESSTANDARD or REVERSE??
sigproc_codeintNOIdentifying code in sigproc??

Block header elements

Data block headers exist up to one per block

Element NameData TypeReq’dcommentBPSR Status
sha1_hashStringNOA 40 character SHA1 hash of the data block.OK
utcISO8601 DateNOApproimate UTC date/time at start of this data blockneed TCS
current_coordinateCoordinateNOThe position on the sky at the first sample of this data blockneed TCS
telescope_positionAz/ElNOThe Azimuth and Elevation at the start of the data blockneed TCS
paralactic_anglefloat (angle)NOThe paralactic angle at the start of the data blockneed TCS

Data Formats

edit · history · print
Page last modified on May 26, 2009, at 12:27 AM