Skip to content

Commit fb4062c

Browse files
committed
dev
1 parent 5d4ffc7 commit fb4062c

5 files changed

Lines changed: 321 additions & 97 deletions

File tree

cf/constants.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,31 @@
557557
},
558558
}
559559

560+
# --------------------------------------------------------------------
561+
# CF cell methods
562+
# --------------------------------------------------------------------
563+
cell_methods = set(
564+
(
565+
"point",
566+
"sum",
567+
"maximum",
568+
"maximum_absolute_value",
569+
"median",
570+
"mid_range",
571+
"minimum",
572+
"minimum_absolute_value",
573+
"mean",
574+
"mean_absolute_value",
575+
"mean_of_upper_decile",
576+
"mode",
577+
"range",
578+
"root_mean_square",
579+
"standard_deviation",
580+
"sum_of_squares",
581+
"variance",
582+
)
583+
)
584+
560585

561586
# --------------------------------------------------------------------
562587
# Logging level setup

cf/docstring/docstring.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,17 @@
578578
geographical nearest-neighbour operations such as
579579
decreasing the refinement level.
580580
581-
For a Multi-Order Coverage (MOC), where pixels with
582-
different refinement levels are stored in the same
583-
array, the indexing scheme has a unique index for each
584-
cell at each refinement level. The "nested_unique"
585-
scheme for an MOC indexes pixels within each
586-
refinement level with the nested scheme, but
587-
geographically close pixels at different refinement
588-
levels do not have close indices.""",
581+
A Multi-Order Coverage (MOC) has pixels with different
582+
refinement levels stored in the same array. The
583+
"nested_unique" scheme for an MOC has a unique index
584+
for each cell at each refinement level, such that
585+
within each refinement level a nested-type scheme is
586+
employed. In the "nested_unique" scheme, pixels at
587+
different refinement levels inside a single coarser
588+
refinement level cell can have widely different
589+
indices. For each refinment level *n*, the
590+
"nested_unique" indices are in the range
591+
:math:`4^{(n+1)}, ..., 4^{(n+2)}-1`.""",
589592
# ----------------------------------------------------------------
590593
# Method description substitutions (4 levels of indentation)
591594
# ----------------------------------------------------------------

cf/domain.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def create_healpix(
278278
Sphere. The Astrophysical Journal, 2005, 622 (2), pp.759-771.
279279
https://dx.doi.org/10.1086/427976
280280
281+
M. Reinecke and E. Hivon: Efficient data structures for masks
282+
on 2D grids. A&A, 580 (2015)
283+
A132. https://doi.org/10.1051/0004-6361/201526549
284+
281285
.. versionadded:: NEXTVERSION
282286
283287
.. seealso:: `cf.Domain.create_regular`,
@@ -339,7 +343,7 @@ def create_healpix(
339343
Coordinate conversion:refinement_level = 4
340344
Auxiliary Coordinate: healpix_index
341345
342-
>>> d = cf.Domain.create_healpix(8, "nested_unique", radius=6371000)
346+
>>> d = cf.Domain.create_healpix(4, "nested_unique", radius=6371000)
343347
>>> d.dump()
344348
--------
345349
Domain:

0 commit comments

Comments
 (0)