Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
rked for a positive latitude, but you got > the data from the latitude index 6 or 7, depends on how the double was > transformed into an integer. > > best regards > Peter > >> On 09 Jan 2016, at 12:28, Peter Tuju via R-help wrote: >> >> I have data file i

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
t it worked for a positive latitude, but you got the data from the latitude index 6 or 7, depends on how the double was transformed into an integer. best regards Peter > On 09 Jan 2016, at 12:28, Peter Tuju via R-help wrote: > > I have data file in netcdf with three dimensions (x, y, t)

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
I have data file in netcdf with three dimensions (x, y, t) and I want to extract a variable RAINC and RAINNC using longitude and latitude for a single point location with all the time, but no lucky. The syntax is as follows;; setwd( "/run/media/tuju/0767090047/extract_wrf_txt_file" ) rm( list =