Skip to content

Encountered CoordinateMultiDimError at area_statistics when trying to plot timeseries plots #2668

Answered by stacyqxz
stacyqxz asked this question in Q&A
Discussion options

You must be logged in to vote

So given fx_variable didn't work and the tripolar ocean grids couldn't be collapsed over lat and lon, I found that the output of a preprocessor as follows is 2D + time.

  siconc_djf_change_mapping: &siconc_preproc
    regrid:
      target_grid: 1x1
      scheme: nearest
    extract_region:
      start_longitude: -145.5
      end_longitude: -44.5
      start_latitude: 35.5
      end_latitude: 89.5
    extract_season:
      season: DJF
    seasonal_statistics:
      operator: mean
    multi_model_statistics:
      span: full
      statistics: [mean]
      keep_input_datasets: true

In this way, I was able to do cube.collapsed(['lat', 'lon'], iris.analysis.MEAN) in the diagnostic script with…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@stacyqxz
Comment options

@zklaus
Comment options

@stacyqxz
Comment options

@zklaus
Comment options

@stacyqxz
Comment options

Comment options

You must be logged in to vote
1 reply
@zklaus
Comment options

Answer selected by stacyqxz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants