Writing .gwf files
Created by: vivienr
The documentation https://gwpy.github.io/docs/stable/timeseries/io.html#id2 could mention how one specifies a channel when writing to a .gwf file. As shown below, my naive attempt did not succeed:
(gw) vflr:sandbox vivien$ lalframe_version
LAL: 6.18.0.1-dev20180904 (CLEAN 48386bc466afcd0f9af14b2c30e3ea0d5ae74746)
LALFrame: 1.4.3.1-dev20180904 (CLEAN 48386bc466afcd0f9af14b2c30e3ea0d5ae74746)
(gw) vflr:sandbox vivien$ python
Python 2.7.15 (default, May 2 2018, 00:53:27)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gwpy
>>> gwpy.__version__
u'0.12.0'
>>> from numpy.random import random
>>> from gwpy.timeseries import TimeSeries
>>> t = TimeSeries(random(1000))
>>> t.channel='H1:not_a_real_channel'
>>> t.write('not_real_data.gwf')
>>> ^D
(gw) vflr:sandbox vivien$ FrDump -i not_real_data.gwf
-----------Parameters used--------------
Input Files: not_real_data.gwf
First frame : 0 0 (GPS=0.0)
Last frame : 2147483647 2147483647 (GPS=2147483647.0)
Debug level : 1
Dump all Frame info
----------------------------------------
not_real_data.gwf 0 1000 0 0
File(s) summary:
1 Frames in the requested time range (0 to 10000000000 (GPS))
First frame start at:0 (UTC:Sun Jan 6 00:00:19 1980) length=1000.00s.
Last frame end at:1000 (UTC:Sun Jan 6 00:16:59 1980) length=1000.00s.
ADC : 0 type of AdcData :
Ser : 0 type of SerData :
Proc: 1 type of ProcData:
Sim : 0 type of SimData :
Detector: 1 type of Detector: GEO_600
StatData: 0 type of StatData:
Event : 0 Types of event in the file
Simulated Event : 0 Types of event in the file
(gw) vflr:sandbox vivien$