Skip to main content

Python package to access ZTF data

Project description

ztfquery

PyPI DOI

This package is made to ease access to Zwicky Transient Facility data and data-product. It is maintained by M. Rigault (CNRS/IN2P3) and S. Reusch (DESY).

cite ztfquery

ztfquery: a python tool to access ztf (and SEDM) data

ztfquery contains a list of tools:


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:


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

ztfquery-1.24.1.tar.gz (247.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ztfquery-1.24.1-py3-none-any.whl (254.1 kB view details)

Uploaded Python 3

File details

Details for the file ztfquery-1.24.1.tar.gz.

File metadata

  • Download URL: ztfquery-1.24.1.tar.gz
  • Upload date:
  • Size: 247.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.13 Darwin/21.4.0

File hashes

Hashes for ztfquery-1.24.1.tar.gz
Algorithm Hash digest
SHA256 c17f4534ffb1e1818a0bdca9140a3e29cf272ffcc4330c855ae90c13d95c0915
MD5 f024576b4b4c47e6815520ec5f38c237
BLAKE2b-256 f1fdf05f1f566547451150b44b078c3381bfef43702f931f214f601e4e6fbfe0

See more details on using hashes here.

File details

Details for the file ztfquery-1.24.1-py3-none-any.whl.

File metadata

  • Download URL: ztfquery-1.24.1-py3-none-any.whl
  • Upload date:
  • Size: 254.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.13 Darwin/21.4.0

File hashes

Hashes for ztfquery-1.24.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61e4a8077690d067cefa8e51bbf89f84d102cd807173ca14ad317bb4b10a0cc9
MD5 56436be9a9c4e02f9f0cab08a8b64c3a
BLAKE2b-256 c6c02ce09a54d5d504ad0474d9c27f95acd4886219565fae99e6646299a2f0aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page