Re: [R] How to get bathymetry data using R

2016-06-11 Thread javad bayat
Dear all; Many thanks for your answers but I think I should explain more. What I want to do is extracting bathymetry data from topography or DEM for a model that uses .npt format. Is there a package to do such a thing? Thanks. On Sat, Jun 11, 2016 at 8:39 PM, Roy Mendelssohn - NOAA Federal <

Re: [R] problem in R2OpenBUGS

2016-06-11 Thread Jeff Newmiller
That is my point... we cannot see your problem on our computers because you have not given us sample data and code that does anything. For one thing, the samplesBgr function is part of the BRugs package, not the R2OpenBUGS package, so your subject line does not make sense. For another,

[R] Creating mean TIF

2016-06-11 Thread Mike Smith
Hi I import 16-bit TIFs (RGB) from a directory using the following code, then loop through adding each TIF before dividing by the total number of files to give an image of mean pixel values. Some quick questions: -having checked pixel values, this does what I expect it to do in that it

Re: [R] problem in R2OpenBUGS

2016-06-11 Thread thanoon younis
Thank you very much for your response, how can i solve this problem, i want to draw at least BGR plots? Regards On 11 June 2016 at 21:33, Jeff Newmiller wrote: > This is not a reproducible example, and posting in HTML format frequently > corrupts R code so don't do

Re: [R] problem in R2OpenBUGS

2016-06-11 Thread Jeff Newmiller
This is not a reproducible example, and posting in HTML format frequently corrupts R code so don't do it. -- Sent from my phone. Please excuse my brevity. On June 11, 2016 11:15:38 AM PDT, thanoon younis wrote: >Dear R- users > >I have a problem in the R-code, i

[R] problem in R2OpenBUGS

2016-06-11 Thread thanoon younis
Dear R- users I have a problem in the R-code, i want to draw some plots in R,however, when i write the following code the R-program stopped suddenly. The message is "R for WINDOWS GUI front-end has stopped working". How can i solve this problem please? ## some plots samplesBgr("lam[1:6]") #

[R] Writing multiple adonis output from multiple list file in R

2016-06-11 Thread Suparna Mitra
Hello R experts, I am trying to do adonis (vegan package) on multiple files using loop. But I am having hard time in this. Here is what I tried. setwd("PATH") files <- list.files(pattern = "[.]txt$") ldf <- lapply(files, read.table, row.names=1) str(ldf) res <- lapply(ldf, summary) for (i in

Re: [R] How to get bathymetry data using R

2016-06-11 Thread Roy Mendelssohn - NOAA Federal
Use the “rerddap” package that accesses our ERDDAP server. You can see the data available at: http://upwell.pfeg.noaa.gov/erddap In the search box type in “bathymetry”.You can subset as you want, using “rerddap” you get back a netcdf file that is already read into your R workspace, or

[R] AR1 model using ARIMA

2016-06-11 Thread T.Riedle
Dear R users, I am trying to run a rolling window AR1 model by combining the rollapply() with the arima() function. Hence, my code looks as follows: rollingarma<-rollapply(data,width=36,function(data) coef(arima(data,order=c(1,0,0 Error in arima(data, order = c(1, 0, 0)) : non-stationary

Re: [R] How to get bathymetry data using R

2016-06-11 Thread Michael Sumner
On Sat, 11 Jun 2016 at 15:43 javad bayat wrote: > Dear R users; > I am searching for a package to extract bathymetry data from topography map > to produce the control file for CE-Qual-w2 model. > Is there anyone to know how to do it? > many thanks. > > There are few things