Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Processing data from micrometeorological Eddy-Covariance systems

NotificationsYou must be signed in to change notification settings

EarthyScience/REddyProc

Repository files navigation

CRAN_Status_BadgeR-CMD-check

Overview

REddyProc package supports processing (half)hourly data fromEddy-Covariance sensors.

There is an online-formular to use the functionality of the packageincluding description athttps://www.bgc-jena.mpg.de/bgi/index.php/Services/REddyProcWeb.

Installation

# Release stable version from CRANinstall.packages("REddyProc")# The development version from GitHub using devtools:# install.packages("devtools")devtools::install_github("EarthyScience/REddyProc")

The REddyProc~package requires a quite recent versions of the tidyversepackages. On encountering problems on installations with older versionsshould run the following code before installing REddyProc.

install.packages("tidyverse")update.packages(oldPkgs="dplyr")

Usage

A simple example performs Lookuptable-based gapfilling ofNet-Ecosystem-Exchange (NEE) and plotting a fingerprint plot of thefilled values.

library(REddyProc)#+++ Input data from csv (example needs to be downloaded)examplePath<- getExamplePath('Example_DETha98.txt',isTryDownload=TRUE)if (length(examplePath)) {EddyData<- fLoadTXTIntoDataframe(examplePath)}else {  warning("Could not find example text data file."      ," In order to execute this example code,"      ," please, allow downloading it from github."       ," Type '?getExamplePath' for more information.")# using RData version distributed with the package insteadEddyData<-Example_DETha98}#+++ If not provided, calculate VPD from Tair and rHEddyData$VPD<- fCalcVPDfromRHandTair(EddyData$rH,EddyData$Tair)#+++ Add time stamp in POSIX time formatEddyDataWithPosix<-EddyData %>%   filterLongRuns("NEE") %>%   fConvertTimeToPosix('YDH',Year='Year',Day='DoY',Hour='Hour')#+++ Initalize R5 reference class sEddyProc for processing of eddy data#+++ with all variables needed for processing laterEProc<-sEddyProc$new('DE-Tha',EddyDataWithPosix, c('NEE','Rg','Tair','VPD','Ustar'))#Location of DE-TharandtEProc$sSetLocationInfo(LatDeg=51.0,LongDeg=13.6,TimeZoneHour=1)##++ Fill NEE gaps with MDS gap filling algorithm (without prior ustar filtering)EProc$sMDSGapFill('NEE',FillAll=FALSE)##++ Export gap filled and partitioned data to standard data frameFilledEddyData<-EProc$sExportResults()##++ Example plots of filled data to screen or to directory \plotsEProc$sPlotFingerprintY('NEE_f',Year=1998)

Further examples are invignette(useCase)andvignette(DEGebExample)and further md-files of thevignettesdirectory.

Docker images

Docker images are provided that comprise rstudio, rocker/tidyverse, andREddyProc. There are different version for the latest push to github,for the version on CRAN and for specific tags starting from 1.1.4.

  • EarthyScience/reddyproc:latest
  • EarthyScience/reddyproc_cran
  • EarthyScience/reddyproc:tag

They are usually run with installed docker by typing at a shell:

docker run --rm -p 8787:8787 -e PASSWORD=REddyProc <imagename>

Then the loading urllocalhost:8787 in a browser window should bringup RStudio
(default username is rstudio and password was set to REddyProc), whereyou can type the above usage example.

For processing your own files in docker you need to mount localdirectories with the–mountoption, e.g.--mount type=bind,source=/home/twutz/devR,target=/home/rstudio/devR -e USERID=$UID

Reference

The methodology and benchmark ofREddyProc 1.1.3 is described in thefollowing paper:

Wutzler, T., Lucas-Moffat, A., Migliavacca, M., Knauer, J., Sickel, K.,Šigut, L., Menzer, O., and Reichstein, M. (2018): Basic and extensiblepost-processing of eddy covariance flux data with REddyProc,Biogeosciences, 15, 5015-5030,https://doi.org/10.5194/bg-15-5015-2018.

About

Processing data from micrometeorological Eddy-Covariance systems

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp