swift_analysis_code
The directory contains code to run XRT and UVOT processing and analysis.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.9%) to scientific vocabulary
Repository
The directory contains code to run XRT and UVOT processing and analysis.
Basic Info
- Host: GitHub
- Owner: kyleneumann
- Language: Python
- Default Branch: main
- Homepage: https://github.com/kyleneumann/swift_analysis_code
- Size: 46.9 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
swiftanalysiscode
Author: Kyle Neumann - kdn5172@psu.edu
Swift Analysis Tools/Pipeline
The directory contains code to run XRT and UVOT processing and analysis. Included is an example data directory that will work with the code as an example. XRT Tutorial Map is an overall tutorial for XRT utilizing the Leicester Swift pages in the order utilized by this code.
Required programs and packages
This code requires HEASoft and FTOOLS to operate. Without these, nothing will work. Other than these, most programs require standard Python packages, such as astropy, pandas, numpy, os, subprocess, regions, matplotlib, etc. Optional packages include astroquery and swifttools. These are required for several programs, but not any reqiured analysis steps.
Data Downloading
Swift_TOO.ipynb is a notebook that will allow you to download XRT, UVOT, and/or BAT data of a source over a given date range. This data will come either from the UK Science Data Center (uksdc=True) or HEASARC (uksdc=False).
HEASARCFinder.py is a Python script that will utilize HEASARC to locate and write wget scripts for observations of a source. DataDownloader.ipynb will utilize the output text to download the observations.
XRT Analysis
Starting from the initial observation folders, utilize xrtpipe.py to process all data from raw data into processed data in the {ObsID}ref directory. Can remove all except the cleaned event files and exposure maps from the {ObsID}ref directory. xrt_steps.py is a Python script wrapper that runs all the steps given several inputs. Will search for sources and run the powerlaw spectral fitting on everyone.
UVOT Analysis
Currently only contains the light curve analysis code. Move every UVOT sky image to the same directory, and the code will generate a total light curve per filter given an extraction source region and background region.
data folder
Example folder of sources to display how xrtsteps.py and others will work, along with file organization options. TXS 1516+064 will produce a spectrum with a very well-done powerlaw fit, while V1405 Cas will fail to properly fit to a powerlaw. Both will be included within the final processed tables. inputsources.csv contains example positioning of the two example sources with accurate coordinates. Semimajor axes, semiminor axes, and position angle (in degrees) are exaggerated to show region generation.
Commenting and Utilizing Repo
If you experience an error or issue, consider opening an issue in the repository, and I will check it out. If you wish to use this code in your analysis, please include a citation in the acknowledgements. Citations are available under "Cite this repository".
Owner
- Name: K. D. Neumann
- Login: kyleneumann
- Kind: user
- Repositories: 1
- Profile: https://github.com/kyleneumann
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Neumann"
given-names: "Kyle D."
orcid: "https://orcid.org/0000-0002-2701-8433"
title: "Swift Analysis Code"
version: 1.0.0
identifiers:
- type: doi
value: 10.5281/zenodo.15723481
date-released: 2025-06-23
url: "https://github.com/kyleneumann/swift_analysis_code"
GitHub Events
Total
- Release event: 1
- Public event: 1
- Push event: 3
- Create event: 1
Last Year
- Release event: 1
- Public event: 1
- Push event: 3
- Create event: 1