GithubHelp home page GithubHelp logo

richteague / disksurf Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 7.0 16.58 MB

Measure the molecular emission surface of protoplanetary disks. Based on Pinte et al. (2018).

License: MIT License

Python 89.17% TeX 10.83%

disksurf's People

Contributors

aviadlevis avatar richteague avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

disksurf's Issues

Velocities returned seem to be incorrect if a subset of channels is selected

In the get_emission_surface function, the velocity corresponding to each peak is specified with peaks += [[r, z, Fnu, self.velax[c_idx]]]. c_idx corresponds to the index of the cube corresponding to data = self.data.copy()[chans[0]:chans[1]+1]. However, self.velax corresponds to the velocities of the full image cube. Therefore, the incorrect velocities are returned if the chans argument is used to select a subset of channels.

On a minor related subject, the docstring says that chans should be a tuple, but chans needs to be a list or an array instead; the program will throw an error at the line chans[0], chans[1] = int(min(chans)), int(max(chans)) because tuples are immutable.

Community guideline suggestions

If you are interested in contributing, please submit a pull request. New functions should be documented in a manner consistent with existing code. Software bugs or mistakes in the documentation should be reported by opening up an issue. If reporting a software bug, please provide a minimal reproducible example. If your bug is triggered with a proprietary image cube,

Add weighting options.

Can we add some weighting options that allow us to include priors from different molecules? For example, saying 13CO must be below 12CO?

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.