[GRASS-user] Using temp files in Grass Script
glynn at gclements.plus.com
Wed Mar 16 14:16:52 EDT 2011
Monica Buescu wrote:
> I'm doing a GRASS script and I have some intermediate processes
> (e.gr.mapcalc) where I produce raster maps that are not the final product (a
> kind of an intermediate product) and that i delete at the end. Since I have
> to produce a lot my question is:
> Shall I use tempfile function to create and produce them or I shall create
> these rasters as normal raster files?
g.tempfile creates files, not maps.
The usual convention for temporary map names is to include the name of
the script, "tmp", and the PID (use $$ for shell scripts, os.getpid()
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user