Skip to content

Examples

Anderl edited this page Feb 12, 2019 · 1 revision

Examples for CLI usage (or scripting):

Apply a filter:

>>> filter.boxcar()			 smoothing of the active layer
>>> filter.lee(looks=3, layer=“/L3”)     Lee filtering of layer /L3

or:

>>> activate(“/L3”)			activating layer /L3
>>> filter.lee(looks=3)			Lee filtering (of Layer /L3, bacause active)

Saving to file:

>>> activate(“/L7”)
>>> save.rat(filename=“abc.rat”)

Saving to graphic (jpg, png, ...):

>>> save.pixmap(filename=“out.jpg”, order=[2,0,1], layer=“/L7”)

Moving layer content into numpy variable:

>>> activate(“/L2”)
>>> var = getdata()
Clone this wiki locally