-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporal dimension in calc_<> functions #112
Comments
My suggestions to improve this situation:
|
|
In calc_ pipes it would be easier to distinguish spatiotemporal points from spatial points 🤔 (eventually include the inflate function from spatial pipe to spatiotemporal one): If the goal is to create a datatable to feed AI models:
If the goal is to store efficiently the calculated points:
|
I think an option is updating the static calc functions to have an Either way refactoring the |
Something like this
|
Yes it is also an interesting solution. I would still make the inflate() function available to Amadeus users because they might be interested to use it separately. For eg, you store the non-inflated sample, reopen it, and use inflate function without recalculating everything. |
Sorry I am late for the discussion. As @mitchellmanware suggested, I think that a hands-on solution by adding several lines into |
As a side note, if we are aiming to make |
I've implemented my idea (my comment above) on my own project because it was the most optimized and flexible set up. It works pretty well, I'll be able to share my feedback if you are interested. |
I am writing process and calc functions for other covariates that I need in my own project.
I would like to open a discussion on the spatio x temporal case.
Let's say I want to create a model of AI to predict temperature at several locs x timestamps. I need to extract spatial covariates (easy) but also spatio x temporal ones.
In my ideal world, to do so:
locs
paramcalc_
functions to add columns for each covariate (they can be spatial or spatiotemporal). Thecalc_
functions for spatio-temporal covariates handle the "time" dimension properly, depending on the user's criteria (for eg: if geophysical model outputs are available every 3 days, and my predictions are every day:calc_
downscales the temporal resolution. It can also do the opposite if I have hourly data).It would look like this:
For now,
calc_
functions are not optimally designed for temporal dimension. It is implied thatlocs
is a spatial dataframe without time column. When calculating spatio-temporal covariates, it extracts all the time series offrom
. But iflocs
already has a time column (for eg created after calculating another spatio-temporal covariate), it becomes a mess.As a summary, I see the following limitations with our current version of
calc_
:calc_
functions in a row (I mean give the output of a calc function to the input of another calc function) after dealing with spatio-temporal covariatesIt is not urgent of course, but I think it would be interesting to address this discussion in the future for a better use of amadeus.
The text was updated successfully, but these errors were encountered: