hipercam.scripts.tbytes

Functions

tbytes([args])

tbytes [source] ([old]) run

Module Contents

hipercam.scripts.tbytes.tbytes(args=None)

tbytes [source] ([old]) run

Reads all timing bytes from a |hiper|, ULTRACAM or ULTRASPEC run and dumps them to a disk file. Designed as a safety fallback for correcting timing issues where one wants to manipulate the raw data.

Parameters:

sourcestring [hidden]

Data source, two options:

‘hl’ : local HiPERCAM FITS file
‘ul’ : ULTRA(CAM|SPEC) server
oldbool [if source==’ul’, hidden, defaults to False]

Will attempt first to read timing bytes from an old version of the data file, i.e. one with extension ‘.dat.old’ rather than plain ‘.dat’ (applies to ULTRA(CAM|SPEC) data only. Such files are generated by the null timestamp correction script routinely applied to ULTRASPEC data for example. ‘old’ will switch to False by default if not explicitly set.

runstr

run number to access, e.g. ‘run0034’. This will also be used to generate the name for the timing bytes file (extension ‘.tbts’). If a file of this name already exists, the script will attempt to read and compare the bytes of the two files and report any changes. The timing bytes file will be written to the present working directory, unless it contains a sub-directory named “tbytes”, in which case the timing data will be read/written from/to there.