Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

71 results for “from:Jonsson”

Min , Max
Jonsson · Apr 28, 2012 · r-help

Yes ,It worked. So how can I insert it in my code? Please for(h in listfile){ + print(h) + print(file.info(h)$size) + } [1] "Wind_WFD_200101.nc.img" [1] 66880640 [1] "Wind_WFD_200102.nc.img" [1] 60408320...

why a moving average fun takes too long time!!
Jonsson · Mar 20, 2013 · r-help

I am calculating a moving average for 601 rasters (720, 1440)and it is taking a day to finish. I wonder if this is normal or something is wrong I am using Linux . code: dir1 <- list.files("/home/spa4-358...

R does not recognise columns and rows as they are supposed to be
Jonsson · May 24, 2012 · r-help

Yes I exactly followed what you all suggested: X<-(82:92) ; Y<-(364:369) ##### for sellected region > extract <- double(365) > setwd("C:\\Users\\aalyaari\\Desktop\\New folder (10)\\") > listfile<-dir() > for (i in 1:365) { + conne <- file(listfile[i], "rb...

R does not recognise columns and rows as they are supposed to be
Jonsson · May 24, 2012 · r-help

Yes this helped a lot . I exactly followed what you suggested: X<-(82:92) ; Y<-(364:369) ##### for sellected region > extract <- double(365) > setwd("C:\\Users\\aalyaari\\Desktop\\New folder (10)\\") > listfile<-dir() > for (i in 1:365) { + conne <- file...

how to add a box to map plotted by a levelplot?
Jonsson · Sep 24, 2013 · r-help

conne2 <- file("C:\\ome1440s.bin","rb") bioms<- readBin(conne2, integer(), size=1, n=1440*720, signed=F) library(raster) library(rasterVis) data(wrld_simpl) library(maptools) ## needed for wrld_simpl r <- raster(nrow=720, ncol=1440) r[] <- bioms; r <- ratify...

Class correlation with hierarchical clusters
Jonsson, Pall · Sep 23, 2009 · r-help

Hello R gurus. I have been performing hierarchical clustering of gene expression data. I use the heatmap() function to perform the clustering and overlay classifications by using the ColSideColors parameter. In many cases I have various metadata associated with my...

Finding a vector position using names rather than values
Jonsson, Pall · Sep 12, 2008 · r-help

Dear R gurus, I have been struggling with this for a while and thought you might be able to give me some guidance. I have a data frame, on which I apply a row function. The result looks to me...

Replacing cretin value in a file
Jonsson · May 13, 2012 · r-help

Dear All, I am trying to replace a value of 528.8933 to -9999 in my file t<- file("C:\\Users\\Amin\\Desktop\\1999n_Resample11.img", "rb") e=readBin(t, double(), size=4,n=720*360, signed=TRUE) e[e...

Vector comparison to matrix
Sigurdur Jonsson · Aug 16, 2005 · r-help

Hi Todd and list, I see you have received a few suggestions, here's another: # set up data: your vector and an a 3x300000 matrix with a few # matching lines: target<-c(1,2,3) A<-matrix(sample(1:3...

how to extract values from a raster according to Lat and long of the values?
Jonsson · Jan 27, 2013 · r-help

having 12 files with 12 hdrs for one year: these files are raster (projected WGS84,lat long):https://echange-fichiers.inra.fr/get?k=rLSyoavrnifGyH5XrlO samples = 1440 lines = 720 bands = 1 header offset = 0 file type = ENVI Standard data type...

How to calculate the spatial correlation of several files?
Jonsson · Dec 3, 2012 · r-help

dir1 <- list.files("C:\\Users\\aalyaari\\Desktop\\cor", "*.bin", full.names = TRUE) dir2 <- list.files("C:\\Users\\aalyaari\\Desktop\\cor2", "*.bin", full.names = TRUE) results <- list() for (.files in dir1){ # read in the 365 files as a vector of numbers...

How to calculate the moving average for binary files?
Jonsson · Feb 18, 2013 · r-help

I have 12 binary (raster) files https://echange-fichiers.inra.fr/get?k=k3M2jatJyHy65Cs99G4 . I would like to calculate the moving average for the 12 values for each pixel in the 12 files. For a simple vector we can get...

How to loop several binary files from two directories?
Jonsson · Mar 4, 2013 · r-help

I have two binary files(rasters) with the same dimensions. The first file is called `over` and the second is `corr`. I want to replace values in `over` by `NA` whenever `corr` is greater than 0.5. to read the...

Min , Max
Jonsson · Apr 28, 2012 · r-help

Hello again, I am still having the same problem with the main loop.it succeeded to finish reading and writing from the first file in my listfile but failed when it moves to the second file giving this error:Error...

Why stacking rasters return NAs?
Jonsson · Mar 18, 2013 · r-help

I have several rasters that I want to do some calculations ,basically calculating the moving average. dir2 <- list.files("D:\\2010+2011", "*.bin", full.names = TRUE) saf=stack(dir2) movi <- overlay(stack(saf),fun=function(x) movingFun(x, fun=mean...

R does not recognise columns and rows as they are supposed to be
Jonsson · May 25, 2012 · r-help

Yes I did so. Yes the first values are the right ones: -9999 -9999. so this meant that I should consider my data as: double/4/little Is it so? file <- "C:\\Users\\aalyaari\\Documents\\INRA\\WFD_reprocessed\\dialyswco\\2001...

R does not recognise columns and rows as they are supposed to be
Jonsson · May 24, 2012 · r-help

Dear All, The code given bellow is to extract values of one region and write that to a text file(there are 365 binary files in the directory). The problem which I am facing is that all my files are...

Min , Max
Jonsson · Apr 27, 2012 · r-help

Hellow everyone, This code bellow will calculate average daily wind speed(measurements are taken every three hours).Any ideas how to take the Min and Max instead of average. library(Matrix) setwd("C:\\Users\\aalyaari\\Desktop\\img") listfile<-dir() long...

R does not recognise columns and rows as they are supposed to be
Jonsson · May 25, 2012 · r-help

The trick may be behind not reading the files properly is that all my 365 files donot have the same name. for example: files from number 1 to number9 are named for the first month: SWdown_200101_01.img SWdown...

How to calculate monthly average from daily files in R?
Jonsson · Jan 17, 2013 · r-help

I have 365 binary files: https://echange-fichiers.inra.fr/get?k=oy3CN1yV1Um7ouRWm2U ,I want to calculate the monthly average. So from the 365 files, I will get 12 files.I would like also to tell R not to take...

Can't find what you're looking for? Try searching with Google .