GithubHelp home page GithubHelp logo

desihub / boss2desi Goto Github PK

View Code? Open in Web Editor NEW
0.0 63.0 0.0 65 KB

code to convert boss data to desi format

License: BSD 3-Clause "New" or "Revised" License

Python 80.16% IDL 16.36% Prolog 3.48%

boss2desi's Introduction

boss2desi

Code to convert BOSS data to DESI format

Example run:

python bin/convert-frame --frame frame.fits --cframe spCFrame-b1-00121278.fits --wa --out frame-b1-00121278.fits.gz

This will create the frame-b1-00121278.fits.gz file following the DESI brick conventions:

  • HDU0: flux
  • HDU1: ivar
  • HDU2: mask
  • HDU3: wavelength
  • HDU4: resolution
  • HDU5: fibermap

The wavelength is determined by HDU3, fiber 250 (or 750) in the --wave file. Everything else is interpolated to this grid.

The flux is the sum of the flux and sky as read from the frame file (to allow the user to run a sky subtraction).

The resolution is gaussian with a dispersion given by wdisp.

The spCFrame is needed to read the wavelengths (and the fibermap, although this info is also in the spFrame file).

boss2desi's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

boss2desi's Issues

missing FLAVOR

doss2desi bricks miss the "FLAVOR" flag.
It is defined as: Flavor [arc, flat, science, ...] (py/desispec/test/pipehelpers.py)

When running on boss2desi bricks I get:

rrdesi --zbest zbest.fits --output rrdetails.h5 /uufs/chpc.utah.edu/common/home/sdss02/ebosswork/eboss/sandbox/desiwork/boss2desi/v0.11/brass/bricks/4220/brick-b-4220.fits
INFO: reading targets
ERROR:frame.py:174:vet: Frame.meta missing FLAVOR keyword
/uufs/astro.utah.edu/common/home/u6011908/Programs/desi/code/desispec/py/desispec/io/frame.py:170: UserWarning: Frame did not pass simple vetting test. diagnosis=2
  warnings.warn("Frame did not pass simple vetting test. diagnosis={:d}".format(diagnosis))
ERROR:frame.py:171:read_frame: Frame did not pass simple vetting test. diagnosis=2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.