MetOffice / MetOffice/CSET

Handling curvilinear grids for plotting

Open
#2,213 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
33
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
30

Description

Some data output from ML (FastNetUK), when unflatted, is on a curvilinear grid (where latitude, longitude is a 2D array, and they both vary with latitude/longitude).

Options include regridding to a rectilinear grid as part of the read.py (slow).
Alternative is to be able to handle this through into plot.py. The latitude/longitude arrays need to be explicitely passed to pcolormesh, so we would need some logic to see if the grid is curvilinear.

If curvilinear, latitude and longitude dimensions are just monotonic integers 0... ndim, with 2D auxiliary latitude/longitude coordinates containing the rectilinear grid layout.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading read.py and plot.py to trace how latitude and longitude coordinates reach plotting, then inspect the pcolormesh call. Determine how the code identifies 2D auxiliary latitude/longitude coordinates and preserves existing rectilinear behavior. Done means curvilinear grids from unflattened FastNetUK output can be plotted with their explicit coordinates.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.