Hello, This is probably very simple but I am trying to select a region from the OIv2 SST dataset that crosses 0 longitude. The longitude variable is arranged from 0 to 360 and I get an error message when trying to go from 330 to 30 for example. The data are from a NOAA netCDF file.
*temp = open.ncdf("c:/documents and settings/theoni/desktop/sstoi_v2.nc") print(temp) y1 = get.var.ncdf( temp, "latitude") x1 = get.var.ncdf( temp, "longitude") t1 = get.var.ncdf( temp, "time") z1 = get.var.ncdf( temp, "sst") sst = get.var.ncdf( temp, "sst", start=c(330,136,313), count=c(56,44,1))* Error message I get is: *Error in get.var.ncdf(temp, "sst", start = c(330, 136, 313), count = c(56, : C function R_nc_get_vara_double returned error* I couldn't seem to find any info on this in the help archives but am a new user so apologies if it has been addressed elsewhere. Many thanks, Nora -- Nora Hanson Sea Mammal Research Unit Scottish Oceans Institute University of St. Andrews St. Andrews Fife KY16 8LB Scotland n...@st-andrews.ac.uk tel: 0044 (0)1334 463485 The University of St Andrews is a charity registered in Scotland : No SC013532 [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.