* Roberta Fagandini <[email protected]> [2018-06-04 18:42:47 +0200]:
Done! I added the folder to my github repository but I have some trouble compiling the module with g.extension: g.extension extension=i.sentinel.mask operation=add url= https://github.com/RobiFag/GRASS_clouds_and_shadows error message: g.extension extension=i.sentinel.mask operation=add url= https://github.com/RobiFag/GRASS_clouds_and_shadows Fetching <i.sentinel.mask> from < https://github.com/RobiFag/GRASS_clouds_and_shadows/archive/master.zip> (be patient)... Compiling... make[1]: *** No rule to make target `/tmp/grass7-roberta-701 4/tmpe7QEso/i.sentinel.mask/scripts/i.sentinel.mask', needed by `script'. Stop. /bin/sh: 1: cannot create /usr/lib/grass74/error.log: Permission denied make: *** [i.sentinel.mask] Error 2 ERROR: Compilation failed, sorry. Please check above error messages. any suggestion?Maybe irrelevant, but perhaps it is best to name the script as `i.sentinel.mask.py`?I named the file as you suggested but I still have some problems, now the error message is: Fetching <i.sentinel.mask> from < https://github.com/RobiFag/GRASS_clouds_and_shadows/archive/master.zip> (be patient)... Compiling... Installing... make: *** No rule to make target `install'. Stop. WARNING: Installation failed, sorry. Please check above error messages.
It compiles locally. Yet I didn't manage to get it via `g.extension`. Patch of minor importance attached. Nikos
From b5a1540270d1b9874a93127e2f832662cbe00337 Mon Sep 17 00:00:00 2001 From: Nikos Alexandris <[email protected]> Date: Tue, 5 Jun 2018 00:14:22 +0200 Subject: [PATCH] Minor wording modifications --- i.sentinel.mask/i.sentinel.mask.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/i.sentinel.mask/i.sentinel.mask.py b/i.sentinel.mask/i.sentinel.mask.py index a0ef393..343412e 100644 --- a/i.sentinel.mask/i.sentinel.mask.py +++ b/i.sentinel.mask/i.sentinel.mask.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# coding=utf-8 # ############################################################################ # @@ -20,7 +20,7 @@ #% keywords: imagery, sentinel, cloud, shadow, reflectance #%End #%option -#% key: blu +#% key: blue #% type: string #% gisprompt: old,cell,raster #% description: input bands @@ -101,7 +101,7 @@ #%end #%flag #% key: r -#% description: set computational region to image max extent +#% description: set computational region to maximum image extent #%end #%flag #% key: t @@ -114,7 +114,7 @@ #%end import grass.script as gscript -import math,os,sys,shutil,re,glob,numpy,time,atexit +import math, os, sys, shutil, re, glob, numpy, time, atexit import xml.etree.ElementTree as et def main (): @@ -158,7 +158,7 @@ def main (): #input file #mtd_file = '/home/roberta/remote/Progetti_convegni/ricerca/2015_2018_PhD_roberta/sentinel2/MTD_TL.xml' ####change MTD_TL file path!!!#### mtd_file = options['mtd_file'] - b1 = options['blu'] + b1 = options['blue'] #b1 = gscript.find_file(b1, element = 'cell', mapset = mapset)['name'] #b1 = b1.replace(mapset2, "") b2 = options['green'] -- 2.15.2
signature.asc
Description: PGP signature
_______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
