[GRASS-user] creat a temp workplace

I am sorry to send again,because in the last email,I have not describe my problem exectly,and sent it …

I want to handle some hdf data through a web service,and in the web service I handle the data by grass, so the problem comes out.The following is my setps:
1)translate the hdf4 to a tif by a FWTools2.2.8 which call the gdal command actually)
for example I use the command “gdal_translate [the subset] d:\aa.tif” ,
2)import the tif
“r.in.gdal input=D:/aaa6.tif output=ggg”
3)process the ggg data of grass format
for example “r.buffer map=ggg distance=30 output=temp”
4)convert the temp to tif
“r.out.gdal input=temp format=GTiff output=d:/dd.tif”
Then in the web service I return the url of the dd.tif to client.
I want to know the above setps right or not?
and in the step of 2 and 4 problems always come out…,a common problem is the data is blank even I reset the region use “g.region rast=…”
And in the step 2, I want to creat a temp location and mapset,beacuse my current location is the spanish example data…
My god,I am crazying@@!

Ps:
Thanks Nikos Alexandris very much,since I send my problem ,he always reply me quickly and never lose her(his) pacitient…

hi,
On Fri, Mar 27, 2009 at 03:33:09PM +0800, apachemaven wrote:

And in the step 2, I want to creat a temp location and mapset,beacuse my current location is the spanish example data...
My god,I am crazying@@!

basically, any location can be considered as "temp", because of after
deleting the whole directory, it is gone (uninstalled).

if you want to create temp location in a batch script, just prepare some
    template location (with PERMANENT mapset and DEFULT_WIND and other
    files)

than you can just copy this template under new name and so the temporary
location is created.

if you set the GRASS_BATCH_JOB env. variable, (shell script to be
processed as batch job), the script will be performed automatically.

jachym

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/JachymCepicky.pgp
Key fingerprint: 0C6D 0EAE 76BD 506C F299 ED8A C8AB 74B8 08D4 E08F