| 1 |
/* |
| 2 |
* (C) Copyright 2013 ECMWF. |
| 3 |
* |
| 4 |
* This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 |
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 |
* In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 |
* granted to it by virtue of its status as an intergovernmental organisation |
| 8 |
* nor does it submit to any jurisdiction. |
| 9 |
*/ |
| 10 |
|
| 11 |
/// @file Latitudes.h |
| 12 |
/// @author Willem Deconinck |
| 13 |
/// @date Jan 2014 |
| 14 |
|
| 15 |
#pragma once |
| 16 |
|
| 17 |
#include <cstddef> |
| 18 |
|
| 19 |
namespace atlas { |
| 20 |
namespace grid { |
| 21 |
namespace spacing { |
| 22 |
namespace gaussian { |
| 23 |
|
| 24 |
/** |
| 25 |
* @brief Compute gaussian latitudes between North pole and equator |
| 26 |
* @param N [in] Number of latitudes between pole and equator (Gaussian |
| 27 |
* N number) |
| 28 |
* @param latitudes [out] latitudes in degrees |
| 29 |
*/ |
| 30 |
void gaussian_latitudes_npole_equator(const size_t N, double latitudes[]); |
| 31 |
|
| 32 |
/** |
| 33 |
* @brief Compute gaussian latitudes and quadrature weights between North pole |
| 34 |
* and equator |
| 35 |
* @param N [in] Number of latitudes between pole and equator (Gaussian |
| 36 |
* N number) |
| 37 |
* @param latitudes [out] latitudes in degrees |
| 38 |
* @param weights [out] quadrature weights |
| 39 |
*/ |
| 40 |
void gaussian_quadrature_npole_equator(const size_t N, double latitudes[], double weights[]); |
| 41 |
|
| 42 |
/** |
| 43 |
* @brief Compute gaussian latitudes between North pole and South pole |
| 44 |
* @param N [in] Number of latitudes between pole and equator (Gaussian |
| 45 |
* N number) |
| 46 |
* @param latitudes [out] latitudes in degrees (size 2*N) |
| 47 |
*/ |
| 48 |
void gaussian_latitudes_npole_spole(const size_t N, double latitudes[]); |
| 49 |
|
| 50 |
/** |
| 51 |
* @brief Compute gaussian latitudes and quadrature weights between North pole |
| 52 |
* and South pole |
| 53 |
* @param N [in] Number of latitudes between pole and equator (Gaussian |
| 54 |
* N number) |
| 55 |
* @param latitudes [out] latitudes in degrees (size 2*N) |
| 56 |
* @param weights [out] quadrature weights (size 2*N) |
| 57 |
*/ |
| 58 |
void gaussian_quadrature_npole_spole(const size_t N, double latitudes[], double weights[]); |
| 59 |
|
| 60 |
} // namespace gaussian |
| 61 |
} // namespace spacing |
| 62 |
} // namespace grid |
| 63 |
} // namespace atlas |