skycalc_ipy.ui module¶
Skyclc IPY user interface.
- class skycalc_ipy.ui.SkyCalc(ipt_str=None)[source]¶
Bases:
objectMain UI class.
- Attributes
- keys
Methods
get_almanac_data(ra, dec[, date, mjd, ...])Query ESO Almanac with given parameters.
get_sky_spectrum([return_type, filename])Retrieve a fits.HDUList object from the SkyCalc server.
print_comments(*param_names)Print descriptions of parameters.
Check allowed range for parameters.
update
- get_almanac_data(ra, dec, date=None, mjd=None, observatory=None, update_values=False)[source]¶
Query ESO Almanac with given parameters.
- get_sky_spectrum(return_type='table', filename=None)[source]¶
Retrieve a fits.HDUList object from the SkyCalc server.
The HDUList can be returned in a variety of formats.
As of v0.1.3 the HDUList is no longer saved to disk. Rather it is stored in the attribute <SkyCalc>.last_skycalc_response.
- Parameters
- return_typestr
[“table”, “array”, “synphot”, “fits”]
- filenamestr, optional
Default None. If not None, the returned fits.HDUList object is saved to disk under this path.
- Returns
- Based on the return type, the method returns either:
- “table”: tbl_return (astropy.Table)
- “array”: wave, trans, flux (3x np.ndarray)
- “synphot”: trans, flux (SpectralElement, SourceSpectrum,)
- “fits”: hdu (HDUList)
- property keys¶