From b66da1d07859dfffcb4fcb78f30dde535af12a23 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Date: Tue, 6 Feb 2024 08:53:00 +0000 Subject: [PATCH] [skip ci] Update latest --- latest/_modules/mpas_analysis/sea_ice/time_series.html | 10 +++++++++- ...limatologySubtask.customize_masked_climatology.html | 2 +- ...matologySubtask.customize_remapped_climatology.html | 2 +- ...nalysis.shared.climatology.compute_climatology.html | 2 +- ...shared.climatology.compute_monthly_climatology.html | 2 +- ...pas_analysis.shared.plot.plot_vertical_section.html | 6 +++--- ...s.shared.plot.plot_vertical_section_comparison.html | 8 ++++---- latest/tutorials/dev_understand_a_task.html | 4 ++-- 8 files changed, 22 insertions(+), 14 deletions(-) diff --git a/latest/_modules/mpas_analysis/sea_ice/time_series.html b/latest/_modules/mpas_analysis/sea_ice/time_series.html index 88f4df889..4c003399b 100644 --- a/latest/_modules/mpas_analysis/sea_ice/time_series.html +++ b/latest/_modules/mpas_analysis/sea_ice/time_series.html @@ -691,10 +691,13 @@

Source code for mpas_analysis.sea_ice.time_series

