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.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 .