Giter VIP home page Giter VIP logo

astrodendro's People

Contributors

bradenmacdonald avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

astrodendro's Issues

Viewer parameter widgets are useless with cgs data

For data cubes that use CGS units, densities may be on the order of 10-21; consequently, the code as written in astrodendro/viewer/dendrowidget.py will see both the min and max data points as essentially 0, and the minimum_delta and minimum_flux parameters cannot be set to reasonable values.

In the interim, two workarounds are possible:

  1. Once can manually set the parameters using the shell: for example, one can type make_dendrogram(10E-20, 20, 10E-21) or, more explicitly, make_dendrogram(min_flux=10E-20, min_npix=20, min_delta=10E-21) and it should spit out the desired dendrogram.

  2. Scale the data. This can be done before using the viewer, or while the viewer is running, e.g.:

     import numpy as np
     set_data( np.log10(cube.data * 1E22) ) 
    

Maximum recursion depth when writing hdf5

I got the following error after attempting to use dendrogram.to_hdf5:

  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Astronomical_Dendrograms-0.5.0-py2.6.egg/astrodendro/components.py", line 212, in newick
newick_items = [item.newick for item in self.items] 
RuntimeError: maximum recursion depth exceeded

I think I had a very large dendrogram. I attempted to change the maximum recursion level (default is 1000), but that resulted in a segmentation fault. I'm not sure what the best workaround is, but I think at least a try/except testing for a RuntimeError in the newick retriever might be useful.

Loosen FITS file header requirements

This is more of an astrocube issue, but:

OBJECT and LINENAME FITS headers should not be required. Documentation should explain what these headers are not assume PPV cubes, as PPP cubes (from simulations etc.) can and are being used as well.

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.