I've added a new program called getdata (to scripts/general/getdata) that will conveniently pull arbitrary data from an NDS server, either DQ or online (ie. testpoints).
Start times and durations may be specified. If past data is requested, you must of course be requesting DQ channels. If no start time is specified, data will be pulled "online", in which case you can specify testpoints.
If an output directory is specified, the retrieved data will be stored in that directory in files named after the channels. If an output directory is not specified, no output will be
Help usage:
controls@pianosa:~ 0$ /opt/rtcds/caltech/c1/scripts/general/getdata --help
usage: getdata [-h] [-s START] [-d DURATION] [-o OUTDIR] channel [channel ...]
Pull online or DQ data from an NDS server. Use NDSSERVER environment variable
to specify host:port.
positional arguments:
channel Acquisition channel. Multiple channels may be
specified acquired at once.
optional arguments:
-h, --help show this help message and exit
-s START, --start START
GPS start time. If omitted, online data will be
fetched. When specified must also specify duration.
-d DURATION, --duration DURATION
Length of data to acquire.
-o OUTDIR, --outdir OUTDIR
Output directory. Data from each channel stored as
'.txt'. Any existing data files will be
automatically overwritten.
controls@pianosa:~ 0$
|