[GRASS-user] Pan sharpen Worldview-2 imagery

William Hudspeth bhudspeth at edac.unm.edu
Wed Aug 17 11:43:23 PDT 2016



On 08/16/2016 05:00 PM, Nikos Alexandris wrote:
> William Hudspeth:
>
>> Hello Nikos,
>>
>> The link you provided documents how to use g.extension for installing
>> python scripts in GRASS 7.3. In particular, it uses the 'url=....'
>> argument to specify a link to a zip file. I am using the stable version
>> of GRASS 7.0 that is installed with Ubuntu 16.01. In that version, the
>> 'url=...' argument is not available. Is there an alternative way to
>> install your extension in GRASS 7.0?
>>
>> Thanks much, William
>
> Hi William. Please, try to keep some bottom-posting in the list.
>
> Can you get GRASS' source code (any version 7.x) and follow steps in
> https://svn.osgeo.org/grass/grass-addons/README?
>
> Nikos 

On 16/08/16 19:56, William Hudspeth wrote:
>/Hello Nikos, />//>/The link you provided documents how to use g.extension for installing />/python scripts in GRASS 7.3. In particular, it uses the 'url=....' />/argument to specify a link to a zip file. I am using the stable version />/of GRASS 7.0 that is installed with Ubuntu 16.01. In that version, the />/'url=...' argument is not available. Is there an alternative way to />/install your extension in GRASS 7.0? /
Download the extension to your machine, unzip it, go into the directory
and then run
   make MODULE_TOPDIR=/path/to/your/grass/installation

You have to have the grass-dev package installed for it to work.

Moritz






I have tried installing from the unzipped directory using the following for grass installation
path, and with the following errors:
     

make MODULE_TOPDIR=/usr/lib/grass70

GISRC=/usr/lib/grass70/demolocation/.grassrc70 GISBASE=/usr/lib/grass70 
PATH="/usr/lib/grass70/bin:/usr/lib/grass70/bin:/usr/lib/grass70/scripts:$PATH" 
PYTHONPATH="/usr/lib/grass70/etc/python:/usr/lib/grass70/gui/wxpython:$PYTHONPATH" 
LD_LIBRARY_PATH="/usr/lib/grass70/bin:/usr/lib/grass70/bin:/usr/lib/grass70/scripts:/usr/lib/grass70/lib:/usr/lib/grass70/lib:" 
LC_ALL=C g.parser -t i.worldview.toar.py | sed s/\"/\\\\\"/g | sed 
's/.*/_("&")/' > 
/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c
/bin/sh: 1: cannot create 
/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c: 
Directory nonexistent
ERROR: Variable 'LOCATION_NAME' not set
/usr/lib/grass70/include/Make/ScriptRules.make:28: recipe for target 
'/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c' 
failed
make: 
[/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c] 
Error 2 (ignored)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160817/400fcba3/attachment-0001.html>


More information about the grass-user mailing list