<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>See the notes and output sections of the g.findfile
manpage. There you can find additional information how to use the comand in
scripts.</FONT></DIV>
<DIV><FONT face=Calibri><A
title="http://grass.fbk.eu/gdp/html_grass64/g.findfile.html STRG + Klicken, um Verknüpfung zu folgen"
href="http://grass.fbk.eu/gdp/html_grass64/g.findfile.html">http://grass.fbk.eu/gdp/html_grass64/g.findfile.html</A></FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Christian.</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=helenaherrera1980@gmail.com
href="mailto:helenaherrera1980@gmail.com">Helena Herrera</A> </DIV>
<DIV><B>Sent:</B> Monday, September 27, 2010 12:47 PM</DIV>
<DIV><B>To:</B> <A
title="mailto:christian.schwartze@uni-jena.de STRG + Klicken, um Verknüpfung zu folgen"
href="mailto:christian.schwartze@uni-jena.de">Christian Schwartze</A> ; <A
title="mailto:grass-user@lists.osgeo.org STRG + Klicken, um Verknüpfung zu folgen"
href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A> </DIV>
<DIV><B>Subject:</B> Re: [GRASS-user] Python Script- Check if a raster
exists</DIV></DIV></DIV>
<DIV><BR></DIV>Uhm. I have tried that one with
<DIV>g.findfile element=raster file=L (I have a raster map named L in my mapset)
and I get:</DIV>
<DIV>
<DIV>name=</DIV>
<DIV>mapset=</DIV>
<DIV>fullname=</DIV>
<DIV>file=</DIV>
<DIV>Which would mean that it doesn't exist.</DIV>
<DIV><BR></DIV>
<DIV>is there any other way to do this for GRASS-pythons scripts?</DIV><BR>
<DIV class=gmail_quote>On Mon, Sep 27, 2010 at 11:39 AM, Christian Schwartze
<SPAN dir=ltr><<A
href="mailto:christian.schwartze@uni-jena.de">christian.schwartze@uni-jena.de</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
name="Compose message area">
<DIV><FONT face=Calibri>Try e.g "g.findfile element=vector
file=testmap"</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Christian</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A
title="mailto:helenaherrera1980@gmail.com STRG + Klicken, um Verknüpfung zu folgen"
href="mailto:helenaherrera1980@gmail.com" target=_blank>Helena Herrera</A>
</DIV>
<DIV><B>Sent:</B> Monday, September 27, 2010 12:25 PM</DIV>
<DIV><B>To:</B> <A
title="mailto:grass-user@lists.osgeo.org STRG + Klicken, um Verknüpfung zu folgen"
href="mailto:grass-user@lists.osgeo.org"
target=_blank>grass-user@lists.osgeo.org</A> </DIV>
<DIV><B>Subject:</B> [GRASS-user] Python Script- Check if a raster
exists</DIV></DIV></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV><BR></DIV>Hi
<DIV><BR></DIV>
<DIV>I'm doing a python script and, in a process, I need to check if a raster
map exists. My idea is, if this map exists I don't need to create otherwise, I
need to create it (v.to.rast). Is there a way to check if a map exists in the
current mapset?</DIV>
<DIV>Thanks</DIV>
<DIV>Helena</DIV></DIV></DIV>
<P></P>
<HR>
<P></P>_______________________________________________<BR>grass-user mailing
list<BR><A href="mailto:grass-user@lists.osgeo.org"
target=_blank>grass-user@lists.osgeo.org</A><BR><A
title="http://lists.osgeo.org/mailman/listinfo/grass-user STRG + Klicken, um Verknüpfung zu folgen"
href="http://lists.osgeo.org/mailman/listinfo/grass-user"
target=_blank>http://lists.osgeo.org/mailman/listinfo/grass-user</A><BR>
<P></P></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>