Source code for astroquery.esa.jwst.data_access
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
=================
eJWST Data Access
=================
European Space Astronomy Centre (ESAC)
European Space Agency (ESA)
"""
from astropy.utils import data
from . import conf
__all__ = ['JwstDataHandler']
[docs]
class JwstDataHandler:
def __init__(self, base_url=None):
if base_url is None:
self.base_url = conf.JWST_DATA_SERVER
else:
self.base_url = base_url
[docs]
def download_file(self, url):
return data.download_file(url, cache=True)
[docs]
def clear_download_cache(self):
data.clear_download_cache()