mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
fixed and calrified zobov vs survey normalization schemes
This commit is contained in:
parent
a670b86295
commit
cee027a759
3 changed files with 57 additions and 36 deletions
|
@ -236,7 +236,7 @@ def findEdgeGalaxies(galFile, maskFile, edgeGalFile, contourFile,
|
|||
|
||||
# paint galaxy flags onto healpix map for diagnostics
|
||||
# TODO - drop this when done testing
|
||||
log.write(" Saving diagnostic map to file...\n")
|
||||
log.write(" Saving diagnostic maps to file...\n")
|
||||
flagMap = np.zeros(len(contourMap))
|
||||
justEdgeRA = RA[flagList == 1]
|
||||
justEdgeDec = Dec[flagList == 1]
|
||||
|
@ -244,13 +244,28 @@ def findEdgeGalaxies(galFile, maskFile, edgeGalFile, contourFile,
|
|||
phi, theta = convertAngle(justEdgeRA, justEdgeDec)
|
||||
|
||||
ipix = healpy.ang2pix(nside, theta, phi)
|
||||
np.put(flagMap, ipix, 1)
|
||||
for i in ipix:
|
||||
flagMap[i] += 1
|
||||
#np.put(flagMap, ipix, 1)
|
||||
|
||||
healpy.write_map(outputDir+"/flagged_galaxies.fits", flagMap,
|
||||
overwrite=True,
|
||||
dtype=np.dtype('float64'))
|
||||
|
||||
|
||||
allGalMap = np.zeros(len(contourMap))
|
||||
phi, theta = convertAngle(RA, Dec)
|
||||
|
||||
ipix = healpy.ang2pix(nside, theta, phi)
|
||||
for i in ipix:
|
||||
allGalMap[i] += 1
|
||||
#np.put(allGalMap, ipix, 1)
|
||||
|
||||
healpy.write_map(outputDir+"/all_galaxies.fits", allGalMap,
|
||||
overwrite=True,
|
||||
dtype=np.dtype('float64'))
|
||||
|
||||
|
||||
# # output galaxy edge flags
|
||||
# edgeFile = open(edgeGalFile, "w")
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue