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”

How to open grib file in R?
Jonsson · Jan 14, 2013 · r-help

I have just contacted the sources and I am told that he checked min/max lat/lon for the file and it was right. He is using Linux while I am using Windows, would that be problematic? -- View this message...

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

extract will extract values if you provide the x , y but then who to know which lat and long correspond to which x and y -- View this message in context: http://r.789695.n4.nabble.com/how-to-extract-values...

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

That worked fine, thanks. But only worked when the values are positive but when I added negative values, the box was wrong. May be the order I lat and long should be different?any ideas -- View this message in context...

can R read a binary data block file (.DBL)?
Jonsson · Dec 10, 2012 · r-help

Dear R users, I have been searching thru the documentation of R but did not find anything about reading or manipulating a binary data block file (.DBL).a link to one example https://echange-fichiers.inra.fr/get?k=5Hzw2B1wZDng9ztO34E...

install the ggplot2 package
Jonsson · Nov 27, 2012 · r-help

Has one try to install the ggplot2 package recently? I tried to install it on my new system and had trouble: I tried a different CRAN mirror but didn't work library(ggplot2) Error in loadNamespace(i, c(lib.loc...

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

Yes, But what is your opinion about d in sprintf("C:\\Users\\aalyaari\\Desktop\\New folder (6)\\Yar_%00d.bin", d), because will go from one to the number of rows(some files have 248 and others have 224) and...

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

I tried to read only one file and get some information but this is what I got: sam=file("C:\\Users\\2001\\SWdown_200101_01.img", "rb") file1<- readBin(sam, double(),size=4, n=360*720) file.info(file1)$size...

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

Thanks you meant it shoud be: file1=do.call(rbind, lapply(dir1, readBin, integer(), size = 2, n = 360 * 720, signed = T)) file2=do.call(rbind, lapply(dir2, readBin, integer(), size = 2, n = 360 * 720, signed = T)) Please see the error...

What is the maximum limit for an array?
Jonsson · Jul 12, 2013 · r-help

Hello All, I am having a problem with this: file<-array(dim=c(1440,720,700,3)) Error in array(dim = c(1440, 720, 700, 3)) : 'dim' specifies too large an array I have a memory of 20GB, But I...

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

The piece of R code given above is meant to perform calculations for many files(12) in one folder.But I am getting this error:Error: subscript out of bounds.It finished reading the first file(successfully) but the error...

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

Dear Rui, I really appreciate your help. This is exactly what I was looking for.I know there is simpler way than mine but I couldn't figure it out.So, many many thanks. I wonder what is the difference...

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

How to re-project ease( Equal Area Scalable Earth) grid with a ~25 km cylindrical projection to WGS84 0.25 degree?
Jonsson · Jan 19, 2013 · r-help

In fact,it is netcdf file(even if the extension is DBL). I am new to prjections and i just tried that spTransform,I did not know projectraster. Could you please tell me what is the command using project raster...

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

Dear David, I think you meant tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8),i]-273.15)) not tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8)-273.15...

How to represent certain values in a file as we want?
Jonsson · Mar 31, 2013 · r-help

I have a raster file(1440*720 rows) contains values of 1 ,2 , and 3. when I plot the file , I got a map of three colors but I do not know which is which. How can I put those...

How can I map numbers to colours with raster?
Jonsson · Oct 29, 2012 · r-help

This code will read binary file and display it as a map. may problem is that this code is using a continuous colour scheme, even though I have discrete data (which is a classification scheme). How can I map numbers...

How to open grib file in R?
Jonsson · Jan 14, 2013 · r-help

I have this https://echange-fichiers.inra.fr/get?k=6TdTdezNeZwAqJtpwVm grib file which is a regular lat-lon 0.25x0.25 degrees and contains 4 fields . I tried to open it using : grib <- readGDAL("C:\\Users\\aalyaari\\Desktop\\Vol...

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

I know this,but i meant how can i insert them here: for(h in listfile){ print(h) ### Shall i keep this as it is print(file.info(h)$size) ### Shall i keep this as it is } b=file.info...

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

Yes this what I meant. I think no need for this line h=listfile[[n]],if I can just put it directly in the other line to do the calculations for every file in my list.they are not really...

How to add box layer using levelplot in R?
Jonsson · Feb 21, 2014 · r-help

I would like to add some boxes with special extent to my plot. Example gh <- raster() gh[] <- 1:ncell(gh) SP <- spsample(Spatial(bbox=bbox(gh)), 10, type="random") Then plot them levelplot(gh, col.regions = rev(terrain.colors(255...

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