Closed jameshiebert closed 4 years ago
Annual Cycle: no
Long-Term Average:
Model Context:
Change from Baseline: is a set of Annual Cycle graphs: no
Snapshot: no
Summary:
This graph presents the average value only (not even the median, if I understand correctly). But its basic orientation, data vs. time period, is what we are after.
The "average" referred to here is both 1.) the chronological averaging done to make a climatology and 2) the spatial averaging over the area selected by the user. The mean is used for both of those operations, by the /data
API, and implicitly by the /percentileanomaly
API, which relies on canned /data
queries. If we don't want spatial and temporal means for the p2a graphs, we may need a new API as well.
The Long Term Average graph displays the results for a single call to the /data
API - all points that correspond to a specific variable, model, time resolution, time index, selected area, and emissions scenario. So there's one point per climatology. The Model Context graph displays the exact same thing, but for all available models (it makes a separate call to /data
for each model but holds all other parameters the same).
I think /percentileanomaly
would do the job here, except that it lacks 25th and 75th percentiles. Can you verify my understanding? :
/percentileanomaly
returns temporal (over 30 year period) and spatial (over selected region) average values. This is what we want for the P2A graphs as well. Returns temporal (over 30 year period) and spatial (over selected region) average values, which is what we want in for the graphs as well.
Yes.
The spatial and temporal averages are formed first, then the ensemble stats.
Yes, per-model spatial and temporal averages are formed first, then percentiles calculated from the per-model results.
We would only have to extend the canned results by adding 25th and 75th percentiles.
No additional canning would be needed. The canned results are the per-model results for each of the PCIC12 models. Percentiles are calculated from them on the fly when requested, so any percentile may be requested.
We have, or could add, a query param for the requested sets of percentiles. (OTOH, it might be better just to get them all, and let both Summary and Graphs share the exact same datasets, i.e., the same requests. Caching, etc.)
Yes, we have a query parameter for specifying which percentiles are requested.
TL;DR: your understanding is correct on all counts.
Content of graphs in P2A Classic
Text:
Notes:
Implications for P2A v2
Notes:
Requirements:
percentileanomaly
backend can already deliver this. If not, it's a simple extension.Suggestions: