[GRASS-dev] i.topo.corr ported to GRASS 7

Markus Neteler neteler at osgeo.org
Fri Aug 5 02:57:43 EDT 2011


On Fri, Aug 5, 2011 at 4:22 AM, Glynn Clements <glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> I have more or less ported i.topo.corr to GRASS 7:
>> grass-addons/grass7/imagery/i.topo.corr/
>>
>> there are still some initalization issues when opening raster maps
>> due to the new style in G7. No idea how to fix that, help
>> would be appreciated.
>
> Can you explain what the issues are?

IMHO the raster map management is too much "old style",
i.e. GRASS 4/5 oriented.

The current version in SVN Addons
http://trac.osgeo.org/grass/browser/grass-addons/grass7/imagery/i.topo.corr
does this:

GRASS 7.0.svn (nc_spm_08):~ > i.topo.corr -i input=myplane_pyr
output=myplane_pyr_illumination basemap=myplane_pyr zenith=45.652668
azimuth=100.552200 method=c-factor
WARNING: Illegal filename <]>. Character <> not allowed.
WARNING: Illegal filename <]>. Character <> not allowed.
ERROR: Unable to open header file for raster map <]@>

Probably more code simplification is needed to leave relevant
things to the GRASS libs rather doing them in the module
itself.

Markus


More information about the grass-dev mailing list