https://github.com/mickolaua/gcn_circular_generator
The automatic GCN NASA circular generator
https://github.com/mickolaua/gcn_circular_generator
astronomy astrophysics gamma-ray gamma-ray-burst gcn grb nasa powershell powershell-script
Last synced: 2 months ago
JSON representation
The automatic GCN NASA circular generator
- Host: GitHub
- URL: https://github.com/mickolaua/gcn_circular_generator
- Owner: mickolaua
- License: gpl-2.0
- Created: 2024-12-12T06:39:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T14:50:00.000Z (6 months ago)
- Last Synced: 2025-02-06T12:16:53.132Z (4 months ago)
- Topics: astronomy, astrophysics, gamma-ray, gamma-ray-burst, gcn, grb, nasa, powershell, powershell-script
- Language: PowerShell
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This script automaticaly generates the GCN circular draft, which then should be a bit modified (see for fields in <> braces).
The citation of latest GCNs is included. For a successful run a user needs to install `7z` archiver first. Its executable
should be globally accessible via PowerShell. This is done by adding the path to `7z` to `$PATH` variable. However, without
`7z` event when error is occured when downloading the circular archive, the script will be able to download all GCN circulars
one-by-one, starting from #1. But is it desired to do so?Just run `.\make_circular_draft.ps1` and enter source name in the prompt (or specify it with `-SourceName` option in the PowerShell).
Run `Get-Help .\make_circular_draft.ps1` to open the Help on script (this includes list of available options).The real usage example is shown here:
```text
.\make_circular_draft.ps1 -SOURCE_NAME "GRB 241209B"
Probing downloading a new circular 38539 ...
The circular was downloaded successfully
No new GCN circulars yet
Searching for circulars on GRB 241209B ...--
Found GCN
Subject: GRB 241209B: SVOM/ECLAIRs and GRM detection of a long burst
ID: 38478
Submitted by: SVOM_group <**>
Authors: Xie et. al--
Found GCN
Subject: GRB 241209B: Swift ToO observations
ID: 38494
Submitted by: Phil Evans at U of Leicester <**>
Authors: Evans--
Found GCN
Subject: GRB 241209B: BOOTES-5 optical upper limit
ID: 38499
Submitted by: **
Authors: Perez-Garcia et. al--
Found GCN
Subject: GRB 241209B: SVOM/VT afterglow detection
ID: 38516
Submitted by: Chao Wu at NAOC <**>
Authors: Qiu et. al--
Found GCN
Subject: GRB 241209B: Swift-XRT afterglow detection
ID: 38525
Submitted by: Phil Evans at U of Leicester <**>
Authors: Williams et. al--
Found GCN
Subject: GRB 241209B: Swift/BAT-GUANO localization skymap of a burst
ID: 38528
Submitted by: Jimmy DeLaunay at Penn State <**>
Authors: DeLaunay et. al--
Found GCN
Subject: GRB 241209B: GRBAlpha detection
ID: 38534
Submitted by: Marianna Dafčíková at Masaryk University <**>
Authors: Dafcikova et. al--
Found GCN
Subject: Konus-Wind detection of GRB 241209B
ID: 38537
Submitted by: Anna Ridnaia at Ioffe Institute <**>
Authors: Ridnaia et. alResults
--
Found 8 GCN circulars
GCN draft is in the gcn_draft_GRB 241209B.txt file.
Please, fill the fields that were not automatically filled (in <> bracketes).
```The content of the generated GCN circular draft is as follows:
```text
GRB 241209B: optical observationsreport on behalf of :
We performed optical observations of the field of GRB 241209B (Xie et. al, GCN 38478; Evans, GCN 38494; Perez-Garcia et. al, GCN 38499; Qiu et. al, GCN 38516; Williams et. al, GCN 38525; DeLaunay et. al, GCN 38528; Dafcikova et. al, GCN 38534; Ridnaia et. al, GCN 38537) in the filter with of observatory.
The observations began on UT, i.e. since trigger.
The optical counterpart is in the stacked images.
The preliminary photometry is given below:Date UT start t-T0 Exp. Filter OT Err. UL(3sigma) Telescope
(mid, days) (s)
The magnitudes were calibrated using nearby stars from and are not corrected for the Galactic extinction towards the GRB 241209B.
```Notice, there are fields `` that should be update by hand or another software (e.g. using commands similar to `sed` or regex replacement in PowerShell). Here, after a column sign `:` a floating point precision is specified (like in default Python f-notation).
Also, it is important to grant rights to execute the script or if one does not want to do it, the content of this script can be copied into locally created `.ps1` file.