[New Project] advr: an R package for the scientific research on trace gas advection flux density

in #utopian-io6 years ago (edited)

Repo

https://github.com/pzhaonet/advr

Background

Carbon dioxide (CO~2~) is one of the key green house gases which play an important role in the global climate change. In academia, the sources and sinks of CO~2~ are estimated with the flux density, e.g. the amount of CO~2~ passing through a unit area in a unit time. Estimates of net ecosystem CO~2~ exchange have been attracting a lot of attention. The research on the advection flux takes care of the contribution of the advection term to the CO~2~ balance.

The advection measurement is very complex. A typical advection measurement consists of horizontal and vertical profiles of the CO~2~ mixing ratio, the air temperature, the air humidity, the air pressure, as well as chamber flux measurement. A datalogger and a microcontroller work together, which control many solenoid valves to switch the sample lines, save the data. Most of the data are recorded every a few seconds, continuously lasting several days, which makes it difficult to check the data quality and the status of the instruments.

Figure 1. Sketch of a typical advection measurement. I image the man with a cup of coffee should be me. But who should be the woman...

What is the project about?

advr is an open source R package for the advection measurement of trace gases. Currently, the version 0.0.0 has three components:

  • a logger program for controlling the data logger CR1000
  • a microcontroller program for controlling Arduino MEGA2560.
  • R functions to process the raw meteorological and ecological data.

An output of advr is shown in Figure 2.

Figure 2. A demo output of advr.

Technology Stack

steemr is developed in R language. The data logger program is written with the CRBasic language. The microcontroller program is composed of functions written in C/C++.

Roadmap

In the future, I am going to add much more features to advr, such as

  • quality control of the raw advection flux data,
  • automatic calculation of the advection flux,
  • improvement of the chamber flux calculation with the state-of-art techniques,
  • automatic visualization of quality control result and flux components (Figure 3) with a single click,
  • building a user-friendly web UI for those who knows nothing of R language.

Figure 3. One of the future plans: Visualization of the flux components of an advection measurement with a single click.

How to contribute?

Anyone can get in touch with me by leaving me a reply on steem @dapeng or on https://github.com/pzhaonet/advr.

GitHub Account

https://github.com/pzhaonet

Sort:  

Thank you for your contribution. As far as I understand, the package is about data processing (from CSV files) and plot them in R graphs, so in order to use this package, the data needs to be prepared in the desired format as shown in the excel files?

In terms of software engineering, you may not want to keep the header in a separate .csv file and I believe this can be achieved by skiping the csv header.

From your commit history, I can understand that advr_backup.r is your original code that you developed some time ago when you were doing research (together with the date information in arduino.ino), and in this contribution, your main task is wrapping these functions in a R library.

Re-uploading the old project is strongly not recommended by @utopian-io however, on the other hand, I can see this is a good example of combining the software and hardware (embedded arduino programming).

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Loading...

Hey @justyy
Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments.

Contributing on Utopian
Learn how to contribute on our website.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

软硬结合,厉害!

你也来。

有兴趣,但太专业了,我功力不够呀,怕是玩不转:)

Hey @dapeng
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64058.80
ETH 3150.15
USDT 1.00
SBD 3.99