[R] Extracting Europe from a netCDF file

Eeusha Nafi eshad002 at gmail.com
Tue Sep 19 09:27:31 CEST 2017


Dear ALL,
I was trying to extract the data only for european region from this file
https://www.dropbox.com/s/xpo7zklcmtm3g5r/gfdl_preci.nc?dl=0
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.

Regards,
Eeusha

	[[alternative HTML version deleted]]



More information about the R-help mailing list