Add protection to ensure that preComputedMap
has the same NSIDE
as requested
#23
Labels
Milestone
preComputedMap
has the same NSIDE
as requested
#23
In the method of instantiating
HealpixTiles
usingpreComputedMap
, it is possible to instantiateHealpixTiles
with aNSIDE
different from the one used to writepreComputedMap
. There should be conditionals to ensure that different values result in raising aValueError
. The check could be related to checking the number of distinctipix
values in the preComputedMap. The problem is the number of distinct values may be smaller than what is obtained fromnside2npix
because for example the pixels associated with the Northern Hemisphere will not be represented. So, this requires some form of additional information being written out topreComputedMap
. Thus this also needs some work in OpSimSummary. That is represented in https://github.com/rbiswas4/OpSimSummary/issues/53The text was updated successfully, but these errors were encountered: