No project description provided
Project description
getCalspec
Python package to download Calspec spectra.
The main function query the Calspec table located in calspec_data/calspec.csv
to download spectrum FITS files from STSC archive.
Example:
from getCalspec.getCalspec import *
test = is_calspec("eta1 dor")
c = Calspec("eta1 dor")
c.get_spectrum_fits_filename() # 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
To get all Calspec data in one time in cache, write:
from getCalspec.rebuild import rebuild_cache
rebuild_cache()
When the STSC webpage is updated,
it might be necessary to rebuild the calspec_data/calspec.csv
table and the cache:
from getCalspec.rebuild import rebuild_tables, rebuild_cache
rebuild_tables()
rebuild_cache()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getCalspec-2.1.0.tar.gz
(16.4 kB
view hashes)
Built Distributions
getCalspec-2.1.0-py3.10.egg
(29.0 kB
view hashes)
getCalspec-2.1.0-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for getCalspec-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eede64d330794ac33a78da00bc983ca019310dc712133de337acfb726e25905 |
|
MD5 | abc623edaa47315ba41a1b48f710ff8e |
|
BLAKE2b-256 | 58364fbf27be1473eb5a5c96076c15b319662bd920bfd9bdf40dbf9fa583c397 |