%global _empty_manifest_terminate_build 0 Name: python-ztfquery Version: 1.26.1 Release: 1 Summary: Python package to access ZTF data License: BSD-3-Clause URL: https://github.com/mickaelrigault/ztfquery Source0: https://mirrors.aliyun.com/pypi/web/packages/1b/5a/1da79343d29742cb0bf798f55423e3483ae9fe366b87464775a53c8cf3b4/ztfquery-1.26.1.tar.gz BuildArch: noarch Requires: python3-pandas Requires: python3-numpy Requires: python3-astropy Requires: python3-matplotlib Requires: python3-requests %description # ztfquery [![PyPI](https://img.shields.io/pypi/v/ztfquery.svg?style=flat-square)](https://pypi.python.org/pypi/ztfquery) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345222.svg)](https://doi.org/10.5281/zenodo.1345222) [![CI](https://github.com/mickaelrigault/ztfquery/actions/workflows/ci.yaml/badge.svg)](https://github.com/mickaelrigault/ztfquery/actions/workflows/ci.yaml) This package is made to ease access to Zwicky Transient Facility data and data-products. It is maintained by M. Rigault (CNRS/IN2P3) and S. Reusch (DESY). [cite ztfquery](https://ui.adsabs.harvard.edu/abs/2018zndo...1345222R/abstract) # ztfquery: a python tool to access ztf (and SEDM) data `ztfquery` contains a list of tools: - **ZTF products:** a wrapper of the [IRSA web API](https://irsa.ipac.caltech.edu/docs/program_interface/ztf_api.html) that enable to get ztf data _(requires access for full data, but not public data)_: - Images and pipeline products, e.g. catalog ; See the [`ztfquery.query.py` documentation](doc/query.md) - LightCurves (not from image subtraction): See the [`ztfquery.lightcurve.py` documentation](doc/lightcurve.md) - ZTF observing logs: See the [`ztfquery.skyvision.py` documentation](doc/skyvision.md) - **Marshal/Fritz:** Download the source information and data, such as lightcurves, spectra, coordinates and redshift: - from the [ZTF-I Marshal](http://skipper.caltech.edu:8080/cgi-bin/growth/marshal.cgi): See the [`ztfquery.marshal.py` documentation](doc/marshal.md) - from the [ZTF-II Fritz](https://fritz.science/): See the [`ztfquery.fritz.py` documentation](doc/fritz.md) - **SEDM Data:** tools to download SEDM data, including IFU cubes and target spectra, from [pharos](http://pharos.caltech.edu) See the [`ztfquery.sedm.py` documentation](doc/sedm.md) - **ZTF alert:** Currently only a simple alert reader. See the [`ztfquery.alert.py` documentation](doc/alert.md) *** # Credits ## Citation Mickael Rigault. (2018, August 14). ztfquery, a python tool to access ZTF data (Version doi). Zenodo. http://doi.org/10.5281/zenodo.1345222 ## Acknowledgments If you have used `ztfquery` for a research you are publishing, please **include the following in your acknowledgments**: _"The ztfquery code was funded by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement n°759194 - USNAC, PI: Rigault)."_ ## Corresponding Authors: - M. Rigault: m.rigault@ipnl.in2p3.fr, CNRS/IN2P3 - S. Reusch: simeon.reusch@desy.de, DESY *** # Installation ztfquery requires `python >= 3.8` ## Install the code using pip: `pip install ztfquery` (favored) or for the latest version: go wherever you want to save the folder and then ```bash git clone https://github.com/MickaelRigault/ztfquery.git cd ztfquery poetry install ``` ## Set your environment You should also create the global variable `$ZTFDATA` (usually in your `~/.bash_profile` or `~/.cshrc`). Data you will download from IRSA will be saved in the directory indicated by `$ZTFDATA` following the IRSA data structure. ## Login and Password storage Your credentials will requested the first time you need to access a service (IRSA, Marshal, etc.). They will then be stored, crypted, under ~/.ztfquery. Use `ztfquery.io.set_account(servicename)` to reset it. You can also directly provide account settings when running `load_metadata` and `download_data` using the `auth=[your_username, your_password]` parameter. Similarly, directly provide the username and password to the ztf ops page when loading `NightSummary` using the `ztfops_auth` parameter. *** # Quick Examples %package -n python3-ztfquery Summary: Python package to access ZTF data Provides: python-ztfquery BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-ztfquery # ztfquery [![PyPI](https://img.shields.io/pypi/v/ztfquery.svg?style=flat-square)](https://pypi.python.org/pypi/ztfquery) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345222.svg)](https://doi.org/10.5281/zenodo.1345222) [![CI](https://github.com/mickaelrigault/ztfquery/actions/workflows/ci.yaml/badge.svg)](https://github.com/mickaelrigault/ztfquery/actions/workflows/ci.yaml) This package is made to ease access to Zwicky Transient Facility data and data-products. It is maintained by M. Rigault (CNRS/IN2P3) and S. Reusch (DESY). [cite ztfquery](https://ui.adsabs.harvard.edu/abs/2018zndo...1345222R/abstract) # ztfquery: a python tool to access ztf (and SEDM) data `ztfquery` contains a list of tools: - **ZTF products:** a wrapper of the [IRSA web API](https://irsa.ipac.caltech.edu/docs/program_interface/ztf_api.html) that enable to get ztf data _(requires access for full data, but not public data)_: - Images and pipeline products, e.g. catalog ; See the [`ztfquery.query.py` documentation](doc/query.md) - LightCurves (not from image subtraction): See the [`ztfquery.lightcurve.py` documentation](doc/lightcurve.md) - ZTF observing logs: See the [`ztfquery.skyvision.py` documentation](doc/skyvision.md) - **Marshal/Fritz:** Download the source information and data, such as lightcurves, spectra, coordinates and redshift: - from the [ZTF-I Marshal](http://skipper.caltech.edu:8080/cgi-bin/growth/marshal.cgi): See the [`ztfquery.marshal.py` documentation](doc/marshal.md) - from the [ZTF-II Fritz](https://fritz.science/): See the [`ztfquery.fritz.py` documentation](doc/fritz.md) - **SEDM Data:** tools to download SEDM data, including IFU cubes and target spectra, from [pharos](http://pharos.caltech.edu) See the [`ztfquery.sedm.py` documentation](doc/sedm.md) - **ZTF alert:** Currently only a simple alert reader. See the [`ztfquery.alert.py` documentation](doc/alert.md) *** # Credits ## Citation Mickael Rigault. (2018, August 14). ztfquery, a python tool to access ZTF data (Version doi). Zenodo. http://doi.org/10.5281/zenodo.1345222 ## Acknowledgments If you have used `ztfquery` for a research you are publishing, please **include the following in your acknowledgments**: _"The ztfquery code was funded by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement n°759194 - USNAC, PI: Rigault)."_ ## Corresponding Authors: - M. Rigault: m.rigault@ipnl.in2p3.fr, CNRS/IN2P3 - S. Reusch: simeon.reusch@desy.de, DESY *** # Installation ztfquery requires `python >= 3.8` ## Install the code using pip: `pip install ztfquery` (favored) or for the latest version: go wherever you want to save the folder and then ```bash git clone https://github.com/MickaelRigault/ztfquery.git cd ztfquery poetry install ``` ## Set your environment You should also create the global variable `$ZTFDATA` (usually in your `~/.bash_profile` or `~/.cshrc`). Data you will download from IRSA will be saved in the directory indicated by `$ZTFDATA` following the IRSA data structure. ## Login and Password storage Your credentials will requested the first time you need to access a service (IRSA, Marshal, etc.). They will then be stored, crypted, under ~/.ztfquery. Use `ztfquery.io.set_account(servicename)` to reset it. You can also directly provide account settings when running `load_metadata` and `download_data` using the `auth=[your_username, your_password]` parameter. Similarly, directly provide the username and password to the ztf ops page when loading `NightSummary` using the `ztfops_auth` parameter. *** # Quick Examples %package help Summary: Development documents and examples for ztfquery Provides: python3-ztfquery-doc %description help # ztfquery [![PyPI](https://img.shields.io/pypi/v/ztfquery.svg?style=flat-square)](https://pypi.python.org/pypi/ztfquery) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345222.svg)](https://doi.org/10.5281/zenodo.1345222) [![CI](https://github.com/mickaelrigault/ztfquery/actions/workflows/ci.yaml/badge.svg)](https://github.com/mickaelrigault/ztfquery/actions/workflows/ci.yaml) This package is made to ease access to Zwicky Transient Facility data and data-products. It is maintained by M. Rigault (CNRS/IN2P3) and S. Reusch (DESY). [cite ztfquery](https://ui.adsabs.harvard.edu/abs/2018zndo...1345222R/abstract) # ztfquery: a python tool to access ztf (and SEDM) data `ztfquery` contains a list of tools: - **ZTF products:** a wrapper of the [IRSA web API](https://irsa.ipac.caltech.edu/docs/program_interface/ztf_api.html) that enable to get ztf data _(requires access for full data, but not public data)_: - Images and pipeline products, e.g. catalog ; See the [`ztfquery.query.py` documentation](doc/query.md) - LightCurves (not from image subtraction): See the [`ztfquery.lightcurve.py` documentation](doc/lightcurve.md) - ZTF observing logs: See the [`ztfquery.skyvision.py` documentation](doc/skyvision.md) - **Marshal/Fritz:** Download the source information and data, such as lightcurves, spectra, coordinates and redshift: - from the [ZTF-I Marshal](http://skipper.caltech.edu:8080/cgi-bin/growth/marshal.cgi): See the [`ztfquery.marshal.py` documentation](doc/marshal.md) - from the [ZTF-II Fritz](https://fritz.science/): See the [`ztfquery.fritz.py` documentation](doc/fritz.md) - **SEDM Data:** tools to download SEDM data, including IFU cubes and target spectra, from [pharos](http://pharos.caltech.edu) See the [`ztfquery.sedm.py` documentation](doc/sedm.md) - **ZTF alert:** Currently only a simple alert reader. See the [`ztfquery.alert.py` documentation](doc/alert.md) *** # Credits ## Citation Mickael Rigault. (2018, August 14). ztfquery, a python tool to access ZTF data (Version doi). Zenodo. http://doi.org/10.5281/zenodo.1345222 ## Acknowledgments If you have used `ztfquery` for a research you are publishing, please **include the following in your acknowledgments**: _"The ztfquery code was funded by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement n°759194 - USNAC, PI: Rigault)."_ ## Corresponding Authors: - M. Rigault: m.rigault@ipnl.in2p3.fr, CNRS/IN2P3 - S. Reusch: simeon.reusch@desy.de, DESY *** # Installation ztfquery requires `python >= 3.8` ## Install the code using pip: `pip install ztfquery` (favored) or for the latest version: go wherever you want to save the folder and then ```bash git clone https://github.com/MickaelRigault/ztfquery.git cd ztfquery poetry install ``` ## Set your environment You should also create the global variable `$ZTFDATA` (usually in your `~/.bash_profile` or `~/.cshrc`). Data you will download from IRSA will be saved in the directory indicated by `$ZTFDATA` following the IRSA data structure. ## Login and Password storage Your credentials will requested the first time you need to access a service (IRSA, Marshal, etc.). They will then be stored, crypted, under ~/.ztfquery. Use `ztfquery.io.set_account(servicename)` to reset it. You can also directly provide account settings when running `load_metadata` and `download_data` using the `auth=[your_username, your_password]` parameter. Similarly, directly provide the username and password to the ztf ops page when loading `NightSummary` using the `ztfops_auth` parameter. *** # Quick Examples %prep %autosetup -n ztfquery-1.26.1 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-ztfquery -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 1.26.1-1 - Package Spec generated