Skip to content

Use R to turn a data frame with biological dataset into a four dimensional array and save in a NetCDF file.

License

Notifications You must be signed in to change notification settings

EMODnet/EMODnet-Biology-products-erddap-demo

Repository files navigation

Create a EMODnet-Biology data product as NetCDF

Funding Binder

Demo showing how to turn a data frame with biological presences and absences into a four dimensional array and save in a NetCDF file using the R programming language.

Workarounds for when the data is too large to be read into memory at once are shown.

Demo

The demo can be read online as a HTML document at: https://emodnet.github.io/EMODnet-Biology-products-erddap-demo/

If you clone this repository, you can read the demo from: ./demo/demo.Rmd

If you don't want to download the repository, you can run the demo in a RStudio session that will open in your browser using binder in this link: https://mybinder.org/v2/gh/EMODnet/EMODnet-Biology-products-erddap-demo/HEAD?urlpath=rstudio

Render

To render the html document do:

rmarkdown::render(input = "./demo/demo.Rmd", knit_root_dir = getwd(), output_file = "index.html", output_dir = "./docs/")

Citation

Fernández-Bejarano, Salvador (2022). Create a EMODnet-Biology data product as NetCDF. Consulted online at https://github.com/EMODnet/EMODnet-Biology-products-erddap-demo on YYYY-MM-DD.

License

MIT

About

Use R to turn a data frame with biological dataset into a four dimensional array and save in a NetCDF file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published