ncsco / pinemap-dss-help

Issue tracker for PINEMAP DSS
0 stars 0 forks source link

Time series bugs and suggestions #98

Closed daviswx closed 8 years ago

daviswx commented 8 years ago

At the annual meeting, I noticed a bug with the time series:

image

Also, we have a couple of suggested updates based on discussions at the meeting. These will help better accommodate the model error visualization.

At some point, I may also want to sort out the z-index updating so the model error lines and band appear above the data. I tried this before but the time series tooltips also appeared below these bands, and you couldn't hover over the parts of the bars that were obscured by the error band.

daviswx commented 8 years ago

One more bug I noticed with the time series:

image

hadinon commented 8 years ago

Hmmm interesting about the latter. What are your thoughts for how to handle that situation? I forget -- do we account for that on the maps?

daviswx commented 8 years ago

After checking all of the tools and my code, we are not filtering any of the Projected Change or Projected Average values on the maps or time series, even if the magnitude is greater than the historical observed value.

image

Here's the Projected Average time series for that Oconee County location. The end-of-century extreme value is given as 1.4 days, but it's actually -1.4 days, as you can see it hanging just below the 0 line.

image

Similarly, with the Summer Dryness tool, values are showing up even if they're less than zero:

image

So then question then becomes whether we should limit the map and time series values to realistic bounds. Certainly it makes sense not to show negative numbers of days or a negative Summer Dryness Index, but I do have two main concerns about limiting this value:

a) It might seem like we're manipulating the data.

b) It may throw off the shading on the time series bars (i.e., the more opaque section corresponding to the mean value may become misaligned) since those bars are drawn based only on the max and min bounds.

But I suppose we should decide on a way to handle this since it would affect multiple tools, including the ecological model output (e.g., the future periods could show negative green weight).

daviswx commented 8 years ago

Also, here's one other time series bug I noticed:

image

daviswx commented 8 years ago

Ryan's recommendation was to check each value after pulling it via an OPeNDAP call and limit it to either 0 or the magnitude of the historical average. He was not worried about the shading in the time series bars corresponding to the mean value being thrown off by this hard limit.

daviswx commented 8 years ago

Task list for items in this issue:

I am unable to replicate the other bug I noted a few posts up about the historical average values not showing correctly in the tooltips. I think that bug plus the model error-related browser errors I was getting this morning on the production site might have been because I didn't clear my cache (:tired_face:). Let me know if you notice those issues, otherwise I'll assume they're not actually problems.

daviswx commented 8 years ago

I just did a commit to the public site with some of today's bug fixes, and apparently GitHub decided to close this issue because I tagged it in the commit. I'm re-opening it since I'm still working on limiting the data to the historical average or zero.

That's taking a little longer than it might if I just put a band-aid on my code since I decided to combine several of the data retrieval files into one. That should make life a bit easier as we add other tools down the road.

daviswx commented 8 years ago

The code for pulling values via OPeNDAP calls for the climate tools has been condensed into one file. Also, the fix has been implemented for negative Projected Change values greater than the magnitude of the historical observed and Projected Average values less than zero.

I did a few spot checks, including the examples in the screenshots above, and all of them seem to be working correctly now.