Comments (5)
Should the row col be relative to the center?
row,col=self.get_cen()
rowdiff=gm['row']-row
coldiff=gm['col']-col
irr=((gm['irr'] + rowdiff**2)*gm['p']).sum()*ipsum
irc=((gm['irc'] + rowdiff*coldiff)*gm['p']).sum()*ipsum
icc=((gm['icc'] + coldiff**2)*gm['p']).sum()*ipsum
from ngmix.
Yes. Sorry, I just assumed (always a mistake) that that was what the 'row', 'col' parameters were. They should be the r,c offsets relative to the centroid.
This formula is basically just the parallel axis theorem for second moments. I_offset = I_center + r^2.
from ngmix.
Yes, thank you, I'll implement this soon.
from ngmix.
The parallel axis theorem seems like a sledgehammer for these purposes! However, now I can say I have seen it used somewhere in real research, as opposed to before when I just needed it to solve made up mechanics problems.
from ngmix.
I remember someone (maybe Mike even) suggesting this solution to me in the past, but I quickly forgot it and didn't implement it.
I've pushed a change to master that implements this.
from ngmix.
Related Issues (20)
- Add simple PSFFailure exception HOT 1
- make util.get_ratio_var and get_ratio_error work for arrays
- make order of moms same as other items for moments
- make admom flux match wmom
- Add ability to concatenate gmixes
- Add the standard deviation of the noise image to the metacal obs ".meta" HOT 2
- run junk through the fitters
- pass ormask through metacal HOT 1
- add jacobian.get_data() and implement __eq__
- consider replacing masked pixels with model
- Shear estimation without deconvolving PSF?
- Using the default `guesser` in `Runner` construction will cause bootstrap `go()` to fail HOT 4
- Add specialied guesser for BDF with psf flux
- Turn off NumbaExperimentalFeatureWarning
- Add optional seg for Observations and read with medsreaders
- remove ascontinguousarray in observation HOT 1
- Perform tests to determine best default metacal reconv method
- add `make_image` for the galsim fitters HOT 1
- Make size measurement for galsim moffat use fwhm
- Implement 4th order moments in admom
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 ngmix.