The goal of angstroms is to provide easy access to Regional Ocean Modeling System (ROMS) output for R.
You can install the development version of angstroms from github with:
# install.packages("devtools") devtools::install_github("hypertidy/angstroms")
Angstroms aims to make working with ROMS output as easy as possible in R. Rather than re-map explicitly the complex curvilinear grid in ROMS, the approach simplifies this by:
In combination these allow extraction and query from the ROMS output very easily.
The ability to deal with time series across multiple files is still in development, though can be used simply now with standard loops.
Some more examples:
Here are some notes on lessons learned, all is work in progress.
romsdata(), to ensure that
ncdf = TRUEis consistent, and to reduce the amount of extent-setting and orienting code
set_indextenton a brick/raster to ensure it is in index-extent, again to reduce code duplications
ncdf=TRUEis required, because on some systems we might fall back to rgdal which won't support NetCDF properly (can be done with SDS strings or VRT but that's a hassle)
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.