search for: gridcell

Displaying 13 results from an estimated 13 matches for "gridcell".

2005 Aug 29
1
patches for GridCell*Editor and GridCell*Renderer
When I originally added these I used %module .... instead of %module(directors="1"). This little change has a big effect on the code actually working. Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jul 23
11
Memory problem with GridCell*Editor
Alex, I was getting the following crashes when editing cells in a grid: ./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for "_p_wxEvent":String (NoMethodError) from ./init.rb:1072 but only after the first App GC mark phase. So I changed all the GridCell*Editor.i files from GC_MANAGE to GC_MANAGE_AS_EVENT. Which stopped the crashing. My question Alex is do you think this is the correct GC_* to use in this situation? I wanted to run this by you before I do a commit, since I have not messed around with memory management since the big overhaul. thank...
2013 Jul 20
1
how to calculate the average values of each row in a matrix
Hello, I have a matrix (class matrix) composed of GridCell (row and column). The matrix value is the beta diversity index value between two grids. Now I would like to get the average value of each GridCell. Please kindly advise how to make the calculation. Thank you. Elaine The matrix looks like (cited from Michael Friendly) I would like to get the aver...
2017 Jul 05
4
expand gridded matrix to higher resolution
...html, than my email client don't do as told, and I apologies already.) We need to downscale climate data and therefore first need to expand the climate from 0.5deg to the higher resolution 10min, before we can add high resolution deviations. We basically need to have the original data at each gridcell replicated into 3x3 gridcells. A simple for loop can do this, but I could need a faster procedure. Anybody know a faster way? Is there package than can do what we need already? I tried matrix with rep, but I am missing some magic there, since it doesn't do what we need. replicate might be pro...
2009 Feb 04
2
Sum(..) in apply()
Dear, I have a set of ascii-grids. For each gridcell I want to count all values that lie between 15 and 6. Therefore I combined the ascii-grids in an array and used result<- apply(temp,2,sum((temp <=15)&(temp > 6)), na.rm=TRUE) But, this doesn`t work. It seems that the combination apply with sum(...) is not working, since the pure a...
2017 Jul 05
0
expand gridded matrix to higher resolution
...an my email client don't do as told, and I apologies already.) > > We need to downscale climate data and therefore first need to expand the climate from 0.5deg to the higher resolution 10min, before we can add high resolution deviations. We basically need to have the original data at each gridcell replicated into 3x3 gridcells. > A simple for loop can do this, but I could need a faster procedure. Anybody know a faster way? Is there package than can do what we need already? > I tried matrix with rep, but I am missing some magic there, since it doesn't do what we need. > replicate...
2012 Feb 03
3
[fields] image.plot abends with NAs in image.plot.info
...ture {cols, rows, layers, timestep=1}, where {cols,rows} represent a land-cover grid. The layers are sparse, in that all have some NAs; some have all NAs--call those "trivial"). The non-trivial layers have a problem: data was logged so that values sum. (I.e., instead of logging value=a in gridcell [i,j] and value=b in the "next" non-NA gridcell[i+m,j+n], value(gridcell[i+m,j+n]) = a+b.) I wrote an R routine that "demonotonicizes" (since all data >= 0) the source data, writing to a new "fixed" or "target" file with the same structure as the source. A...
2017 Jul 05
0
expand gridded matrix to higher resolution
...ent don't do as told, >and I apologies already.) > >We need to downscale climate data and therefore first need to expand >the climate from 0.5deg to the higher resolution 10min, before we can >add high resolution deviations. We basically need to have the original >data at each gridcell replicated into 3x3 gridcells. >A simple for loop can do this, but I could need a faster procedure. >Anybody know a faster way? Is there package than can do what we need >already? >I tried matrix with rep, but I am missing some magic there, since it >doesn't do what we need. &g...
2011 Jun 22
1
lme convergence failure within a loop
...automatically, so that I can continue my loop and record the places where the model does fit. I've used the lmeControl method with returnObject=TRUE options to allow me to continue looping, however I want to be able to flag the places where the convergence failed so that I can reject these gridcells and not mistakenly claim that the model fits at these points. Is there a way to do this? My example code shows the relevant lines of code-- what I'm hoping for is a way to determine that the convergence failed and record this as a boolean value, or something similar. Thanks, Sam Nicol...
2010 Aug 12
0
- combining lists
Hi all, I have used this library to create a (360 day)calendar for my rainfall data (which is divided over 9 gridcells): ## CODE## library(udunits) utInit() calendar <- att.get.nc(nc,'time','calendar') T <- var.get.nc(nc,"time") times.list <- utCalendar(T,"days since 1961-01-01",style='array',calendar=calendar) ## END CODE## **** To separate months and years I...
2012 Feb 24
0
[newbie] how to represent very skewed spatial data?
...which may or may not be "for real." At an exploratory stage in the investigation, I don't want to prejudge, I just want to show both 1 where the outliers are. This is not such a problem in the plot shown, but is often a problem in others, where the outliers are just a few pixels/gridcells. I could highlight them by, e.g., * importing the output into an editable format * drawing circles around the outliers * exporting back to distributable format (e.g., PDF) but that would be Real Work; automated solution much preferred! 2 how the rest of the data is distributed. Normally I'...
2010 Jun 26
1
predict newdata question
Hi: I am using a subset of the below dataset to predict PRED_SUIT for the whole dataset but I am having trouble with 'newdata'. The model was created with 153 records and want to predict for 208 records. wolf2 <- structure(list(gridcell = c(367L, 444L, 533L, 587L, 598L, 609L, 620L, 629L, 641L, 651L, 662L, 674L, 684L, 695L, 738L, 748L, 804L, 805L, 872L, 919L, 929L, 938L, 950L, 958L, 966L, 975L, 976L, 985L, 994L, 1006L, 1015L, 1019L, 1022L, 1025L, 1027L, 1028L, 1029L, 1032L, 1040L, 1043L, 1050L, 1053L, 1061L, 1070L, 1074L, 1078L...
2007 Apr 18
3
Matrix or grid conversion of spatial data
Dear Happy R-users & experts, I am in need of advice, While working with spatial data (x & y coordinates of seed locations) I have come accross the problem that I need to convert my point data into a matrix or grid system. I then need to count how often a point falls into a certain position in the matrix or grid. I have searched all day online, asked collegeas but nothing works. Sadly