Giter Club home page Giter Club logo

Comments (4)

o-smirnov avatar o-smirnov commented on August 27, 2024

On a related note, what's the quickest to make an LSM from an image? My BDSM-fu is lapsed, so I was hoping someone could give me a quick recipe.

from aimfast.

Athanaseus avatar Athanaseus commented on August 27, 2024

If you have stimela installed then you can spin a pybdsf cab as follows (this should return a model in fits and lsm):

import stimela


INPUT = 'input'
OUTPUT = 'output'
MSDIR = 'msdir'

IMAGE = ''
PIX_THRESH = 10
ISL_THRESH = 5


stimela.register_globals()

recipe = stimela.Recipe('Source Finder', ms_dir=MSDIR)
#JOB_TYPE='singularity', singularity_image_dir=os.environ["STIMELA_PULLFOLDER"])


recipe.add('cab/pybdsm', 'source_finder',
        {
            "filename"        :   "{}:output".format(IMAGE),
            "outfile"            :   "pybdsm_{}".format(IMAGE[:-5]),
            "thresh_pix"     :    PIX_THRESH,
            "thresh_isl"      :    ISL_THRESH,
            "clobber"          :    True,
            "catalog_type" :    "gaul",
        },
            input=INPUT,
            output=OUTPUT,
            label='src_finder:: Sourcery')

recipe.run()

PS: In the upcoming release aimfast will provide this functionality.

from aimfast.

IanHeywood avatar IanHeywood commented on August 27, 2024

Or if you just want a pure* python solution, I still use this function which is based on one that Sphe wrote years ago:

https://github.com/IanHeywood/oxkat/blob/master/tools/identify_dE_directions.py#L17

If you give it a PyBDSF gaul file it should give you a Tigger LSM. Remember to adjust the cluster distance setting if you want the COPART business to make sense. It's being used in a weird way in this script:

https://github.com/IanHeywood/oxkat/blob/master/tools/identify_dE_directions.py#L181

  • almost pure, it does assume tigger-convert is available from the command line.

from aimfast.

o-smirnov avatar o-smirnov commented on August 27, 2024

Hmmm, at this stage even getting a .gaul is proving elusive... BDSM is hanging, seemingly forever, on fitting islands. Any idea how to tell it not to fit so hard?

from aimfast.

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.