Skip to content

Python scripts for NuSTAR Solar analysis

License

Notifications You must be signed in to change notification settings

KriSun95/nustar_pysolar

 
 

Repository files navigation

NuSTAR Solar Python Utilities

Documentation Status Powered by Astropy Badge

Overview:

Nuclear Spectroscopic Telescope ARray

NuSTAR

Installation

This repo requires some flavor of Python 3.

Base installation is accomplished via pip, but we recommend installing into its own conda environment first.

conda config --add channels conda-forge
conda config --set channel_priority strict
conda create --name nustar_pysolar python=3.9
git clone https://github.com/NuSTAR/nustar_pysolar.git

Then install the development version of this using pip. This will also install all required dependencies. Move to where you downloaded nustar_pysolar, and then do this:

pip install -e .

Solar Observations

See Iain Hannah's overview figures for the solar observations (made using SSWIDL) here.

Interested in helping out or adding code? Feedback is great.

If you have code you might want to contribute, get in touch with me to join the Slack group and/or issue a pull request.

Notebooks

We've provided several jupyter notebooks that demonstrates how to convert the NuSTAR solar data into heliocentric coordinates and data formats that align with Sunpy.

This series of notebooks should result in you have a sunpy-style map object that can then be combined with other sunpy objects (AIA, etc) for making pretty pictures.

The proper order is:

  1. Observation Report
  2. Convert Example
  3. Map Example

We also have provided an example notebook for how to plan a NuSTAR solar observation

  1. Planning example

How to get NuSTAR solar data

You can search the NuMASTER table at the HEASARC, using SOL in the obs_type search bar to locate all of the NuSTAR solar observations. Any data that are public can be downloaded and reprocessed for solar work.

About

Python scripts for NuSTAR Solar analysis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 82.7%
  • Python 14.6%
  • Shell 1.5%
  • IDL 1.2%