R/read.hadslp2.R

require("ncdf")
read.hadslp2 <- function(filename) {
  con <- open.ncdf(filename)
  slp <- get.var.ncdf(con, "slp")
  lat <- get.var.ncdf(con, "lat")
  lon <- get.var.ncdf(con, "lon")
  time <- get.var.ncdf(con, "time")
  close.ncdf(con)
  dimnames(slp) <- list(lon, lat, time)
  return(slp)
}

Try the sealevel package in your browser

Any scripts or data that you put into this service are public.

sealevel documentation built on May 2, 2019, 6:51 p.m.