Precipitation layer bug fixes

> I started looking at rain depth from these 6 schools in New Zealand as
seen on 2003-03-12. The table  of their rain depth data for 2003-02-01
through 2003-08-01 looked good. The graph of 6 schools said  invalid
data. Graphs for the individual schools were fine. When I plotted 5
schools, the key for the blue  color is partially off the left margin of
the graph. I tried this with five and six other schools and got the same
result.

Graph of the 6th school has invalid data, problem is found: we had 5 max
data set, and preset 5 colors, the 6th color is missing, that generates
invalid data set. I added the 6th color and the graph with 6 data set is
now valid

> When I plotted 5 schools, the key for the blue color is partially off
the left margin of the graph: now that we have 6 data set successfully
ploted, the 5th axis is shifted towards the left, and 6th is shifted
towards the right, there is no way for me to shift those axis back,
since the plot is generate by fusion chart. I guess their multiplot is
not designed for anything that has more than 4 sets of data on the same
plot. Would you want me to limit the plot to max 4 plots?

> I looked at a table of precipitation measurements for Norfolk
Elementary School for 2003-02-01 through  2003-06-08. The table is
consistent in having zeros in the columns for New Snow Depth and Total 
Liquid Equivalent when the value was zero, but the Ran Depth column
shows as blank when there  is no occurrence. I think the zeros should be
shown in all three columns. Blank tends to connote no  measurement was
taken on that day. When I added the rain depth layer, there is no point
for this school  on 2003-05-10. I thought we agreed to show points for
zero rain depth when there was a report of no  occurrence or zero; I
think this is needed. Zeros are mapped for new snow depth.

For the 0 on rain depth problem, viz_rain_depth columns from
dv_precipitations are returning blank when there's no occurrence. the
dv_ logic needs updating. here is the associate query

select * from dv_precipitations where site_id = 18695 and measured_at >
'02-01-2003'::timestamp and measured_at > '06-08-2003'::timestamp


> It gives New Snow Depth but not Rain Depth or Liquid Equivalent. All
three should be given even when  the values are zero. When I clicked on
a school that had non-zero rain depth – Ferson Creek Elementary  School
– both rain and new snow depth were given even though the new snow depth
was zero.

problem identified, i actually found this as a system wide bug that some
of the fields were missing from the popup balloon. Fixed

>A school with missing new snow depth still shows -9 when one clicks on
the school to pull up its  information.

I have done special -9 handling on plots only, and I have not done
special -9 handling on the popup menu. This will be added.

>It says water body pH.

Fixed.

> Also the pH legend is still shades on a single color. I believe I have
asked for a stronger color variation for  all pH legends and that they
all be the same.

Fix on the way
fixing ph case popup balloon