Difference between revisions of "Using R to analyze GEOS-Chem data"

From Geos-chem
Jump to: navigation, search
m
(Major update)
Line 1: Line 1:
 
On this page we include a tutorial about how to use the R programming language to analyze GEOS-Chem data.
 
On this page we include a tutorial about how to use the R programming language to analyze GEOS-Chem data.
  
'''''Amos Tai <amostai@cuhk.edu.hk> wrote (Jan 2013):'''''
+
'''''Amos Tai <amostai@cuhk.edu.hk> wrote (Dec 2017):'''''
  
I have prepared a tutorial for using R to analyze GEOS-Chem and atmospheric data in the package:
+
Over the years, I have written many functions in R to analyze/visualize atmospheric and geophysical data including GEOS-Chem inputs/outputs, e.g., regridding, plotting fields/vectors, spatial interpolation, temporal and regressional statistics, etc. I have also developed a tutorial, “R for Atmospheric Scientists”, via which one can easily learn the essence of using R for atmospheric and geophysical analyses. More recently, we have developed a Terrestrial Ecosystem Model in R (TEMIR). All of these materials can be found here:
  [https://dl.dropbox.com/u/2485687/R/R_Intro_for_Atmos_Sci.zip R_Intro_for_Atmos_Sci]
+
[http://www.cuhk.edu.hk/sci/essc/tgabi/tools.html http://www.cuhk.edu.hk/sci/essc/tgabi/tools.html]
with the tutorial R script file and test data:
+
  R_Intro_1.R
+
  R_Intro_2.R
+
  PM25_met_Ohio_201007.txt
+
  PM25_T_daily_US_201007.RData
+
and an introductory guide to R for MATLAB users:
+
  R_for_Matlab_Users.pdf
+
 
+
I have also written many R functions suitable for analyzing 2D and 3D GEOS-Chem, EPA and meteorological data in these source files (revised periodically):
+
  [https://dl.dropbox.com/u/2485687/R/get_geo.R get_geo.R] (for spatial analysis and visualization: e.g. interpolation, regridding, mapping, etc.)
+
  [https://dl.dropbox.com/u/2485687/R/get_met.R get_met.R] (for handling time series and meteorological data: e.g. moving average, monthly statistics, etc.)
+
  [https://dl.dropbox.com/u/2485687/R/get_stat.R get_stat.R] (for statistical and numerical methods: e.g. optimization, regression, cumulative probability, etc.)
+
  [https://dl.dropbox.com/u/2485687/R/get_EPA.R get_EPA.R] (for handling EPA air quality data)
+
The files include detailed instructions for each function. They can be used by sourcing in the R environment:
+
  > source('get_geo.R')
+
These functions will be revised and updated from time to time. Feel free to download and use!
+

Revision as of 15:12, 20 December 2017

On this page we include a tutorial about how to use the R programming language to analyze GEOS-Chem data.

Amos Tai <amostai@cuhk.edu.hk> wrote (Dec 2017):

Over the years, I have written many functions in R to analyze/visualize atmospheric and geophysical data including GEOS-Chem inputs/outputs, e.g., regridding, plotting fields/vectors, spatial interpolation, temporal and regressional statistics, etc. I have also developed a tutorial, “R for Atmospheric Scientists”, via which one can easily learn the essence of using R for atmospheric and geophysical analyses. More recently, we have developed a Terrestrial Ecosystem Model in R (TEMIR). All of these materials can be found here: http://www.cuhk.edu.hk/sci/essc/tgabi/tools.html