indices to process. """ + config = self.config + chunkYears = config.getint('timeSeriesSeaIceAreaVol', 'chunkYears') + outFileNames = {} for hemisphere in ['NH', 'SH']: baseDirectory = build_config_full_path( - self.config, 'output', 'timeSeriesSubdirectory') + config, 'output', 'timeSeriesSubdirectory') make_directories(baseDirectory) @@ -713,6 +716,11 @@

Source code for mpas_analysis.sea_ice.time_series

startDate=self.startDate, endDate=self.endDate) + nTime = ds.sizes['Time'] + # chunk into 10-year seguments so we don't run out of memory + if nTime > 12 * chunkYears: + ds = ds.chunk({'Time': 12 * chunkYears}) + for hemisphere in ['NH', 'SH']: if hemisphere == 'NH': diff --git a/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_masked_climatology.html b/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_masked_climatology.html index 1a1e52125..45f3402a7 100644 --- a/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_masked_climatology.html +++ b/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_masked_climatology.html @@ -154,7 +154,7 @@

mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_maske
Parameters:
    -
  • climatology (xarray.Dataset) – The MPAS climatology data set that has had a mask added but has +

  • climatology (xarray.Dataset) – The MPAS climatology data set that has had a mask added but has not yet been remapped

  • season (str) – The name of the season to be masked

diff --git a/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_remapped_climatology.html b/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_remapped_climatology.html index 5d836e318..7d2a9c3bc 100644 --- a/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_remapped_climatology.html +++ b/latest/developers_guide/generated/mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_remapped_climatology.html @@ -153,7 +153,7 @@

mpas_analysis.shared.climatology.RemapMpasClimatologySubtask.customize_remap
Parameters:
    -
  • climatology (xarray.Dataset) – The MPAS climatology data set that has been remapped

  • +
  • climatology (xarray.Dataset) – The MPAS climatology data set that has been remapped

  • comparisonGridNames (str) – The name of the comparison grid to use for remapping.

  • season (str) – The name of the season to be remapped

diff --git a/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_climatology.html b/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_climatology.html index 439fcfb8e..650ce5628 100644 --- a/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_climatology.html +++ b/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_climatology.html @@ -157,7 +157,7 @@

mpas_analysis.shared.climatology.compute_climatology
Parameters:
    -
  • ds (xarray.Dataset or xarray.DataArray) – A data set with a Time coordinate expressed as days since +

  • ds (xarray.Dataset or xarray.DataArray) – A data set with a Time coordinate expressed as days since 0001-01-01 or month coordinate

  • monthValues (int or array-like of ints) – A single month or an array of months to be averaged together

  • calendar ({'gregorian', 'noleap'}, optional) – The name of one of the calendars supported by MPAS cores, used to diff --git a/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_monthly_climatology.html b/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_monthly_climatology.html index d9f42ac4a..4baab3f77 100644 --- a/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_monthly_climatology.html +++ b/latest/developers_guide/generated/mpas_analysis.shared.climatology.compute_monthly_climatology.html @@ -156,7 +156,7 @@

    mpas_analysis.shared.climatology.compute_monthly_climatology
    Parameters:
      -
    • ds (xarray.Dataset or xarray.DataArray) – A data set with a Time coordinate expressed as days since +

    • ds (xarray.Dataset or xarray.DataArray) – A data set with a Time coordinate expressed as days since 0001-01-01 or month coordinate

    • calendar ({'gregorian', 'noleap'}, optional) – The name of one of the calendars supported by MPAS cores, used to determine month from Time coordinate, so must be supplied if diff --git a/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section.html b/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section.html index 36850bfa7..ee6c931ac 100644 --- a/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section.html +++ b/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section.html @@ -149,7 +149,7 @@

      mpas_analysis.shared.plot.plot_vertical_section
      • config (instance of ConfigParser) – the configuration, containing a [plot] section with options that control plotting

      • -
      • field (xarray.DataArray) – field array to plot. For contour plots, xCoords and zCoords +

      • field (xarray.DataArray) – field array to plot. For contour plots, xCoords and zCoords should broadcast to the same shape as field. For heatmap plots, xCoords and zCoords are the corners of the plot. If they broadcast to the same shape as field, field will be bilinearly @@ -157,13 +157,13 @@

        mpas_analysis.shared.plot.plot_vertical_sectionfield, field is assumed to contain cell values and no interpolation is performed.

      • colorMapSectionName (str) – section name in config where color map info can be found.

      • -
      • xCoords (xarray.DataArray or list of xarray.DataArray, optional) – The x coordinate(s) for the field. Optional second +

      • xCoords (xarray.DataArray or list of xarray.DataArray, optional) – The x coordinate(s) for the field. Optional second and third entries will be used for a second and third x axis above the plot. The typical use for the second and third axis is for transects, for which the primary x axis represents distance along a transect, and the second and third x axes are used to display the corresponding latitudes and longitudes.

      • -
      • zCoord (xarray.DataArray, optional) – The z coordinates for the field

      • +
      • zCoord (xarray.DataArray, optional) – The z coordinates for the field

      • triangulation_args (dict, optional) – A dict of arguments to create a matplotlib.tri.Triangulation of the transect that does not rely on it being on a logically rectangular grid. The arguments rather than the triangulation itself are passed because diff --git a/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section_comparison.html b/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section_comparison.html index 5f42c422a..10960b549 100644 --- a/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section_comparison.html +++ b/latest/developers_guide/generated/mpas_analysis.shared.plot.plot_vertical_section_comparison.html @@ -149,16 +149,16 @@

        mpas_analysis.shared.plot.plot_vertical_section_comparison
        • config (instance of ConfigParser) – the configuration, containing a [plot] section with options that control plotting

        • -
        • modelArray (xarray.DataArray) – model and observational or control run data sets

        • -
        • refArray (xarray.DataArray) – model and observational or control run data sets

        • +
        • modelArray (xarray.DataArray) – model and observational or control run data sets

        • +
        • refArray (xarray.DataArray) – model and observational or control run data sets

        • diffArray (float array) – difference between modelArray and refArray

        • -
        • xCoords (xarray.DataArray or list of xarray.DataArray, optional) – The x coordinate(s) for the model, ref and diff arrays. Optional second +

        • xCoords (xarray.DataArray or list of xarray.DataArray, optional) – The x coordinate(s) for the model, ref and diff arrays. Optional second and third entries will be used for a second and third x axis above the plot. The typical use for the second and third axis is for transects, for which the primary x axis represents distance along a transect, and the second and third x axes are used to display the corresponding latitudes and longitudes.

        • -
        • zCoord (xarray.DataArray, optional) – The z coordinates for the model, ref and diff arrays

        • +
        • zCoord (xarray.DataArray, optional) – The z coordinates for the model, ref and diff arrays

        • triangulation_args (dict, optional) – A dict of arguments to create a matplotlib.tri.Triangulation of the transect that does not rely on it being on a logically rectangular grid. The arguments rather than the triangulation itself are passed because diff --git a/latest/tutorials/dev_understand_a_task.html b/latest/tutorials/dev_understand_a_task.html index f7d64a5ad..76ff43557 100644 --- a/latest/tutorials/dev_understand_a_task.html +++ b/latest/tutorials/dev_understand_a_task.html @@ -846,11 +846,11 @@

          3.5 customize_m AnalysisTask), and temperature and layer_thickness from the climatology dataset itself. As the docstring for customize_masked_climatology() states, climatology is -and xarray.Dataset. We know it has variables +and xarray.Dataset. We know it has variables timeMonthly_avg_activeTracers_temperature and timeMonthly_avg_layerThickness because we requested them back in the constructor of ClimatologyMapOHCAnomaly. -We compute the ohc as an xarray.DataArray that we return from +We compute the ohc as an xarray.DataArray that we return from this helper method.

          Back to customize_masked_climatology(), we have:

          def customize_masked_climatology(self, climatology, season):