Skip to main content

gbm-pulsar

A tool to filter the Fermi/GBM data for pulsar analysis.

Independencies

Install the packge

Download the whole gbm-pulsar package and unzip the compressed file. At the directory that contains the setup.py file and execute:

pip install -e .

Processes

The detailed processes of the pipeline are:

  1. select all data for each NaI detector NaI within an angle of 70 degrees to the given target source. For BGO detector, no incident angle selection is required because the satellite is transparent to such high energy photons.
  2. exclude all data that obscure by Earth
  3. carry out the Barrycentric correction for each photon

Example

gbm-pulsar-pipeline --gbm_dir="/path/to/GRM/data" \
        --tstart='2022-07-27T00:00:00' --tstop='2022-07-28T00:00:00' \
        --output_dir="/path/to/save/data" \
        --stem="gbmCrab" --ra=83.63321666666667 --dec=22.01446388888889 \
        --barycor --accelerate

After install the package, the executable command gbm-pulsar-pipeline are implemented in you python environment. The above command filters the data between 2022-07-27T00:00:00 and 2022-07-28T00:00:00.

--barycor flag is used, then the output FITS file contains the column TDB which is the time in barycentric center.

--accelerate flag is often used to accelate the proccess of barycentric correction. The algorithm is:

  • divide the data into 60 segments
  • calculate barycentric-corrected time for those 60 time at the edge of each segment
  • interpolate the barycentric-corrected time for each photon according to those 60 values

some optional:

gbm-pulsar-pipeline --gbm_dir="/path/to/GRM/data" \
        --tstart='2022-07-27T00:00:00' --tstop='2022-07-28T00:00:00' \
        --output_dir="/path/to/save/data" \
        --stem="gbmCrab" --ra=83.63321666666667 --dec=22.01446388888889 \
        --barycor --jplephem="./barycor/de421.bsp" \
        --energylow=8 --energyhigh=25 \
        --store_pha --store_det

Note: The localization the Crab pulsar are used from radio RA and Dec. Here's one day profile folded by Jodrell Bank emphemeris, barycorr and selection works fine: profile

Example of runtime display:

...Analyzing data in 2022-01-29...
100%|█████████████████████████████████████████| 143/143 [00:07<00:00, 19.98it/s]
100%|█████████████████████████████████████████| 143/143 [00:04<00:00, 29.15it/s]
100%|█████████████████████████████████████████| 143/143 [00:06<00:00, 22.29it/s]
100%|█████████████████████████████████████████| 143/143 [00:06<00:00, 21.61it/s]
100%|█████████████████████████████████████████| 143/143 [00:05<00:00, 26.31it/s]
100%|█████████████████████████████████████████| 143/143 [00:06<00:00, 22.77it/s]
100%|█████████████████████████████████████████| 143/143 [00:06<00:00, 21.74it/s]
100%|█████████████████████████████████████████| 143/143 [00:05<00:00, 27.58it/s]
100%|█████████████████████████████████████████| 143/143 [00:04<00:00, 34.99it/s]
100%|█████████████████████████████████████████| 143/143 [00:05<00:00, 25.02it/s]
100%|█████████████████████████████████████████| 143/143 [00:03<00:00, 39.46it/s]
100%|█████████████████████████████████████████| 143/143 [00:03<00:00, 39.39it/s]
100%|█████████████████████████████████████████| 143/143 [00:12<00:00, 11.82it/s]
100%|█████████████████████████████████████████| 143/143 [00:04<00:00, 35.55it/s]
100%|█████████████████████████████████████████| 143/143 [00:04<00:00, 33.84it/s]
100%|█████████████████████████████████████████| 143/143 [00:05<00:00, 25.66it/s]
100%|█████████████████████████████████████████| 143/143 [00:08<00:00, 17.61it/s]
100%|█████████████████████████████████████████| 143/143 [00:05<00:00, 25.57it/s]
100%|█████████████████████████████████████████| 143/143 [00:04<00:00, 35.17it/s]
100%|█████████████████████████████████████████| 143/143 [00:06<00:00, 23.42it/s]
100%|█████████████████████████████████████████| 143/143 [00:04<00:00, 31.64it/s]
100%|█████████████████████████████████████████| 143/143 [00:05<00:00, 25.06it/s]
100%|█████████████████████████████████████████| 143/143 [00:13<00:00, 10.57it/s]
100%|█████████████████████████████████████████| 143/143 [00:12<00:00, 11.43it/s]

Metadata

Release files for gbmpulsar 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gbmpulsar 0.1.5
File Size Uploaded
gbmpulsar-0.1.5.tar.gz 29.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gbmpulsar 0.1.5
File Interpreter ABI Platform
gbmpulsar-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 57.9 kB

Release files / gbmpulsar-0.1.5.tar.gz

Download URL gbmpulsar-0.1.5.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
580ad7b0e455ac2c3167c6accff37ff09fe471ed91098db139e0f51c77b1752f
BLAKE2b-256 checksum
How to use checksums
0eb3457653085223b2e411c5c4608bdaeb1f09d792971ef088fd915d7806fbd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / gbmpulsar-0.1.5-py3-none-any.whl

Download URL gbmpulsar-0.1.5-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50cb7150ebe010a3ad85f34228fd29075625eccb2d4b1c3678d1bb9f5dd74bf4
BLAKE2b-256 checksum
How to use checksums
3c1ebb81cbfc8e92e4e8dadc31bddc9436340e91b1aeba7690a092a70418e61a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page