Skip to content

Quick way of fetching DESI spectra in Python without logging to NERSC

Notifications You must be signed in to change notification settings

segasai/desi_retriever

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desi_retriever

This is a tool that allows you to fetch desi spectra without manually downloading them

Installation

To install just do

pip install https://github.com/segasai/desi_retriever/archive/master.zip

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

Then to fetch a given spectrum from coadd you can do

D = desi_retriever.andes.get_specs( tileid=63075, night=20200219, fiber=0, targetid=35190987189916575, coadd=True) or to get list of multiple exposures

D = desi_retriever.andes.get_specs(tileid=63075, night=20200219, fiber=0, targetid=35190987189916575)

You could also get the RVSpecFit models by using

Dmod = desi_retriever.andes.get_rvspec_models( tileid=63075, night=20200219, fiber=0, targetid=35190987189916575,coadd=True)

More examples are in jupyter notebooks in example folder

About

Quick way of fetching DESI spectra in Python without logging to NERSC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages