Downloading data
Scripts for getting NICER data from the archive.
get_nicer_aws.py
Finds the observations of a source with astroquery and downloads them from the HEASARC copy on Amazon Web Services. Needs the AWS command-line tool (aws).
Download NICER observations from AWS for a given sourcename or coordinates and time range.
usage: get_nicer_aws.py [-h] (-sn SRCNAME | -rd RA DEC) -od OUTDIR [-r RADIUS]
[-s START] [-e END]
Named Arguments
- -sn, --srcname
Target source name (e.g., ‘PSR B0531+21’)
- -rd, --radec
RA and DEC in degrees (e.g., --radec 83.63 22.01)
- -od, --outdir
Output directory for downloaded observation ids (e.g., ‘psr_b0531+21’)
- -r, --radius
Search radius in degrees (default: 0.05)
Default:
0.05- -s, --start
Start date (YYYY-MM-DD; default: 2017-01-01)
Default:
'2017-01-01'- -e, --end
End date (YYYY-MM-DD; default: 2030-12-31)
Default:
'2030-12-31T00:00:00'
ni_data_download.py
NICER data downloader. Script written by P. Bult. Minor tweaks by S. Guillot, to make it more automatic, and removing multiproccessing (it was causing problems).
usage: ni_data_download.py [-h] [--outdir OUTDIR] [--clobber] [--cl-only]
[--mkf-only] [--decryptkey DECRYPTKEY] [--unzip]
sourcename heasarc_user heasarc_pwd
Positional Arguments
- sourcename
Give source name
- heasarc_user
Enter heasarc username
- heasarc_pwd
Enter heasarc password
Named Arguments
- --outdir
Directory to place all ObsIDs (relative to current)
- --clobber
Clobber existing files
Default:
False- --cl-only
Grab the clean event files only
Default:
False- --mkf-only
Grab the prefilter data files only
Default:
False- --decryptkey
Add decryption key to run GPG after download
- --unzip
Gunzip after decrypting
Default:
False