/* * This file is part of Healpix_cxx. * * Healpix_cxx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Healpix_cxx is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Healpix_cxx; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * For more information about HEALPix, see http://healpix.jpl.nasa.gov */ /* * Healpix_cxx is being developed at the Max-Planck-Institut fuer Astrophysik * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt * (DLR). */ /* * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Max-Planck-Society * Author: Martin Reinecke */ #include "healpix_map.h" using namespace std; template void Healpix_Map::Import_degrade (const Healpix_Map &orig, bool pessimistic) { planck_assert(nside_*to_xyf)(m,x,y,f); int hits = 0; double sum = 0; for (int j=fact*y; j(orig.map[opix],Healpix_undef)) { ++hits; sum += orig.map[opix]; } } map[m] = T((hits::Import_degrade (const Healpix_Map &orig, bool pessimistic); template void Healpix_Map::Import_degrade (const Healpix_Map &orig, bool pessimistic); template void Healpix_Map::minmax (T &Min, T &Max) const { Min = T(1e30); Max = T(-1e30); for (int m=0; m(val,Healpix_undef)) { if (val>Max) Max=val; if (val::minmax (float &Min, float &Max) const; template void Healpix_Map::minmax (double &Min, double &Max) const;