<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Markus, </div>

<div> </div>

<div>Thanks a lot for your answer. </div>

<div> </div>

<div>I downloaded the new r. basin and run </div>

<div> </div>

<div>
<div><span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">> "r.basin map=map@Elevation prefix=o coordinates=-71.10394196,43.9865230801</span><br style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;"/>
<span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">> threshold=19005 dir="C:\\Users\\Andrea\\Basins"</span></div>

<div> </div>

<div><span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">and I get this error:</span></div>

<div> </div>

<div>ERROR: 'r.stream.distance' required. Please install 'r.stream.distance' first using 'g.extension r.stream.distance'<br/>
Traceback (most recent call last):<br/>
  File "C:\Users\Andrea\AppData\Roaming\GRASS7\addons/scri<br/>
pts/r.basin.py", line 832, in <module><br/>
    sys.exit(main())<br/>
  File "C:\Users\<span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">Andrea</span>\AppData\Roaming\GRASS7\addons/scri<br/>
pts/r.basin.py", line 90, in main<br/>
    check_progs()<br/>
  File "C:\Users\<span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">Andrea</span>\AppData\Roaming\GRASS7\addons/scri<br/>
pts/r.basin.py", line 86, in check_progs<br/>
    grass.fatal(_("'%s' required. Please install '%s' first<br/>
using 'g.extension %s'") % (prog, prog, prog))<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn\etc\python\grass\script\core.py", line 593, in fatal<br/>
    error(msg)<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn\etc\python\grass\script\core.py", line 579, in error<br/>
    message(msg, flag='e')<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn\etc\python\grass\script\core.py", line 517, in<br/>
message<br/>
    run_command("g.message", flags=flag, message=msg)<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn\etc\python\grass\script\core.py", line 361, in<br/>
run_command<br/>
    returncode=returncode)<br/>
grass.exceptions.CalledModuleError: Module run None<br/>
g.message -e message='r.stream.distance' required. Please<br/>
install 'r.stream.distance' first using 'g.extension<br/>
r.stream.distance' ended with error<br/>
Process ended with non-zero return code 1. See errors in the<br/>
(error) output.</div>

<div> </div>

<div> </div>

<div> </div>

<div><span style="line-height: 1.6em;">                    </span></div>

<div>Then I run:</div>

<div><span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">> g.extension </span><span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">r.stream.distance</span> </div>

<div> </div>

<div>and got:</div>

<div>Downloading precompiled GRASS Addons <r.stream.distance>...<br/>
Traceback (most recent call last):<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn/scripts/g.extension.py", line 1083, in <module><br/>
    sys.exit(main())<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn/scripts/g.extension.py", line 1071, in main<br/>
    install_extension(xmlurl)<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn/scripts/g.extension.py", line 479, in<br/>
install_extension<br/>
    ret += install_extension_win(module)<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn/scripts/g.extension.py", line 709, in<br/>
install_extension_win<br/>
    zfobj = zipfile.ZipFile(fo)<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn\Python27\lib\zipfile.py", line 766, in __init__<br/>
    self._RealGetContents()<br/>
  File "C:\Program Files (x86)\GRASS GIS<br/>
7.1.svn\Python27\lib\zipfile.py", line 807, in<br/>
_RealGetContents<br/>
    raise BadZipfile, "File is not a zip file"<br/>
zipfile.BadZipfile: File is not a zip file</div>

<div> </div>

<div>Thanks a lot for your answers. </div>

<div>Regards, </div>

<div>Andrea</div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Samstag, 08. November 2014 um 19:01 Uhr<br/>
<b>Von:</b> "Markus Neteler" <neteler@osgeo.org><br/>
<b>An:</b> "Andrea Timmermann" <timmermann@gmx.at><br/>
<b>Cc:</b> "GRASS user list" <grass-user@lists.osgeo.org>, "Margherita Di Leo" <dileomargherita@gmail.com><br/>
<b>Betreff:</b> Re: Re: [GRASS-user] Problem with r.basin in grass7</div>

<div name="quoted-content">Hi Andrea,<br/>
<br/>
On Thu, Nov 6, 2014 at 5:46 AM, Andrea Timmermann <timmermann@gmx.at> wrote:<br/>
> Hi !<br/>
><br/>
> I downloaded the 5-Nov Grass and also updated all the addons extensions I<br/>
> use.<br/>
><br/>
> When I run:<br/>
> "r.basin map=map@Elevation prefix=o coordinates=-71.10394196,43.9865230801<br/>
> threshold=19005 dir="C:\\Users\\Andrea\\Basins"<br/>
><br/>
> I get:<br/>
> "...<br/>
> Building topology for vector map <o_map_outlet@Elevation>...<br/>
> Registering primitives...<br/>
> One primitive registered<br/>
> One vertex registered<br/>
> Building areas...<br/>
> 0 areas built<br/>
> 0 isles built<br/>
> Attaching islands...<br/>
> Attaching centroids...<br/>
> Number of nodes: 0<br/>
> Number of primitives: 1<br/>
> Number of points: 1<br/>
> Number of lines: 0<br/>
> Number of boundaries: 0<br/>
> Number of centroids: 0<br/>
> Number of areas: 0<br/>
> Number of isles: 0<br/>
> ------------------------------<br/>
> An ERROR occurred running r.basin<br/>
> Please try with another pairs of outlet coordinates"<br/>
<br/>
I have just now submitted a bunch of fixes for r.basin, see<br/>
<br/>
<a href="http://trac.osgeo.org/grass/changeset/62672" target="_blank">http://trac.osgeo.org/grass/changeset/62672</a><br/>
<br/>
Please try again...<br/>
<br/>
...<br/>
> And about the known issues at the same page: "r.basin hasn't been designed<br/>
> for working in lat/long coordinates. This means that if you are working in<br/>
> lat/long coordinates, you need to reproject your map first in order to apply<br/>
> the tool".<br/>
><br/>
> The DEMs I am using have a resolution of 0.33 degrees<br/>
<br/>
Do you mean 33 arcseconds? Otherwise it would be something like 30km pixels :-)<br/>
<br/>
> and when I reproject<br/>
> them (projection: 3 (Latitude-Longitude); zone: 0; datum: nad83; ellipsoid:<br/>
> grs80), the areas covered by the DEMs files vary depending on the longitude:<br/>
> the surface covered by one file is larger near the equator than closer to<br/>
> the poles. So I think this means that the cell resolution of my reprojected<br/>
> map is larger near the poles than at the equator? If so, it would only make<br/>
> sense to compare the morphometric parameters for catchments at a similar<br/>
> latitude I think... Am I right? I am a bit confused with this ...<br/>
<br/>
Perhaps you can find a DEM in a metric projection for your study area<br/>
which would save you some times?<br/>
<br/>
Best<br/>
Markus</div>
</div>
</div></div></body></html>