MetOffice / MetOffice/CSET

Populating json colorbar file with environmental variables

Open
#949 8 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
33
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
30

Description

Currently, json entries are fixed for specific variables (where cmap is defined, along with min/max value for colorbar). Some diagnostics much need adaptive colorbar ranges, such as the age of air diagnostic. This colorbar will extend from 0 to the length of the forecast, defined as $CSET_ANALYSIS_PERIOD. Is there a way we can use $CSET_ANALYSIS_PERIOD in the json and when reading this in the plot operator, it fills this with the appropriate environment value?

also addressed here: #1139

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the plot operator's JSON colorbar reader and how it currently handles fixed cmap/min/max entries; inspect where CSET_ANALYSIS_PERIOD is available in the runtime environment. Done means an environment reference in the JSON resolves to the forecast length for adaptive colorbar ranges while existing fixed ranges continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.