Skip to content

Commit

Permalink
Add default galaxy catalog
Browse files Browse the repository at this point in the history
Add a fake object galaxy shape catalog from which specific
fake object catalogs can be generated. Make this catalog the
default catalog used when running fake object catalog generation
scripts.
  • Loading branch information
natelust committed Nov 9, 2017
1 parent 1e5e621 commit 7a264f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin.src/makeSourceList.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@

import astropy.table

import lsst.utils
import lsst.pipe.base as pipeBase
import lsst.pex.config as pexConfig
import lsst.pipe.tasks.coaddBase as coaddBase

import lsst.synpipe.makeRaDecCat as makeRaDecCat

DEFAULT_CATALOG_PATH = os.path.join(lsst.utils.getPackageDir('synpipe'),
'catalogs', 'cosmos_25.2_multiband.fits')


class MakeFakeInputsConfig(pexConfig.Config):
"""Parse input for MakeFakeInputTask."""
Expand All @@ -32,7 +36,7 @@ class MakeFakeInputsConfig(pexConfig.Config):
inputCat = pexConfig.Field(
doc="input galaxy catalog, if none just return ra/dec list",
dtype=str,
optional=True, default=None)
optional=True, default=DEFAULT_CATALOG_PATH)
outDir = pexConfig.Field(doc='output directory for catalogs',
dtype=str,
optional=True, default='.')
Expand Down
6 changes: 5 additions & 1 deletion bin.src/makeSourceListGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@

import astropy.table

import lsst.utils
import lsst.pipe.base as pipeBase
import lsst.pex.config as pexConfig
import lsst.pipe.tasks.coaddBase as coaddBase

DEFAULT_CATALOG_PATH = os.path.join(lsst.utils.getPackageDir('synpipe'),
'catalogs', 'cosmos_25.2_multiband.fits')


def InputFakesGrid(ra_min, ra_max, dec_min, dec_max, separation_angle):
'''
Expand Down Expand Up @@ -168,7 +172,7 @@ class MakeFakeInputsConfig(pexConfig.Config):
inputCat = pexConfig.Field(
doc="input galaxy catalog, if none just return ra/dec list",
dtype=str,
optional=True, default=None)
optional=True, default=DEFAULT_CATALOG_PATH)
outDir = pexConfig.Field(doc='output directory for catalogs',
dtype=str,
optional=True, default='.')
Expand Down
Binary file added catalogs/cosmos_25.2_multiband.fits
Binary file not shown.

0 comments on commit 7a264f1

Please sign in to comment.