Skip to main content

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.

Metadata

Release files for desi-retriever 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for desi-retriever 0.5.1
File Size Uploaded
desi_retriever-0.5.1.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for desi-retriever 0.5.1
File Interpreter ABI Platform
desi_retriever-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / desi_retriever-0.5.1.tar.gz

Download URL desi_retriever-0.5.1.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
9cb46c8e0483a0cb69bbc8ff53d68bd0f3f81671ba75db6958e241225ad9673d
BLAKE2b-256 checksum
How to use checksums
c6ed8725eb7b082f19a6966269735eb81e2f54ed016329526a93668737163cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / desi_retriever-0.5.1-py3-none-any.whl

Download URL desi_retriever-0.5.1-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
874e0bf27ba8e554ed51d99137d4592672ea9c591c908d4983f1366fe6dde15c
BLAKE2b-256 checksum
How to use checksums
d81458f0f69b9192fdb88d7b1a7a3bc34fc9a9f29471e133df19a3f2e7aafb13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page