geco-bern / FluxDataKit

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

Instructions for how to create rsofun drivers #8

Closed stineb closed 1 year ago

stineb commented 2 years ago

Let's say we have a list of sites and we want to create the rsofun driver object for this site set. What functions or scripts should be run in what sequence? Here, I found the instruction "Run the numbered scripts in order to generate the benchmark datasets". What numbered scripts? Where are they? Would be nice to have this as a vignette (Article on website). Thanks.

khufkens commented 2 years ago

sofunCalVal used to have these scripts, but given that there was a need to compare to old (original) data these were removed. i.e. these are your file which are renamed to the new format which you can see here:

https://github.com/computationales/sofunCalVal/blob/ccc4df799dbccbc23f56ee1e59219e49e23a714e/vignettes/p-model_run.Rmd#L42

For flux data kit you run everything in sequence here (still need to renumber but some is agnostic to this)

https://github.com/computationales/flux_data_kit/tree/main/data-raw

And then you run:

https://github.com/computationales/flux_data_kit/blob/main/data-raw/rscript_format_site_data.R

Currently this is set to daily drivers (not HH as this is too much data to deal with as one flat file and has other boundary conditions as well). This is an rscript which you can run on terminal (currently used as a job in rstudio).

Take note that this is only valid if you have matching oneflux / ameriflux / icos etc flux data available! This does not generate any drivers which scale to arbitrary global locations.

khufkens commented 1 year ago

At the end of vignette 3: data use.

End of workflow using downscaled data using fdk_format_drivers()

This runs now but I want provisions for side loading data on GECO system (new issue).