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.

How do I adjust the code for the Gaussian Blur posted in the thread:

What raster smoothing/generalization tools are available?

to retain the resolution/gradients in the y direction and blur only in the x direction (rather than over a square area)?

share|improve this question
    
My answer there applies directly if you simply use neighborhoods that extend only one cell vertically (that is, in the y direction). –  whuber May 30 '13 at 19:24

1 Answer 1

It depends on the kernel shape. The linked answer in the question uses a circular kernel shape (not square), since the size of x and y values are identical. However, the source code was based on this cookbook which defines a kernel on size and optional sizey, for a different size in the y-direction. Therefore, the kernel is elliptical, and should do what you are looking for (i.e., a rectangle stretched out in the x-direction).

share|improve this answer

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.