Giter Site home page Giter Site logo

nutella's People

Contributors

benmontet avatar mirca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mirca

nutella's Issues

model should be larger than the entire psf

We were missing the dumb (right) way to calculate the total expected flux from a star in each cadence:

pred_flux = [np.sum(np.exp(model(*results[i], gds))) for i in range(len(tpf)]

Duh. Just calculate the model explicitly and sum over all pixels.

Anyway, when we do this (see the old notebook) we still get too much noise. I think this might be in part because the model region is smaller than the entire PSF and so the movement carries it out of the model region. The residuals look like noise (which is good!) but there is too much of it.

The good news is that we can see the sinusoidal pattern in the data. The residuals aren't quite centered around 0, but I believe this is a background issue and will be fixed when we fix #1.

Extend to consider multiple stars

I propose we fit for [Nstar x Ncadence] fluxes, [Nstar x2] positions (x and y), and [(Nstar-1) x2] offsets between stars. As the detector moves around the relative positions of stars will be fixed, so any apparent changes in the centroids of each is actually telling us something about the flat field.

Handing negative pixels

Any pixel that might have a negative value is a pixel that by definition is not receiving any flux from the star, so perhaps it shouldn't contribute to our models at all. I propose we consider NaNning these pixels.

Are numerical derivatives correct?

@mirca please check my math here. Since we're multiplying the terms together now they were definitely wrong as written previously! I'm still not convinced they're right.

Movement isn't quite right

In a simulated test with a simple PSF and no noise and no motion, it works perfectly and we get the ideal PSF back.

As soon as we build in even simple motion, everything goes to hell. Why? Positions are not inferred correctly, need to explore to see what's going on (did we miss a minus sign somewhere?)

better interpolation

I'm using a PSF which is a simple square of height one in the central 9 pixels, and motion that carries this only directly up and down. The norm_super_tpf must have sharp vertical edges in this case, as the columns outside the central 3 never receive any flux.

This is what we're getting with RectBivariateSpline which clearly is an issue.
screen shot 2017-12-06 at 9 24 12 pm

likelihood function

What are our errors anyway, really? Perhaps a Poisson likelihood function is relevant. Does that ruin everything in some subtle way?

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.