Skip to content

dquesadacr/CORDEX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plotting CORDEX files

This was written to help students from the Hydroscience and Engineering Master’s degree at TU Dresden with their theses, but would be glad if it reaches someone else who needs it. Feel free to contact me: Dánnell Quesada.

Issue

The issue about plotting these RCMs files is the rotation embedded in them and how to visualize it with R.

Here you can find the CORDEX domain description, with the visualization of how it should look like. There is an error, or simply not updated, in the case of Central America (CAM), where it states that the amount of pixels in y (Ny) is 113, but in the files you will find 139. Please check for the other regions of interest.

In the following table, you can find the summarised info about the rotation for all the domains. It is found here, page 10.

rotation info

R script

Download this whole repository. It has some example netCDF files of different variables and domains to prove its consistency, please let me know if it does not work for some CORDEX files.

To start playing with it open the CORDEX_plot.R file, add a line after the libraries (install them first) with something like this to where you downloaded this repository (if the working directory is not properly set when opening the file).

setwd("/path/to/git/repo")

And then run the script. The images should be rendered on the folder plots/. I recommend you to not only run it but also play with it, grasp what its written there, be curious. Note that only the first time step is being plotted. It is also quite basic, go ahead and improve it (please share it).

For this script I used info from here for the coordinate transformation and this for plotting rasters in ggplot2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages