reagro / carob

Aggregating agronomic data
GNU General Public License v3.0
18 stars 28 forks source link

NEW DATASET : doi_10.7910_DVN_SGHJ3J.R #461

Closed Hopafela closed 1 month ago

Hopafela commented 1 month ago

The dataset may need your attention in some aspects highlighted as comments in the script.

rhijmans commented 1 month ago

Thanks. That looks good but there is indeed some work left to be done, and I do not have the time, so I have moved it to "_pending"

The most important variables in an experiment are the treatments. These need to be specified. The information is there (ore at least partly) in the "treatment" variable, but this needs to be unpacked into N_fertilizer, P_fertilzer, OM_applied, OM_type and perhaps more.

You can process the weather data. It should not be merged with the agronomic data. It should be passed to the wth argument in write_files. Something like this:

carobiner::write_files(path, dset, d, wth=w)

Also, instead of

 d1$longitude[d1$site=="Bougouni"]<- as.numeric("-7.48323")

You should do:

 d1$longitude[d1$site=="Bougouni"] <- -7.48323