Git Product home page Git Product logo

nh3fit's Introduction

nh3fit

This IDL library implements ammonia fitting using the method originally developed in Rosolowsky et al. (2008) and refined in Dunham et al. (2011). The work has been reimplemented in pyspeckit and improvements and refinements are being developed through that channel.

This code relies on mpfit and probably a lot of other things you can find in my core IDL libraries.

nh3fit is a code that forward models the ammonia spectrum with fine structure components given a uniform slab of gas. This version assumes that all the lines are characterized by the same excitation temperature and that the different states are populated according to thermodynamic equilibrium within the ortho- and para-ammonia ladders.

Calling nh3fit uses the main routine nh3fit.pro, which operates on vectors of frequency and main beam brightness temperature (i.e., corrected for atmospheric opacity and main beam efficiency, as is appropriate for a beam-filling slab).

IDL> nh3fit, nu, Tmb, s = output

where nu and Tmb are the frequency in GHz and the main beam temperature in K respectively. These arrays should be the same length. output is then a structure with fields that contain the optimal physical parameters.

If you want to create a model spectrum for overplotting, you call the modelspec routine with the optimized parameters.

IDL> Tmb_bestfit = modelspec(nu, output.model)

Note that the fit can make use of embedded information about a frequency switch in the data (i.e., accounting for the off components of a simple frequency switch). This is controlled by setting the !NH3 system variable with the IDL routine defsysv. The tag freqswthrow sets the magnitude of the throw in MHz (because that's how the GBT defines the throw).

nh3fit's People

Contributors

low-sky avatar

Watchers

James Cloos 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.