Send grass-windows mailing list submissions to
        grass-windows@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osgeo.org/mailman/listinfo/grass-windows
or, via email, send a message with subject or body 'help' to
        grass-windows-requ...@lists.osgeo.org

You can reach the person managing the list at
        grass-windows-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-windows digest..."


Today's Topics:

   1. Re: grass evnironment variables and grass session (maven apache)
   2. run grass in command line (maven apache)


----------------------------------------------------------------------

Message: 1
Date: Mon, 1 Mar 2010 10:13:26 +0800
From: maven apache <apachemav...@gmail.com>
Subject: Re: [GRASS-windows] grass evnironment variables and grass
        session
Cc: grass-windows <grass-windows@lists.osgeo.org>
Message-ID:
        <b6ae15041002281813kdb6f0fao5ee8ffaf9b502...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

2010/2/27 Glynn Clements <gl...@gclements.plus.com>

>
> maven apache wrote:
>
> > BTW, is the 6.4.svn version in the download page of  grass is stable?
>
> Anything with ".svn" in the name is a snapshot of the SubVersion
> repository, which changes from day to day.
>

The same bat works just on the 6.3 , when I change to 6.4 ,it does not work.
why?


------------------
@echo off

rem *******Environment variables***********

rem Set GRASS Installation Directory Variable
set GRASSDIR=F:\anzhuang\GRASS  //when I change to 6.4, it does not work.


rem set GISBASE=D:\GrassDataBase

set GISRC=C:\Documents and Settings\Administrator\.grassrc6

rem Set Path to utilities (libraries and bynaries) used by GRASS

set PATH=%GRASSDIR%\msys\bin;%PATH%
set PATH=%GRASSDIR%\extrabin;%GRASSDIR%\extralib;%GRASSDIR%\extrabin;%PATH%
set
PATH=%GRASSDIR%\tcl-tk\bin;%GRASSDIR%\sqlite\bin;%GRASSDIR%\gpsbabel;%PATH%
set
PATH=%PATH%;%GRASSDIR%\bin;%GRASSDIR%\lib;%GRASSDIR%\scripts;%GRASSDIR%\etc;%GRASSDIR%\sqlite\lib;%GRASSDIR%\sqlite\bin;


rem Path to the proj files (notably the epsg projection list)
set GRASS_PROJSHARE=%GRASSDIR%\proj
------------------

>
> --
> Glynn Clements <gl...@gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/grass-windows/attachments/20100301/164ebbc9/attachment-0001.html

------------------------------

Message: 2
Date: Mon, 1 Mar 2010 13:06:43 +0800
From: maven apache <apachemav...@gmail.com>
Subject: [GRASS-windows] run grass in command line
To: grass-windows <grass-windows@lists.osgeo.org>
Message-ID:
        <b6ae15041002282106kad74d83r6dc8fc59e3276...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

HI:
I want to run grass in a command line model, however when I write a bat,it
works just for 6.3 version , and some command can not work for example I can
run g.version ,rather than r.fillnulls.
The grass variable bat is :
-------
@echo off

rem *******Environment variables***********

rem Set GRASS Installation Directory Variable
set GRASSDIR=F:\anzhuang\GRASS


rem set GISBASE=D:\GrassDataBase

set GISRC=C:\Documents and Settings\Administrator\.grassrc6

rem Set Path to utilities (libraries and bynaries) used by GRASS

set PATH=%GRASSDIR%\msys\bin;%PATH%
set PATH=%GRASSDIR%\extrabin;%GRASSDIR%\extralib;%GRASSDIR%\extrabin;%PATH%
set
PATH=%GRASSDIR%\tcl-tk\bin;%GRASSDIR%\sqlite\bin;%GRASSDIR%\gpsbabel;%PATH%
set
PATH=%PATH%;%GRASSDIR%\bin;%GRASSDIR%\lib;%GRASSDIR%\scripts;%GRASSDIR%\etc;%GRASSDIR%\sqlite\lib;%GRASSDIR%\sqlite\bin;


rem Path to the proj files (notably the epsg projection list)
set GRASS_PROJSHARE=%GRASSDIR%\proj
----------

And I write a work bat :
---------
r.in.gdal
input=D:\data\hdf5\new\OMI-Aura_L3-OMTO3e_2009m0729_v003-2009m0731t020127.tif
output=aa location=al
g.gisenv set=LOCATION_NAME=al
g.region rast=aa
r.null map=aa setnull=-1.267e+30--1.268e+30
r.fillnulls input=aa output=ab tension=40 smooth=0.1
r.out.gdal input=ab format=GTiff
output=D:/OMI-Aura_L3-OMTO3e_2009m0729_v003-2009m0731t020127.tif
---------
It does not work, it tell me that the r.fillnulls is not a valide command.
I wonder why?

In fact what I am trying to do is to call grass in my web application(like
the web processing service),now I want to handle the hdf5 data,the following
is my idea:
1) use gdalinfo to get the information of the he5,(the gdal model in grass
6.3 does not support this command, the 6.4 support)
2) change the subdataset to geotiff, use gdal_translate
3) import the tiff to grass and create a new location according the tif
4) log in to the new location use g.gisenv
5) set some sepical cell data to null by using r.null....
6) Interpolation the null data using r.fillnulls.
7) export the map to geotiff.

So anyone can give some advise?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/grass-windows/attachments/20100301/0d3c89ff/attachment-0001.html

------------------------------

_______________________________________________
grass-windows mailing list
grass-windows@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-windows


End of grass-windows Digest, Vol 43, Issue 1
********************************************

Reply via email to