Open knutole opened 8 years ago
Use API for adding mask, uploading. Wait with GUI.
Tid/arbeid:
Totalt: 24 timer
Do this in API first, then GUI (if necessary) afterwards. Show added masks in GUI.
Need to add 1) raster mask, 2) topojson representation of mask, 3) historical scf data for mask; all at the same time to API.
Need to do it well the first time. No more patch work!
geojson
as mask for now. Implement topojson
when everything works perfectly.deformation
and snow
rasterNeed an options
object to control some of these options when uploading to API.
for filter, mask issues
extent
of geojson maskFeatureCollection
on importPublish
button)events
LICENCE.md
to all reposmaster
px
pile
testsapi-scripts
repoTid/arbeid:
Totalt: 25 timer
scf
for 2000-2015.
Line graphs therefore are created from data from both sources. 2016 from query data, 2014 from file data.
Each mask has different data - both for years 2000-2015 and 2016. So each mask must keep own dataset...
When calculating averages, the last unfinished year should not be part. Not a problem.
Line graphs should read data for relevant year.
Average graph should read all full-year data.
_prepareData
only needs to run once per mask.
_parseDates
only needs to run once per mask.
When adding mask (which happens on click right now, could be done beforehand), data is queried from server and file-data is added.
this._cache.mask[mask.id] = {
mma : [365...] // min, max, average of all full years
years : {
2016 : [], // queried data,
2015 : [], // data from file
2014 : [], // data from file
}
}
Filter by mask
Tid/arbeid:
Totalt: 24 timer