Comments (4)
I think that's another way of showing the same thing using Eddie's approach in his gist: for odd oversampling, the Scipy and Astropy convolutions give (visually) the same things, whereas even oversampling yields to sharper differences.
from webbpsf.
In my head I was guessing that astropy is replacing the even kernel with some half-pixel shifted odd kernel, and so replacing the top-hat with something where the wings ramp linearly down or something, which sounds sane but for a discontinuous kernel like this one would be problematic. But I didn't push hard enough to actually find the code that was doing that and may be off-base. That would make the effective kernel a bit wider than it should be for even oversampling and have an effect like the one we see here.
from webbpsf.
Right - as @obi-wan76 pointed out, Astropy Boxkernel2D returns an odd-size kernel regardless of the width specified, so that's one difference with the Scipy approach used above.
With that said, I don't measure any difference in the centroids of the images I posted above...
from webbpsf.
Ah, sorry, I'm not sure I can see obi-wan76's message, thanks. Yes, I didn't test centroid differences for my test image, only for the real Roman images, but you can imagine that I was surprised when I learned that I could reproduce the input centroids well for Roman only for odd-sized convolutions! Note that the systematics were small (~0.01 pix), but we obviously shouldn't be limited by this particular systematic. The real Roman PSFs are of course a bit more complicated than these test images.
from webbpsf.
Related Issues (20)
- photutils GriddedPSFModel now supports different oversampling in each dimension HOT 1
- Improvements in MIRI LRS instrument model HOT 2
- AttributeError: 'MIRI' object has no attribute 'load_wss_opd_by_date' HOT 4
- Use consistent Time objects in trending.py
- PSF model worse for brightsky detector HOT 3
- setup_sim_to_match_file: Not properly reading NIRCam F323N? HOT 4
- Release 1.3 roadmap HOT 1
- NIRSpec NRS1 and NRS2 PSF creation have very different runtimes HOT 1
- setup_sim_to_match_file: F323N returns NRCA5 for NRCB5 module HOT 4
- Improvements to trending.plot_wfs_obs_delta & wfe_histogram_plot to support full filename paths HOT 1
- Visit Id naming smarts in get_visit_nrc_ta_image
- setup_sim_to_match_data for LRS TACONFIRM image should set image_mask to LRS slit HOT 1
- readthedocs build is broken; needs python version update HOT 4
- Release 1.4 roadmap HOT 1
- add docs for all jwst instrument options flags
- Check and perhaps slightly update NIRSpec aperture PAs
- calc_datacube_fast: would be nice to have this able to output detector-sampled and distorted outputs
- Update Readthedocs config to use Readthedocs Add-ons, per their migration/deprecation plan HOT 4
- Using PSF Grids - webbpsf.gridded_library.display_psf_grid(grid) does not provide correct labels HOT 3
- A typo in NIRSpec.disperser_list HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webbpsf.