> > I wonder if this could be organized into > > a database accessor to get multiple columns, that results in a stream > of N values > > functions that accept N values to compute something else > (e.g. windchill from temp/wind). > > a function that takes a computing function and a stream >
This is pretty much what we have now. dbmanager is the first; xtypes.get_scalar() is the second; XTypeTable.get_series() is the third. What's missing is the ability to specify the N observation types. However, one could just assume them all. That is, XTypeTable.get_series() would just ask for all the data for a year, then call get_scaler(). Of course, that might require a lot of memory. You could relax that requirement a bit by doing the calculation in tranches --- perhaps a month's worth of data at a time --- then stitch together the pieces. Cameron: your comment that a savings of 100x would be needed for this to be useful is about right. But, database accesses are *very* expensive. I think you'd be surprised by the savings of reducing the number of db calls from 100k to one. -tk -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zECGVW%3D52pP6zp7f2qNM-13Op%2BvM8QqwLP9FVx7a4Rhsdg%40mail.gmail.com.
