Giter VIP home page Giter VIP logo

Comments (5)

mperrin avatar mperrin commented on September 23, 2024

Also some bug with setting the detector is supposed to auto change the pixel scale but didnt...

from webbpsf.

mperrin avatar mperrin commented on September 23, 2024

OK, this is because setting the image_mask attribute to "MASK335R" then invokes the code in NIRCam._update_aperturename() which currently is written to assume MASK335R is only ever used with LW, and so on.

There's a one-line fix for this in setup_sim_to_match_file to reset the aperture name after changing the image mask, which I'll do now.

But this makes me realize that it may no longer be useful or appropriate to have setting the image mask automatically switch to the nominal detector. For now I think we should not change the auto detector switching since that would be not back incompatible, but this could be discussed in the future.

from webbpsf.

obi-wan76 avatar obi-wan76 commented on September 23, 2024

I just wanted to mention setup_sim_to_match_file issue, #726, which is more related with adding addition per-instrument checks when selecting the right pupil.

from webbpsf.

mperrin avatar mperrin commented on September 23, 2024

@obi-wan76 can you give me specific filenames of observed data files that have the issues in #726? I can perhaps fold in fixes for those into this PR, but it would help to have test files to validate them on

from webbpsf.

obi-wan76 avatar obi-wan76 commented on September 23, 2024

When the pupil is not a mask, then the filter is not set correctly. For example, any of our sensing observations, e.g., jw02726477001_02102_00001_nrca3_cal.fits, simulate an in-focus PSF F212N instead of the WL. Other combinations would be, pupil+filter = F164N+F150W2 that set the simulation with filter F150W2 instead of F164N. I think when the pupil is not MASK then set the filter as the pupil.

The other issue is setting the observation when pupil = MASKBAR inside the image header because there is no MASKBAR in webbpsf. So, it need to choose between MASKSWB and MASKLWB depending on the filter. For example, jw01538048001_03103_00001_nrca4_cal.fits.

from webbpsf.

Related Issues (20)

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.