Code Monkey home page Code Monkey logo

bd-finder's Introduction

README for fit_sonora.py

2023/10/17

# Thomas Harvey

This script takes a catalog and fits the Sonora Bobcat and/or Cholla models to the photometry. Sonora Bobcat and Cholla models are provided by Marley et al. (2021, Astrophysical Journal, in press.) and Karalidi et al. (2021, Astrophysical Journal, in press.). They are automatically downloaded from Zenodo if not found in directory code is run in.

Code should be unpacked into a directory, which is where output and data files will be stored. By default sonora data is stored in 'sonora_data/'. base_path in convolve_sed_v2 should be changed to location of jwst_filters file if not in same location as code.

On first run the code will take a while, as it downloads and unpacks data files (takes approx 20 Gb when unpacked). On subsequent runs the spectra are resampled for speed, so they will be much quicker.

Changes to code may need to be made to reflect catalogues column names for photometry. Style of EPOCHS catalogues for flux 'FLUX_APER_{band}aper_corr_Jy', reflecting that the value is aperture corrected and in Jy. For flux error the form is f'FLUXERR_APER{band}_loc_depth_10pc_Jy', reflecting that the flux uncertainity is derived from a local estimate of the depth, with a 10pc error floor, in Jy. In addition both of these columns have the shape (N, 5), as we measure aperture photometry in 5 circular apertures (radius 0.16, 0.25, 0.5, 0.75, 1 arcsec.) Changes to lines 220, 357, 359 may be required to fit a catalogue with a different format.

Code is still a work in progress. Contact the author at: [email protected] for help, improvements, problems, bugs, complaints etc...

bd-finder's People

Contributors

tharvey303 avatar

Watchers

 avatar

bd-finder's Issues

Speed up fitting

Speed up fitting - maybe use

from jax.scipy.optimize import minimize

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.