Skip to content

Add auto option for interpolate_target_resolution to adapt to plot domain #103

@JamesVarndell

Description

@JamesVarndell

Is your feature request related to a problem? Please describe.

When plotting with contour(f), complex grids (reduced Gaussian, ocathedral, HEALPix) are currently interpolated to a fixed resolution of 0.1° (configurable via the interpolate_target_resolution schema key).

This works well for small domains, but is inefficient for global or large-scale plots where we do not gain any visual benefit from being at such a high resolution.

Describe the solution you'd like

Introduce a new option:

  • interpolate_target_resolution = "auto"
  • When enabled, the interpolation should automatically select a target resolution based on the domain extent.
  • The behavior could mirror the way coastline resolution is chosen dynamically.

The benefits of this would be:

  • Faster plotting for large/global datasets.
  • Less manual tuning required by users.

Describe alternatives you've considered

No response

Additional context

No response

Organisation

ECMWF

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions