[GRASSLIST:600] Re: How to Run GRASS modules at bash prompt
Nagesh Bhatkar
bnagesh at nio.org
Thu Apr 6 08:42:44 EDT 2006
Hello Benjamin,
Thanks for writing back and dropping in your Suggestion.
I have installed the Entire GRASS 6.0.1 package on my system since i
have being using GRASS extensively since
a long time to interpolate data and carry out digitization . I agree
with you that GRASS 6.1 is a tiny total of 72 MB in modern day era.
I wanted to use the GRASS commands at the bash prompt. Was looking if
anyone could give me suggestions as to how i could make that possible.
Am aware thats its an ardous task but might as well give it a try.
Earlier i read in the GRASSLIST archives, one of the GRASS users asking
for the same.
Regards
Nagesh
Benjamin Ducke wrote:
> Nagesh,
>
> GRASS 6.1.cvs consumes a tiny total of ca. 72 MB on your hard disk
> drive. With 320 GB disks costing around 150$,
> are you sure it will be worth the trouble figuring all this out
> to save a few megabytes? Won't it be easier to convince your
> boss to just install GRASS?
> Once that is done, it is easy to write scripts that start a
> GRASS shell session, then carry out whatever action you want
> them to.
>
> Best,
>
> Benjamin
>
> Nagesh Bhatkar wrote:
>
>>
>>
>> Dear GRASS users,
>>
>> One of my colleagues wanted to edit the islands out. I suggested him
>> to use GRASS to edit the islands (d.rast.edit). But he didnt want me
>> to install the entire GRASS because it
>> would result in unneccesary consumption of memory as he wanted to use
>> only one module of GRASS and didnt want other modules. So he asked me
>> if i could install only the GRASS modules , libraries , which were
>> needed by the d.rast.edit module which could work outside the GRASS
>> enviroment at the bash prompt.
>>
>> I modified the existing d.rast.edit module to delete insignificant
>> islands(in the relative sense)
>> which were causing some errors in the model we were running. By this
>> module , Onclick anywhere,
>> determines if its a island and if it is gives the option to delete
>> the entire island i.e set as ocean instead of editing each individual
>> cell out.
>>
>> I wanted to know if i cud use GRASS modules at bash command prompt.
>> I went through the GRASS SWIG/PERL implementation grass_warp.c .
>> But didnt quiet understand how i could implement it.
>> I have read and understood all the makefiles in
>> ~/grass-6.0.1/include/Make/ and the init.sh file.
>> kindly drop in suggestions if using GRASS modules at bash prompt is
>> possible and what i need to
>> do to accomplish that.
>>
>>
>>
>> Nagesh
>>
>>
>>
>> <http://mpa.itc.it/markus/grass61progman/swig/grass__wrap_8c.html>
>>
>>
>>
>
More information about the grass-user
mailing list