Skip to main content

CLI to download ESO raw and Phase3 archive data and metadata

Project description

TODO - real readme

""" ESO archive downloader CLI.

This script provides a command-line interface to query and download ESO raw and Phase3 archive data.

Requirements

  • Python >= 3.10

  • astroquery >= 0.4.12 (currently pre-release)

    $ python -m pip install -U --pre astroquery --no-cache-dir
    

Recommendation

To use the script as a command, make it executable and
add it to some deirectory in your $PATH, e.g., /us/local/bin:

    $ chmod +x eso-download.py
    $ mv eso-download.py /usr/local/bin/

Now you can run it from anywhere as in the examples below.

Usage examples

Raw archive::

eso-download raw --help

eso-download raw --user <user> \
    --run-id "090.C-0733(A)" \
    --instrument FORS2

eso-download raw --user <user> \
    --ra 129.0629 --dec -26.4093 \
    --max-rows 20

eso-download raw --run-id '090.C-0733(A)' \
    --instrument FORS2 \
    --start-date 2013-01-01 --end-date 2013-04-01 \
    --file-cat SCIENCE \
    --max-rows 30 --metadata-only

Phase3 archive::

eso-download phase3 --help

eso-download phase3 --user <user> \
    --proposal-id "094.B-0345(A)" \
    --collection MUSE

eso-download phase3 --user <user> \
    --target-name "NGC 253"

eso-download phase3 --proposal-id '275.A-5060(A)' \
    --instrument FORS2 \
    --target-name 'GDS J033223' \
    --ra 53.1 --dec -27.73\
    --publication-date-start 2014-07-11 --publication-date-end 2014-07-12 \
    --facility ESO-VLT-U1 \
    --max-rows 30 --metadata-only

General options::

eso-download raw --count-only
eso-download phase3 --metadata-only

Authenticate / Deauthenticate:

eso-download [raw|phase3] --user <username>
# Downloads data and metadata available to user <username>
# Prompts password if not yet unauthenticated.

eso-download [raw|phase3] --user <username> --deauthenticate
# Deletes password from keyring;
# Password for <username> will need to be re-entered next time.

"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eso_download-0.1.dev3.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

eso_download-0.1.dev3-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file eso_download-0.1.dev3.tar.gz.

File metadata

  • Download URL: eso_download-0.1.dev3.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for eso_download-0.1.dev3.tar.gz
Algorithm Hash digest
SHA256 48eb8089d732ad4a241cd48e61b73ee02eb94dfb253b367fd1dd64a708fbc45e
MD5 7c1e305dbe0018a1c5f1cdfa6fb7c69c
BLAKE2b-256 c5d5867b100bc9cccb000288eb00cb3f2ba089e31f057df105c2db279de10cc8

See more details on using hashes here.

File details

Details for the file eso_download-0.1.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for eso_download-0.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f6dfbf78a42eed278bb62b93f170a451c8137fcc2718e30bc6c6e625f8290bc
MD5 f972b51635d2b12c0e3f424d9f6a6fd8
BLAKE2b-256 9cb2d9db6d72a60a39d5633d0846e8d1298a4d4d3c1a5b30f67b89e476223af3

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