Re: [R] EXTRACT POINT DATA FROM NETCDF FILE

2016-01-15 Thread Peter Tuju
Daer R, usersI want to get a point data from netcdf file using the longitude and latitude, but have no luck with the code I'm using. Here is the code. Please help! rm( list = ls() )                   # Clearing the workspace setwd( "/run/media/tuju/0767090047/extract

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

2016-01-09 Thread Peter Tuju via R-help
To: "r-help@r-project.org" Cc: Peter Tuju Sent: Saturday, January 9, 2016 4:01 PM Subject: Re: [R] Extracting point data using longitude and latitude from netcdf file using R Hi, This post gives more details on how to transform your lat/lon values to row/column indices. Th

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

2016-01-09 Thread Peter Tuju via R-help
ter  E. Tuju Dar es Salaam T A N Z A N I A -- From: "Anthoni, Peter (IMK)" To: Peter Tuju Cc: "r-help@r-project.org" Sent: Saturday, January 9, 2016 3:14 PM Subject: Re: [R] Extracting point data using longitude and latitude from netcdf file

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 =

Re: [R] Compute RowMeans from mulple files

2015-08-23 Thread Peter Tuju
Dear R users, I have fifty two (52) text files with the same dimensions (ie 31 by 13). Three sample of such data files are attached. I want to compute the rowMeans for each separate file for;(i) all the months (ii) For January and February (iii) For March, April and May (iv) For June, July and

Re: [R] Extracting data from a file containing data

2015-07-02 Thread Peter Tuju
Dear Jim,Thank you very much indeed. Its a great job you have done and I really appreciate.Thank you so much.  _ Peter  E. Tuju Dar es Salaam T A N Z A N I A -- From: jim holtman To: Peter Tuju Cc: "r-help@r-project.org" Sent: Thursday, July

Re: [R] Extracting data from a file containing data

2015-06-26 Thread Peter Tuju
| | | | | | | 2.To use the Yearly anomalies for each column in nino regions toclassify the events as;(i). IfANOM Mean>1, then I assign itto “SE” (Being as Strong El-nino)(ii). If0 To: Peter Tuju Cc: "r-help@r-project.org" Sent: Thursday, June 25

Re: [R] Extracting data from a file containing data

2015-06-25 Thread Peter Tuju
I have the data as attached. For each nino region, I want to get the mean of the seasons January and February (JF), March, April and may (MAM), June, July and August (JJA), and October, November and December (OND) as columns of each nino regions. and have my result as;For example; For NINO1.2Yea