Extracting Europe from a netCDF file

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Extracting Europe from a netCDF file

Eeusha Nafi
Dear ALL,
I was trying to extract the data only for european region from this file
using these points (-10.375, 35.125), (43.375, 35.125), (-10.375, 71.375),
(43.375, 71.375). However, I am not sure how I can proceed further.
I have started with the following script:

*f <- "~/gfdl_preci.nc <http://gfdl_preci.nc>"library(raster)pr <-
brick(f)print(pr)pt <-as.data.frame(extract(pr, extent(-10.375, 43.375,
35.125, 71.375)), xy = TRUE)*

I would be grateful if anyone could kindly help me to proceed furhter.


        [[alternative HTML version deleted]]

[hidden email] mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.