|
80 | 80 | Whether `esmpy` logging is enabled or not is determined by
|
81 | 81 | `cf.regrid_logging`. If it is enabled then logging takes place
|
82 | 82 | after every call. By default logging is disabled.""",
|
| 83 | + # subspace halos |
| 84 | + "{{subspace halos}}": """If a halo is defined via a positional argument, then each |
| 85 | + subspaced axis will be extended to include that many extra |
| 86 | + elements at each "side" of the axis. The number of extra |
| 87 | + elements will be automatically reduced if including the full |
| 88 | + amount defined by the halo would extend the subspace beyond |
| 89 | + the axis limits.""", |
83 | 90 | # ----------------------------------------------------------------
|
84 | 91 | # Method description substitutions (3 levels of indentation)
|
85 | 92 | # ----------------------------------------------------------------
|
|
613 | 620 | "{{to_size: `int`, optional}}": """to_size: `int`, optional
|
614 | 621 | Pad the axis after so that the new axis has the given
|
615 | 622 | size.""",
|
| 623 | + # subspace config options |
| 624 | + "{{config: optional}}": """config: optional |
| 625 | + Configure the subspace by specifying the mode of |
| 626 | + operation (``mode``) and any halo to be added to the |
| 627 | + subspaced axes (``halo``), with positional arguments |
| 628 | + in the format ``mode``, or ``halo``, or ``mode, |
| 629 | + halo``, or with no positional arguments at all. |
| 630 | +
|
| 631 | + A mode of operation is given as a `str`, and a halo as |
| 632 | + a non-negative `int` (or any object that can be |
| 633 | + converted to one): |
| 634 | +
|
| 635 | + ============== ====================================== |
| 636 | + *mode* Description |
| 637 | + ============== ====================================== |
| 638 | + Not provided If no positional arguments are |
| 639 | + provided then assume the |
| 640 | + ``'compress'`` mode of operation with |
| 641 | + no halo added to the subspaced axes. |
| 642 | +
|
| 643 | + ``mode`` Define the mode of operation with no |
| 644 | + halo added to the subspaced axes. |
| 645 | +
|
| 646 | + ``mode, halo`` Define a mode of operation, as well as |
| 647 | + a halo to be added to the subspaced |
| 648 | + axes. |
| 649 | +
|
| 650 | + ``halo`` Assume the ``'compress'`` mode of |
| 651 | + operation and define a halo to be |
| 652 | + added to the subspaced axes. |
| 653 | + ============== ======================================""", |
| 654 | + # return_esmpy_regrid_operator |
| 655 | + "{{return_esmpy_regrid_operator: `bool`, optional}}": """return_esmpy_regrid_operator: `bool`, optional |
| 656 | + If True then do not perform the regridding, rather |
| 657 | + return the `esmpy.Regrid` instance that defines the |
| 658 | + regridding operation.""", |
616 | 659 | # ----------------------------------------------------------------
|
617 | 660 | # Method description substitutions (4 levels of indentation)
|
618 | 661 | # ----------------------------------------------------------------
|
|
663 | 706 | The removed CFA-netCDF file name substitution. If the
|
664 | 707 | substitution was not defined then an empty dictionary
|
665 | 708 | is returned.""",
|
| 709 | + # subspace valid modes Field |
| 710 | + "{{subspace valid modes Field}}": """Valid modes are: |
| 711 | +
|
| 712 | + * ``'compress'`` This is the default. |
| 713 | + Unselected locations are removed to create the |
| 714 | + subspace. If the result is not hyperrectangular |
| 715 | + then the minimum amount of unselected locations |
| 716 | + required to make it so will also be specially |
| 717 | + selected. Missing data is inserted at the |
| 718 | + specially selected locations, unless a halo has |
| 719 | + been defined (of any size, including 0). |
| 720 | +
|
| 721 | + * ``'envelope'`` |
| 722 | + The subspace is the smallest hyperrectangular |
| 723 | + subspace that contains all of the selected |
| 724 | + locations. Missing data is inserted at unselected |
| 725 | + locations within the envelope, unless a halo has |
| 726 | + been defined (of any size, including 0). |
| 727 | +
|
| 728 | + * ``'full'`` |
| 729 | + The subspace has the same domain as the original |
| 730 | + construct. Missing data is inserted at unselected |
| 731 | + locations, unless a halo has been defined (of any |
| 732 | + size, including 0). |
| 733 | +
|
| 734 | + .. note:: Setting a halo size of `0` differs from not |
| 735 | + not defining a halo at all. The shape of the |
| 736 | + returned field will always be the same, but |
| 737 | + in the former case missing data will not be |
| 738 | + inserted at unselected locations (if any) |
| 739 | + within the output domain.""", |
| 740 | + # subspace valid modes Domain |
| 741 | + "{{subspace valid modes Domain}}": """Valid modes are: |
| 742 | +
|
| 743 | + * ``'compress'`` This is the default. |
| 744 | + Unselected locations are removed to create the |
| 745 | + subspace. If the result is not hyperrectangular |
| 746 | + then the minimum amount of unselected locations |
| 747 | + required to make it so will also be specially |
| 748 | + selected. |
| 749 | +
|
| 750 | + * ``'envelope'`` |
| 751 | + The subspace is the smallest hyperrectangular |
| 752 | + subspace that contains all of the selected |
| 753 | + locations.""", |
666 | 754 | }
|
0 commit comments