geco-bern / ingestr

Data ingest for points (given longitude, latitude, and required dates) from large global files or remote data servers and create time series at user-specified temporal resolution.
https://geco-bern.github.io/ingestr
42 stars 21 forks source link

MODIS years download #16

Closed stineb closed 2 years ago

stineb commented 2 years ago

When getting the "raw" data using MODISTools::mt_subset, we should get all available dates' data. Then, the the daily interpolated and gapfilled data can be reduced to years needed. Otherwise, we download raw data each time we use a different years specification.

This affects this line.

khufkens commented 2 years ago

Keep in mind that data are non-static, but we're always at least a year behind on fluxes so not dramatic. This also relates to the priors issue as mentioned here.

https://github.com/computationales/ingestr/issues/28

khufkens commented 2 years ago

Fix by https://github.com/khufkens/ingestr/commit/f191f89e53f9f907511b4175614b3ecf8f81d132

will merge with next pull request