Skip to main content

Tool to fetch pragrammatically fetch DESI spectra of individual objects

Project description

desi_retriever

This is a tool that allows you to fetch DESI spectra without manually downloading them. This tool can be run on your laptop and does not have to run on NERSC. (it still can run on NERSC, in this case it will be typically faster)

You may also consider using SPARCL https://astrosparcl.datalab.noirlab.edu/ for another interface.

Author: Sergey Koposov, Email: skoposov AT ed DOT ac _DOT uk, University of Edinburgh

Please acknowledge the software if you use it.

Installation

To install just do

pip install desi_retriever

or the version from github pip install -U desi_retriever@git+https://github.com/segasai/desi_retriever

Authentication

desi_retriever works with public DR1 data and private DESI data. If you want to use non-public DESI data, you must set up the DESI user / password

You need to put in the standard DESI web login/password in the home folder in the file: $HOME/.desi_http_user in the following format login:password

The login password are the same ones as used to access data.desi.lbl.gov

Usage

To fetch a given coadd spectrum you can do

import desi_retriever.dr1
SP = desi_retriever.dr1.get_specs(survey='sv1',
               program='dark',
               hpx=17683,
               targetid=39627652591521181)[0]

You could also get the RVSpecFit models by using

Dmod = desi_retriever.dr1.get_rvspec_models(survey='sv1', program='dark', hpx=17683, targetid=39627652591521181)[0]

More examples are in jupyter notebooks in example folder.

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

desi_retriever-0.5.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

desi_retriever-0.5.1-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file desi_retriever-0.5.1.tar.gz.

File metadata

  • Download URL: desi_retriever-0.5.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for desi_retriever-0.5.1.tar.gz
Algorithm Hash digest
SHA256 9cb46c8e0483a0cb69bbc8ff53d68bd0f3f81671ba75db6958e241225ad9673d
MD5 5f7a10c813ca113005ab10320e1b4fe2
BLAKE2b-256 c6ed8725eb7b082f19a6966269735eb81e2f54ed016329526a93668737163cab

See more details on using hashes here.

File details

Details for the file desi_retriever-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: desi_retriever-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for desi_retriever-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 874e0bf27ba8e554ed51d99137d4592672ea9c591c908d4983f1366fe6dde15c
MD5 7e0acdb9d1f835241b64f1402e2a210c
BLAKE2b-256 d81458f0f69b9192fdb88d7b1a7a3bc34fc9a9f29471e133df19a3f2e7aafb13

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