R/grid.netcdf.r

Defines functions grid.netcdf

  grid.netcdf = function(ncdf.fname) {
    require(ncvar) # to handle netcdf files (binary output format of GMT)
    z = var.get.ncv(path=ncdf.fname, name="z", mode="nometa")
    dims = var.get.ncv(path=ncdf.fname, name="dim")
    out = as.matrix( z$data )
    # out = out[,ncol(out):1]
    return (out)
  }
Beothuk/bio.spacetime documentation built on Oct. 18, 2017, 8:50 a.m.