I understand that Timeplot does not yet handle gaps in data.  Closely 
related, although not exactly the same, does Timeplot handle NoData 
values?  

For now, all I'm thinking is skipping these records when ingesting the 
data source.  For multiple column/variable data sources, each column 
would use the same NoData value but could be during different 
events/dates.  The solution would have to allow for dynamic ranges and 
count/sum/avg/difference type of functions to work only on non-NoData 
records.  (i.e., not simply hiding those records on the graph)

I was thinking of using the 'filter' parameter or directly editing the 
Timeplot.ColumnSource.prototype._process function.  I tried the latter 
with a simple edit (using 9999 as NoData value)

    while (iterator.hasNext()) {
        var event = iterator.next();
        var time = event.getTime();
        var value = this._getValue(event);
     if (value != "9999") {
        times[i] = time;
               
        if (!isNaN(value)) {
           if (value < min) {
               min = value;
           }
           if (value > max) {
               max = value;
           }   
            values[i] = value;
        }
     }
        i++;
    }



I got the following errors:


[Exception... "An invalid or illegal string was specified" code: "12" 
nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: 
"http://coastal.dgs.udel.edu/sites/timeplot/webapp/api/scripts/plot.js 
Line: 286"] code=12 INDEX_SIZE_ERR=1 DOMSTRING_SIZE_ERR=2

uncaught exception: An invalid or illegal string was specified 
(NS_ERROR_DOM_SYNTAX_ERR)
 ctx.lineTo(x,y);


Could have something to do with number of data vs date points but I'm 
not sure.  Has anyone tried this?  Any suggestions on what to watch out 
for or functions to edit?  Thanks.

- John

**************************************************
John Callahan
Geospatial Application Developer
Delaware Geological Survey, University of Delaware
227 Academy St, Newark DE 19716-7501
Tel: (302) 831-3584  
Email: [email protected]
http://www.dgs.udel.edu
**************************************************


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to