Skip to content

Instantly share code, notes, and snippets.

View patchdynamics's full-sized avatar

House of Salt Marsh patchdynamics

View GitHub Profile
@xuanlongma
xuanlongma / nc2tiff.R
Last active March 30, 2024 20:01
From netCDF to GeoTIFF using R
require(ncdf)
require(raster)
## Input: a netCDF file
file.nc <- 'rain.nc'
## Output: a GeoTIFF file
file.tiff <- 'rain.tiff'
## Import netCDF