Git Product home page Git Product logo

baltools's Introduction

baltools

Introduction

Tools to identify, characterize, and simulate BAL QSOs.

Installation

These tools include dependencies to several DESI packages, and it should be most straightforward to use them at NERSC.

To install, clone the repository, add the "py" directory to your $PYTHONPATH, and the "bin" directory to your $PATH.

Note the code expects that you have a directory called "Catalogs/" in your home directory that contains the file PCA_Eigenvectors.fits that is in the data/ directory of this repository. The file PCA_Eigenvectors_Brodzeller.fits is also required if using alternate templates made by Allyson Brodzeller.

Getting Started

See the notebook "DESI balfinder tutorial" in the "doc" directory for examples of how to run the balfinder on SV data and on mocks.

Another option is to run "bin/runbalfinder.py" on the command line. This will run on all spectra for a given tile. There are various options, including to restrict the date range and spectrographs.

Tour of Code

Here is a brief description of the files in the "py" directory:

balconfig.py : common modules and global variables used by balfinder

baltable.py : routines to construct BAL catalogs

desibal.py : main balfinder for DESI

fitbal.py : core code to identify and characterize BALs

plotter.py : various convenience plotting routines

utils.py : utilities for manipulating SDSS spectra

baltools's People

Contributors

paulmartini avatar simonmf1 avatar karishseebaluck avatar

Stargazers

 avatar Lluis Mas-Ribas avatar Ming-Feng Ho avatar John Suárez-Pérez avatar

Watchers

 avatar

Forkers

simonmf1 lluism

baltools's Issues

not finding quasars due to spec type

Hi @paulmartini is this line not causing an issue for you when running in data, recently?

zmask = zmask*(zs['SPECTYPE'] == b'QSO')

I think the 'b' in front of 'QSO' is not longer needed. For recent mocks it fails to find quasars as it is, so I'll submit a PR, but I'm wondering if we need to retain backward compatibility, I think so, do you agree?

balfinder fails for the latest quickquasar mock runs

the balfinder is running correctly for mocks created before the changing the default pixel width from 1 to 0.8 in desihub/desisim#533. But not for a newer run, error is.:

Procesisng: spectra-16/0/0/spectra-16-0.fits
Output BAL catalog: spectra-16/0/0/baltable-16-0.fits
ERROR:coaddition.py:230:coadd_cameras: Cannot directly coadd the camera spectra because wavelength are not aligned, use --lin-step or --log10-step to resample to a common grid

This is likely a desisim issue, not baltools but I'm posting it here too for the record, I'll also post it in desisim...
@paulmartini have you seen something like this before? .

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.