Skip to main content

No project description provided

Project description

# getCalspec Python package to load Calspec spectra.

The main function query the Calspec table located in tables/calspec.pkl to download spectrum FITS files from STSC archive https://www.stsci.edu/hst/instrumentation/reference-data-for-calibration-and-tools/astronomical-catalogs/calspec.html

Example: ` test = is_calspec("eta1 dor") c = Calspec("eta1 dor") c.get_spectrum_fits() # download the fits file c.get_spectrum_table() # download and return an Astropy table c.get_spectrum_numpy() # download and return a dictionnary of numpy arrays with units c.plot_spectrum() # download and plot the spectrum `

Rebuild the tables: ` from getCalspec.rebuild import rebuild_tables, rebuild_cache rebuild_tables() rebuild_cache() `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getCalspec-0.1.0.tar.gz (19.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page