Code Monkey home page Code Monkey logo

Comments (8)

arunkannawadi avatar arunkannawadi commented on August 11, 2024

Just looking at those galaxies with positive weights doesn't help either.
catmag_sims_positiveweights

from kv450imsim.

ifen avatar ifen commented on August 11, 2024

Hi @arunkannawadi, LensFit does not measure the magnitudes and should simply take, as an input, the measured mags from SExtractor's MAGAUTO column. I'm not understanding what you are trying to match tho? Are you trying to match the input mags from the sims to the CATMAG from LF output catalogue?

from kv450imsim.

arunkannawadi avatar arunkannawadi commented on August 11, 2024

Ok, that is helpful. What I did was the match the lensfit output catalogue to the SExtractor catalogue by matching the positions. And then, I compared the catmag and MAG_AUTO fields to find this difference.

I had to match it by positions because I wanted the SExtractor catalogue in FITS format, so I re-ran SExtractor on the image after the pipeline was finished. And I got a different number of objects. That is weird, and I will first look into that.

from kv450imsim.

ifen avatar ifen commented on August 11, 2024

@arunkannawadi you can simply match SExtractor and LF output catalogues by the Object ID. There is a direct 1-1 link between all items in the SExtractor catalogue and the LF output catalogue.

from kv450imsim.

arunkannawadi avatar arunkannawadi commented on August 11, 2024

The SExtractor catalogue in ASCII format has 61518 galaxies (so does the LensFit catalogue which reads this) whereas when I changed the config file to give me a FITS file and ran it outside the pipeline, I get 63163 objects in my catalogue. I double checked I provide the same inputs as the ones that pipeline.py provides.

from kv450imsim.

ifen avatar ifen commented on August 11, 2024

that is really strange, I would expect that ASCII output and the FITS output should remain consistent...

from kv450imsim.

arunkannawadi avatar arunkannawadi commented on August 11, 2024

I knew it had to be something stupid. I was feeding the WEIGHT_IMAGE but not the WEIGHT_TYPE :-/
Now I get the same number of detections and moreover, catmag and the input MAG_AUTO agree very well.

from kv450imsim.

ifen avatar ifen commented on August 11, 2024

@arunkannawadi great as long as that is working well :)

from kv450imsim.

Related Issues (3)

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.