Skip to content

fsm python tute 6 Texture Processor

Kipling edited this page May 26, 2021 · 3 revisions

Creating Texture Zones

In this tutorial, we will make texture zones using the textureProcessor.

This processor uses sand and clay attributes to create texture zones based on the Australian texture triangle.

If your paddocks have been persisted, it's easy to make a texture map. Just be sure to use the same names for sand and clay.

from fsm.processors.textureProcessor import textureProcessor
from fsm.models.gradients import farmSoilMappingGradients
from fsm.graphicsRenderer import GraphicsRenderer
from fsm.configs import GraphicsConfig, TextureZonerConfig

txz = TextureZonerConfig(SAND, CLAY, depth_range=(0, 20))

pbrs = textureProcessor(paddocks, txz)

grad =farmSoilMappingGradients.TEXTURE_ZONES

graphics_config = GraphicsConfig(
    attribute="AUS_Textures",
    gradient=grad,
    output_dir=output_dir,
    fit_to_data=True)


gr = GraphicsRenderer(pbrs)

gr.build(graphics_config)

Clone this wiki locally