[R] spatial subset of ncdf

From: ole_roessler <o.roessler_at_giub.uni-bonn.de>
Date: Mon, 24 Nov 2008 02:30:02 -0800 (PST)

dear

I was lokking for a solution or an example on the internet for quite a time but since havenĀ“t found an answer yet, I'd like to ask a maybe to simple question:

I have a large ncdf-file with five dimension. temperature (t2m), the variable against, lat, lon and time. (height is included as well)

the structure is

[1] "file C:/RDaten/t2m.ETH.HC_A2.nc has 5 dimensions:"
[1] "height Size: 1"
[1] "rlat Size: 75"
[1] "rlon Size: 65"
[1] "time Size: 11160"
[1] "time_bnds Size: 2"
[1] "------------------------"
[1] "file C:/RDaten/t2m.ETH.HC_A2.nc has 4 variables:"
[1] "float lat[rlon,rlat] Longname:latitude of grid-points Missval:1e+30"
[1] "float lon[rlon,rlat] Longname:longitude of grid-points Missval:1e+30"
[1] "char rotated_pole[] Longname:rotated_pole Missval:NA"
[1] "float t2m[rlon,rlat,height,time] Longname:2-m Temperature
Missval:1e+30"

I wonder now how to make a spatial subset of just one grid cell ?

I just found temporal subset. it would be of great help.

Best regards

Ole

-- 
View this message in context: http://www.nabble.com/spatial-subset-of-ncdf-tp20658212p20658212.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Mon 24 Nov 2008 - 16:04:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 24 Nov 2008 - 16:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive