diff --git a/tmss/README.md b/tmss/README.md index 5973f9ca3ec19cae7feb16c3b12ea980f5ae597c..0e8b1091c8e3646576346f105dc48885c141ac56 100644 --- a/tmss/README.md +++ b/tmss/README.md @@ -135,6 +135,20 @@ If everything is specified in the config file, there are still few must-have opt --save-strategy-as-json-file='timing.json' -u ``` +- Same observation as above, but all modification parameters are given in the configuration file called `timing-id520.yaml` and this time we are not saving strategy into the output JSON file: +``` +./tmss_sched_observation.py --name="B0329+54" --descr="Test" --config=timing-id520.yaml -u +``` +``` +# +# Contents of the timing-id520.yaml: +# +project: TMSS-validation +strategy_id: 520 +target: "PSR B0329+54" +length: 300 +tstart: "2024-07-05T10:00:00" +``` - FRB observation, the test pulsar should be specified in the `specs.json` file. Name of the FRB is different in the specification, so we use `--target` option to give the new FRB name, but it can't be resolved by `astropy`, so we use `--no-target-resolve` option to prevent resolving the given name, and also providing the coordinates with `--ra` and `--dec` options. Also, we use `now` value for the `--tstart` option meaning that observation will start after the delay of 5 min from the current moment. This delay can be also controlled with `--delay` option which is 300 sec, by default. ``` ./tmss_sched_observation.py --target="FRB 180725A" @@ -157,16 +171,16 @@ Here is a couple examples of configuration file (YAML format) to be specified wi # using "tstart" as a list, together with Pulsar Timing strategy with id=520 using "strategy_id", # enabling FE observation with "fe" setting other parameters for BF data. # -project: "COM_LOFAR2" +project: COM_LOFAR2 strategy_id: 520 target: "PSR B1919+21" -antennafield: "HBA_DUAL" -filter: "HBA_110_190" -subband: "201..221" +antennafield: HBA_DUAL +filter: HBA_110_190 +subband: 201..221 length: 300 -stationlist: "CS001,CS032" +stationlist: CS001,CS032 fe: True -mode: "I" +mode: I downsample: 6 channels_per_subband: 16 subbands_per_file: 488 @@ -181,17 +195,17 @@ tstart: # specifying "coherent" observation with 8-bit recording (quantisation: True) of XXYY data (mode: "XXYY"), # forming 2 rings of TABs with a given ring radius. # -project: "COM_LOFAR2" -specfile: "examples/generic-bf.json" +project: COM_LOFAR2 +specfile: examples/generic-bf.json target: "PSR B1919+21" -antennafield: "LBA_ALL" -filter: "LBA_10_90" -subband: "51..170" +antennafield: LBA_ALL +filter: LBA_10_90 +subband: 51..170 length: 300 -stationlist: "CS001,CS032" +stationlist: CS001,CS032 fe: False coherent: True -mode: "XXYY" +mode: XXYY downsample: 1 channels_per_subband: 1 subbands_per_file: 20 diff --git a/tmss/tmss_sched_observation.py b/tmss/tmss_sched_observation.py index 64e1634e4925236b6e8e5f3f99c9e51a8201a6b2..b9607b1160296ab2bab9b72e82376516a156224d 100755 --- a/tmss/tmss_sched_observation.py +++ b/tmss/tmss_sched_observation.py @@ -515,9 +515,9 @@ the coordinates, or use --pointing option", action="store_true") "SAPs" in spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent'] and \ len(spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs']) > 0: if "tab_rings" in spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]: - spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tab_rings"]["width"] = np.float32(config["ringsize"]) + spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tab_rings"]["width"] = config["ringsize"] else: - spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tab_rings"] = { "count": 0, "width": np.float32(config["ringsize"]) } + spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tab_rings"] = { "count": 0, "width": config["ringsize"] } # excluding extra TABs from the SAP spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tabs"] = []