Skip to content
Snippets Groups Projects
Commit 3c4f0199 authored by Vlad Kondratiev's avatar Vlad Kondratiev
Browse files

small bug is fixed; README is again updated

parent 18c78d07
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,20 @@ If everything is specified in the config file, there are still few must-have opt ...@@ -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' --save-strategy-as-json-file='timing.json'
-u -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. - 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" ./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 ...@@ -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", # 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. # enabling FE observation with "fe" setting other parameters for BF data.
# #
project: "COM_LOFAR2" project: COM_LOFAR2
strategy_id: 520 strategy_id: 520
target: "PSR B1919+21" target: "PSR B1919+21"
antennafield: "HBA_DUAL" antennafield: HBA_DUAL
filter: "HBA_110_190" filter: HBA_110_190
subband: "201..221" subband: 201..221
length: 300 length: 300
stationlist: "CS001,CS032" stationlist: CS001,CS032
fe: True fe: True
mode: "I" mode: I
downsample: 6 downsample: 6
channels_per_subband: 16 channels_per_subband: 16
subbands_per_file: 488 subbands_per_file: 488
...@@ -181,17 +195,17 @@ tstart: ...@@ -181,17 +195,17 @@ tstart:
# specifying "coherent" observation with 8-bit recording (quantisation: True) of XXYY data (mode: "XXYY"), # specifying "coherent" observation with 8-bit recording (quantisation: True) of XXYY data (mode: "XXYY"),
# forming 2 rings of TABs with a given ring radius. # forming 2 rings of TABs with a given ring radius.
# #
project: "COM_LOFAR2" project: COM_LOFAR2
specfile: "examples/generic-bf.json" specfile: examples/generic-bf.json
target: "PSR B1919+21" target: "PSR B1919+21"
antennafield: "LBA_ALL" antennafield: LBA_ALL
filter: "LBA_10_90" filter: LBA_10_90
subband: "51..170" subband: 51..170
length: 300 length: 300
stationlist: "CS001,CS032" stationlist: CS001,CS032
fe: False fe: False
coherent: True coherent: True
mode: "XXYY" mode: XXYY
downsample: 1 downsample: 1
channels_per_subband: 1 channels_per_subband: 1
subbands_per_file: 20 subbands_per_file: 20
......
...@@ -515,9 +515,9 @@ the coordinates, or use --pointing option", action="store_true") ...@@ -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 \ "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: 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]: 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: 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 # excluding extra TABs from the SAP
spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tabs"] = [] spec_doc['tasks']['Observation']['specifications_doc']['beamformer']['pipelines'][0]['coherent']['SAPs'][0]["tabs"] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment