geco-bern / FluxDataKit

LEMONTREE flux data kit
https://geco-bern.github.io/FluxDataKit
2 stars 11 forks source link

Downsampling (DD) #24

Closed stineb closed 1 year ago

stineb commented 2 years ago

We will need data aggregated to daily for a lot of applications (some use also for also monthly or annual).

khufkens commented 2 years ago

FluxDataKit code is HH, output for rsofun will be daily. I will not invest time in monthly unless an actual use case is presented.

stineb commented 2 years ago

Ok daily is enough. But we should output daily data before transferring it to rsofun forcing format. This is to keep variables that are in the FLUXNET data but not used as forcing (e.g. quality control info as fraction of good (not gapfilled) data, wind speed, ...).

Also the remote sensing data should be offered at daily resolution, after cleaning and interpolating.

khufkens commented 2 years ago

There is no option to output daily values within the workflow of PLUMBER (X). The output for daily aggregates on a FLUXNET level are not mere means for the fluxes. These values are reprocessed using an explicit daily time step and can't be derived from HH values!

In short, although aggregation can be done for most values the aggregation of the fluxes will not be equivalent with FLUXNET products. Either the whole PLUMBER X workflow gets retooled to do DD values as well, or we accept no equivalence between FLUXNET DD and a downsampled PLUMBER X product.

khufkens commented 1 year ago

This is now covered by https://github.com/computationales/FluxDataKit/blob/main/R/fdk_downsample_fluxnet.R

downsamples to daily data.

Equivalence on part of GPP can be checked with: https://github.com/computationales/FluxDataKit/blob/main/analysis/02_HH_DD_flux_comparison.R

stineb commented 1 year ago

Script analysis/02_HH_DD_flux_comparison.R could not be run because the FLUXNET2015 files are not in "data-raw/flux_data/fluxnet2015/". Was the intention to add them there or should they be obtained in some other way? If so, add instructions?

khufkens commented 1 year ago

Moved to example:

https://computationales.github.io/FluxDataKit/articles/05_qaqc_downsampled_data.html