Git Product home page Git Product logo

coronagraph's People

Contributors

arfon avatar jlustigy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coronagraph's Issues

Dark current in infrared unrealistic

Hello,

In running the script luvoir_demo.py demo, the dark current appears to precipitously drop off around 1 micron.

Figure_1

This is the opposite behavior of what one would expect. Dark current for infrared detectors is far higher than for optical, for equal pixel sizes. Why does this occur? The culprit appears to be this set of lines in the function set_dark_current

    if NIR:
        iNIR  = (lam > 1.0)
        # Set dark current based on NIR detector properties
        if ( lammax <= 2.0 ): De[iNIR] = De_nir * np.power(10., (Tdet-120.)*7./100. )
        if ( lammax > 2.0 ) and ( lammax <= 4.0 ): De[iNIR] = De_nir * np.power(10., (Tdet-80.)*9./140. )
        if ( lammax > 4.0 ) and ( lammax <= 7.0 ): De[iNIR] = De_nir * np.power(10., (Tdet-40.)*11./140. )
        if ( lammax > 7.0 ): De[iNIR] = De_nir * np.power(10., (Tdet-30.)*11./70. )
        # Don't let dark current fall below a threshold
        iDe = (De[iNIR] < De_nir)
        De[iNIR][iDe] = De_nir

    return De

where the default value for De_nir is 0.001 e/pix/s. This appears to be a typo, as this does not look correct. Dark current rates for H2RGs are about 0.01 e/pix/s (see Figure 1 [here] (https://iopscience.iop.org/article/10.1086/661663)) and for SAPHIRA LmAPDs it is about a half of this in some published data.

Changing wantsnr doesn't change DtSNR

Hi, Jacob!

Thank you so much for putting all this in to Python and documenting it so well!

I had just one issue that I'm running into where when using CoronagraphNoise even if I adjust the wantsnr value and run run_count_rates, that DtSNR doesn't ever change. I think it's just always using the default wantsnr=10 value. Do you have an idea of why this could be happening?

Best,
Thea

Smoother spectral degradation

Very cool project!
In the example "Degrading a spectrum" from the docs, the last Figure shows some jitter. Sometimes, higher resolution results in lower albedo. I understand that this comes from the grid placement, as can be seen in the second-to-last Figure.

  • If the grid placement can be chosen in advance, it can be optimized on a (one?) certain wavelength. Then, one could test the optimal placement.
  • If the grid placement is not optimized, it would be more useful to show the average albedo. This could be done by iterating over a grid (or random set) of placements.

In both cases, the last Figure would be downward sloping.

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.