[GRASS-user] Getting an error using r.mask in a GRASS shell script

Thomas Adams tea3rd at gmail.com
Tue Jan 27 07:41:23 PST 2015


Anna,

I'm building RC1 on a different Linux box (where I had beta3); I'll try
again and  if I get the same error, I'll offer up an example — how would I
do that? tar things up and put it on GoogleDrive?

Tom

On Tue, Jan 27, 2015 at 8:34 AM, Anna Petrášová <kratochanna at gmail.com>
wrote:

>
>
> On Tue, Jan 27, 2015 at 8:31 AM, Thomas Adams <tea3rd at gmail.com> wrote:
>
>> Markus,
>>
>> Thank you for your help; I did try using RC1 (which I built shortly after
>> it's release) and got the same error -- but I'll try again. I can't do that
>> right now because I just kicked-off something else in a different GRASS
>> LOCATION that's taking a while to process. So, I won't be able to try again
>> until later.
>>
>
> Maybe a short but complete example would help us to test?
>
> Anna
>
>>
>> Thank you,
>> Tom
>>
>> On Tue, Jan 27, 2015 at 1:39 AM, Markus Neteler <neteler at osgeo.org>
>> wrote:
>>
>>> Tom,
>>>
>>> On Tue, Jan 27, 2015 at 8:38 AM, Hermann Peifer <peifer at gmx.eu> wrote:
>>> > On 2015-01-26 23:57, Thomas Adams wrote:
>>> >>
>>> >> All:
>>> >>
>>> >> I have a GRASS bash shell script where all my GRASS commands
>>> >> (7.0.0beta3) execute just fine except for my call to set a MASK:
>>> >>
>>> >> r.mask --overwrite input=$basin_mask@$MAPSET
>>> >>
>>> >> I get this error...
>>> >>
>>> >> Traceback (most recent call last):
>>> >>    File "/usr/local/grass-7.0.0beta3/scripts/r.mask", line 71, in
>>> <module>
>>>
>>> Please consider to update to RC1, we have fixed all these errors.
>>>
>>> >>      import grass.script as grass
>>> >> ImportError: No module named grass.script
>>> >>
>>> >
>>> > There is no input parameter in G7:r.mask [1]. This info is however
>>> missing
>>> > in [2], as I just noted. I am not sure of the behaviour of 7.0.0beta3,
>>> but
>>> > my GRASS 7.1.svn comes up with:
>>> >
>>> > ERROR: Sorry, <input> is not a valid parameter
>>> >
>>> > Hermann
>>> >
>>> > [1] http://grass.osgeo.org/grass70/manuals/r.mask.html
>>> > [2]
>>> http://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Rastermodulechanges
>>>
>>> The lookup mechanism should now work fine (otherwise please report),
>>> just beta3 didn't have it yet.
>>>
>>> Markus
>>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150127/1f88a623/attachment.html>


More information about the grass-user mailing list