Skip to content

Commit

Permalink
Added DECam i-band, fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyowl committed Mar 7, 2023
1 parent 2596f1f commit b7c4472
Show file tree
Hide file tree
Showing 4 changed files with 814 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/zCluster
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def makeParser():
parser.add_argument("-c", "--cachedir", dest="cacheDir", default = None, help="Cache directory location\
(default: $HOME/.zCluster/cache). Downloaded photometric catalogs will be stored\
here.")
parser.add_argument("-F", "--fetch-only-and-cache", dest="fetchOnlyAndCache",
parser.add_argument("-F", "--fetch-only-and-cache", dest="fetchAndCacheOnly",
help="Only fetch and cache galaxy catalogs - i.e., do not run photo-z estimation.\
This is useful if you are running on a compute cluster where compute nodes do\
not have internet access (allows a first run with -F, followed by a second run\
Expand Down Expand Up @@ -665,7 +665,7 @@ if __name__ == '__main__':
writeDensityMaps = args.writeDensityMaps, writePlots = writePlots,
rank = rank, zDebias = zDebias, fitZPOffsets = args.fitZPOffsets,
maxIter = maxIter, minBackgroundAreaMpc2 = args.minBackgroundAreaMpc2,
fetchOnlyAndCache = args.fetchOnlyAndCache)
fetchAndCacheOnly = args.fetchAndCacheOnly)

# If running under MPI, gather everything back together
# Rank 0 process will continue with plots
Expand Down
3 changes: 2 additions & 1 deletion zCluster/PhotoRedshiftEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def __init__(self, absMagCut, passbandSet = 'SDSS+Ks', zMin = 0.01, zMax = 3.0,
self.passbandsList.append(astSED.Passband(passbandsDir+"RSR-%s.EE.txt" % (band.upper()), inputUnits = "microns"))
elif passbandSet == 'DECaLS':
# NOTE: WISE passbands from here: http://wise2.ipac.caltech.edu/docs/release/allsky/expsup/sec4_4h.html
self.bands=['g', 'r', 'z', "w1", "w2"]
# DR10 adds i-band
self.bands=['g', 'r', 'i', 'z', "w1", "w2"]
for band in self.bands:
if band[0] != "w":
self.passbandsList.append(astSED.Passband(passbandsDir+"decam.%s.am1p4.dat.txt" % (band)))
Expand Down
Loading

0 comments on commit b7c4472

Please sign in to comment.