Giter Site home page Giter Site logo

installation woes about bettermoments HOT 5 CLOSED

teuben avatar teuben commented on June 28, 2024
installation woes

from bettermoments.

Comments (5)

richteague avatar richteague commented on June 28, 2024

I've included a new function, data_from_fits which will extract the necessary values from the cube without having to call the imgcube function. This should mean that you can still pip install.

I've also removed plt.style.use('paper') from the Notebook as that was just used to set the styles for making the plots. This should now default to whatever default the user has.

from bettermoments.

teuben avatar teuben commented on June 28, 2024

I should revisit the fits ingestion in both cases, as I only got a correct comparison if i shifted the pixels by 1 comparing yours and mine. It's an easy thing to miss, using 0 based or 1 based... I'd like to think mine is correct. If you feel your is correct too, we should revisit. I'll redo mine with your new function and open a new issue if need be.

from bettermoments.

richteague avatar richteague commented on June 28, 2024

from bettermoments.

teuben avatar teuben commented on June 28, 2024

Oh, i meant positional pixels, not spectrally. As for the fits definition: the value is defined at the center of the pixel, where the first pixel is 1. But let me redo the comparison with your new function and it should be more clear.

from bettermoments.

richteague avatar richteague commented on June 28, 2024

Ah yeah, that makes sense. I didn't really do this very thoroughly as typically people may want to handle their coordinates in different ways, for example using Astropy's WCS package.

from bettermoments.

Related Issues (17)

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.