From 266fd58263cbaa4c192bbfad60d1b51955ac1d14 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Wed, 13 Sep 2023 10:22:59 -0700 Subject: [PATCH] Change default Allsky tile size to 64 and add check for power-of-two. --- python/lsst/pipe/tasks/hips.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/lsst/pipe/tasks/hips.py b/python/lsst/pipe/tasks/hips.py index 6718b1e2f..eb604aabc 100644 --- a/python/lsst/pipe/tasks/hips.py +++ b/python/lsst/pipe/tasks/hips.py @@ -51,6 +51,8 @@ from lsst.afw.geom import makeHpxWcs from lsst.resources import ResourcePath +from .healSparseMapping import _is_power_of_two + class HighResolutionHipsConnections(pipeBase.PipelineTaskConnections, dimensions=("healpix9", "band"), @@ -829,8 +831,9 @@ class GenerateHipsConfig(pipeBase.PipelineTaskConfig, ) allsky_tilesize = pexConfig.Field( dtype=int, - doc="Allsky.png tile size. Must be power of 2.", - default=512, + doc="Allsky tile size; must be power of 2. HiPS standard recommends 64x64 tiles.", + default=64, + check=_is_power_of_two, ) png_gray_asinh_minimum = pexConfig.Field( doc="AsinhMapping intensity to be mapped to black for grayscale png scaling.",