Giter Club home page Giter Club logo

mosthosts's Introduction

Rob Knop's MostHosts stuff

Python modules, scripts, and notebooks mosthosts

Libraries in the lib subdirectory:

  • mosthosts_desi.py — for figuring out which Most Hosts objects have DESI targets and observations
  • desi_specfinder.py — for loading a DESI spectrum at user-specified RA/Dec; uses the DESI-standard desisepc library
  • mosthosts_skyportal.py — link to the DESI SkyPortal [CURRENTLY BROKEN]

mosthosts_desi.py : Reading mosthosts and matching to DESI targets and observations

This library mosthosts_desi.py has a class that reads the mosthosts table into a Pandas dataframe, and then adds information for all of the hosts from the zbest_daily and public_fibermap DESI tables. Look at that file for documentation, or do:

    from mostshost_desi import MostHostsDesi
    help(MostHostsDesi)

The jupyter notebook specmatch.ipynb is an example of using this library.

desi_specfinder.py : Finding spectra at a given RA/Dec

For help, do:

    from desi_specfinder import SpectrumFinder
    help(SpectrumFinder)

Examples of use are in the jupyter noteboos desi_spec_at_radec.ipynb and desi_pullspec.ipynb.

Other Things here

Some of this is random maintenance stuff I use:

  • scripts/spectrum_uploader.py — I use this to upload spectra to the DESI SkyPortal. I haven't actually run this repository's file in a long time, so I'm not sure it works; Autmun Awbrey has been doing the SkyPortal spectrum uploading in recent months.
  • mosthosts_source_info.py — A hack script used to diagnose SkyPortal name mismatches (which still needs to be completed!)
  • *.csv — cached files written when I make a MostHostsDesi object (from mosthosts_desi.py). These CSV files may be useful as a cache of information about MostHosts, but of course they're not necessarily going to be up to date.

mosthosts's People

Contributors

maayane avatar rknop avatar

Watchers

 avatar  avatar  avatar  avatar

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.