mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
added additional filter if galaxy sample extends beyond redshift slice of itnerest
This commit is contained in:
parent
4cf73f3c9a
commit
5f68298e43
1 changed files with 12 additions and 1 deletions
|
@ -919,8 +919,19 @@ int main(int argc, char **argv) {
|
||||||
voids[iGood++] = voids[iVoid];
|
voids[iGood++] = voids[iVoid];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iGood = 0;
|
||||||
|
for (iVoid = 0; iVoid < voids.size(); iVoid++) {
|
||||||
|
// just in case
|
||||||
|
if (args.isObservation_flag &&
|
||||||
|
voids[iVoid].redshift > args.zMax_arg) {
|
||||||
|
numNearZ++;
|
||||||
|
} else {
|
||||||
|
voids[iGood++] = voids[iVoid];
|
||||||
|
}
|
||||||
|
}
|
||||||
voids.resize(iGood);
|
voids.resize(iGood);
|
||||||
printf(" 4th filter: rejected %d below redshift boundaries\n", numNearZ);
|
printf(" 4th filter: rejected %d outside redshift boundaries\n", numNearZ);
|
||||||
|
|
||||||
// take only top-level voids
|
// take only top-level voids
|
||||||
numAreParents = 0;
|
numAreParents = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue