[R-sig-Geo] netcdf file limitation

2014-12-04 Thread Jianhua Huang
Hi All: I am trying to write a 3-dimensional big netcdf file with the ncdf4 package. I found that when the length of the variable is larger than 2^31 (or file size larger than 16 GB), it will show an error ncvar_put doesn't support long vector yet. Is that the limitation of the ncdf4 package

[R-sig-Geo] weird ncdf4 output 9.969210e+36

2014-10-21 Thread Jianhua Huang
Hi All: I am trying to create a 3 dimensional (200*200*8760) netCdf file using the ncdf4 package. Everything goes fine, except some unexpected outputs. Here is tail of the result in one grid cell. I cbind the original values and the output read from the nc file.

[R-sig-Geo] float points

2013-02-11 Thread Jianhua Huang
Hi all: I am using the precipitation (pr) data from rcm3-cgcm3 model. I used the ncdf4 package to open the precipitation data. Some values are very close to zero, for example 3*10^(-23), and there are even some negative values (like -3*10^(-21)). Should I treat these values as zero? I don't

[R-sig-Geo] About SARAR

2011-05-05 Thread Jianhua Huang
Dear All: I am trying to use the gstslshet function to generate the estimate the sarar model. However, there is an error occur as following: Error in solve.default(crossprod(reg)) : system is computationally singular: reciprocal condition number = 4.38039e-25 Is there anyone

[R-sig-Geo] about robustness analysis

2011-05-04 Thread Jianhua Huang
Hi All: I am doing some spatial analysis with the spdep package. Could anyone suggest some functions to perform robustness (outlier etc) for the data? Thanks, and any help is appreciated. Joshua [[alternative HTML version deleted]]

[R-sig-Geo] get the centroids of the polygones

2011-04-12 Thread Jianhua Huang
Hi Everyone: I am trying to get the centroids of all the polygons in the shape file. I use the following code: library(spdep) library(maptools) cte - readShapePoly(cte2007.shp,IDvar=NULL) get.Pcent(cte) But there is an error when I run get.Pcent (Error: could not find function

Re: [R-sig-Geo] get the centroids of the polygones

2011-04-12 Thread Jianhua Huang
whether the returned value is exactly the one I need. Here is the introduction: http://127.0.0.1:27343/library/sp/html/coordinates.html Thanks again for your help. Jianhua -Original Message- From: Danlin Yu [mailto:y...@mail.montclair.edu] Sent: 2011年4月12日 12:36 To: Jianhua Huang Cc: r

Re: [R-sig-Geo] get the centroids of the polygones

2011-04-12 Thread Jianhua Huang
Hi Danlin: Thanks. It is very helpful. Jianhua -Original Message- From: Danlin Yu [mailto:y...@mail.montclair.edu] Sent: 2011年4月12日 13:10 To: Jianhua Huang Cc: r-sig-geo@r-project.org Subject: Re: [R-sig-Geo] get the centroids of the polygones Jianhua: Well, I happen to have ArcGIS