<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1255">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="preferred-charset" text="#660000"
    bgcolor="#FFFFFF">
    <font size="+1">I'm trying to incorporate pyproj into a GRASS python
      script <font size="+1">(<font size="+1">Transforming coordina<font
            size="+1">t<font size="+1">es this way seems way faster than
              importing to one LOCATION, then v.proj to another) <font
                size="+1">But, I'm </font></font></font></font></font>getting
      this error when I tr<font size="+1">y to use the pyproj.transform
        function</font>:<br>
      <font size="+1">    raise TypeError('input must be an array, list,
        tuple or scalar')<br>
        TypeError: input must be an array, list, tuple or scalar<br>
        <br>
        <font size="+1">Before running the python script I do the usual:<br>
          <font size="+1">export
            PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/"<br>
            export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/grass"<br>
            export
            PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/grass/script"<br>
          </font></font><br>
        <font size="+1">If I comment out the last export line, the
          pyproj command run<font size="+1">s successfully (and the
            grass modules are still loaded OK). I<font size="+1">s</font>
            there something in the grass.script modules that somehow
            conf<font size="+1">l<font size="+1">icts with pyproj?<br>
                <font size="+1">Is it OK to le<font size="+1">ave ou<font
                      size="+1">t the last PYTHONPATH line?</font></font></font><br>
                <br>
                <font size="+1">Thanks,<br>
                  <font size="+1">Micha</font><br>
                </font><br>
              </font></font></font></font></font></font>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
GIS Consulting
052-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
  </body>
</html>