Python package to access ZTF data
Project description
ztfquery
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).
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 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.pydocumentation - LightCurves (not from image subtraction): See the
ztfquery.lightcurve.pydocumentation - ZTF observing logs: See the
ztfquery.skyvision.pydocumentation
- Images and pipeline products, e.g. catalog ; See the
-
Marshal/Fritz: Download the source information and data, such as lightcurves, spectra, coordinates and redshift:
- from the ZTF-I Marshal: See the
ztfquery.marshal.pydocumentation - from the ZTF-II Fritz: See the
ztfquery.fritz.pydocumentation
- from the ZTF-I Marshal: See the
-
SEDM Data: tools to download SEDM data, including IFU cubes and target spectra, from pharos See the
ztfquery.sedm.pydocumentation -
ZTF alert: Currently only a simple alert reader. See the
ztfquery.alert.pydocumentation
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
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ztfquery-1.26.0.tar.gz.
File metadata
- Download URL: ztfquery-1.26.0.tar.gz
- Upload date:
- Size: 248.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.16 Darwin/21.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d96267ebaf50dd6b27de156e566e0735e2008d62cc2b4c1d93b4a8f84f40329
|
|
| MD5 |
c801920207a759551393aeeece438c87
|
|
| BLAKE2b-256 |
dcd84abdd65105883890c1f490f183dea310ab148e5eab24c5059ee3be3a2cdc
|
File details
Details for the file ztfquery-1.26.0-py3-none-any.whl.
File metadata
- Download URL: ztfquery-1.26.0-py3-none-any.whl
- Upload date:
- Size: 256.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.16 Darwin/21.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6d8d5e3289b9df74d0ddfd663cb6698cc5b87eabc305d1bd79660032dc7c644
|
|
| MD5 |
91381fcf637d347fb2a273f11a53054a
|
|
| BLAKE2b-256 |
21d4d060d44f2b68139c0d03d73fc06e08548ed1a679c78af16501c1f507141d
|