Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to calculate average rainfall value from a number of points using Inverse Weighted Distance tool in ArcGIS 9.3. My problem is that: each point has it own time series, therefore the interpolation process should be able to carry out for all years (kind of iteration so to speak). Following is a sample attribute table:

ID X Y Name Rain1990 Rain1991 Rain1992 Rain1993 .... Rain2010

1 xx1 yy1 AA 1210 1189 1863 1269 ......
2 xx2 yy2 BB 1492 1502 2187 1923 ...... ......

Could anybody show me how to do that. Any suggestion would be much appreciated

Nice weekend every1

thecatalyst

Edit: I finally did this by using C++ code which required ArcGIS mask grid, data files & locations of all the points. If someone needs the code, contact me and I'd love to share!

share|improve this question
    
Will this help? Time series –  Brad Nesom Nov 22 '10 at 18:03
    
It could be done in R, but I imagine there is a simple way to do it directly in ArcMap. All the OP wants is to iterate through the separate variables (years) and calculate the interpolated raster for each separate variable. The fact that the values in this example are sequential years makes no difference. –  Andy W Nov 22 '10 at 19:17
    
Thx for your reply. Actually there's a batch option when right click on IDW tool but still it's a quite tedious job if you have an hourly or daily data. KR –  thecatalyst Nov 23 '10 at 6:37
    
@thecatalyst - If the batch IDW tool does the job then you should post it as an answer. Although it may be tedious, if it is infrequent (as yearly rainfall estimates are infrequent) then there is little reason to search for other solutions. –  Andy W Nov 23 '10 at 14:00
    
@Andy: The batch tool would help if you have a limited number but I have hundreds of data which make the idea of using it a little bit unrealistic. I'm still searching for the solution of this problem. KR –  thecatalyst Nov 26 '10 at 22:25
show 4 more comments

2 Answers 2

up vote 2 down vote accepted

I solved this by inserting a "Feature Selection" iterator into a model. (In the ModelBuilder Window, under Insert->Iterators menu.)

Use your time field as your "group by" variable. By doing this, the model will iterate once for each time in your feature class.

Then attach your preferred interpolation tool (spline, IDW, whatever) to the feature output from the iterator. Run the model, go on vacation for a few weeks, and when you come back, you will have as many grids as you have time points in the feature class.

Note that this solution assumes you have discrete time sampling points with a date or numeric field that indicates a single time point for each record in your feature set. If you are using the "begin time" and "end time" format, it might not be so straight forward.

share|improve this answer
    
Also, don't forget to use the "%n%" variable in your output file name (or some other way of generating a unique file name), or else you may overwrite you raster every iteration. For more info, see help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//… or just google "Examples of in-line variable substitution with ModelBuilder system variables" –  user2445 Mar 24 '11 at 5:34
    
TY. Good to know there's a different way to do it. Cheers! –  thecatalyst May 5 at 21:46
add comment

It seems that this thread is answered by the IDW tool, but if you were to request and input of the start year and then iterate through the year fields using an inline variable in model builder then this would be a more elegant way to handle the modelling.

Have Fun, CDB

PS: I agree with @AndyW that if you solved it using the IDW, post as an answer yourself and then "mark with the tick"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.