astro query:docs

- Index
- Modules

### Navigation

- astroquery v0.4.11 »
- Module code »
- astroquery.esa.jwst »

# 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']

    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

        def download_file(self, url):
            return data.download_file(url, cache=True)

        def clear_download_cache(self):
            data.clear_download_cache()