pacificclimate / data-prep-actions

Data Preparation actions - record of ephemera used to prepare data for PCIC data portals and other tools
0 stars 0 forks source link

updated stored query script to support multiple baselines #44

Open corviday opened 4 years ago

corviday commented 4 years ago

We'd like to shift the plan2adapt baseline climatology from 1961-1990 to 1971 - 2000. PCIC's standard baseline climatology is now 1971-2000. The percentileanomaly API lets the user specify whatever baseline they want as long as that baseline is present in the stored queries, and we have a full set of 1971-2000 anusplin data, so the main issue is changing what baseline we have stored queries for.

I think the smoothest way to do this would be to modify the stored query script to allow it to store results for both baselines. Then we'd have a period where the backend could provide either baseline upon request, and we could seamlessly switch the front end whenever it made sense to.

rod-glover commented 3 years ago

I agree.