<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=187023523-12042007><FONT face=Arial size=2>I want to create and
populate two GeoTiff Metadata fields, </FONT></SPAN><SPAN
class=187023523-12042007><FONT face=Arial size=2>PCSCitation and
</FONT></SPAN><SPAN class=187023523-12042007><FONT face=Arial size=2>GTCitation
with ASCII strings. I see how I can create GDAL metadata with the gdal_translate
-mo option. How do I get these to be in the Geotiff metadata and not create a
GDAL one? </FONT></SPAN></DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial size=2>How would I do this
within a python program. I cannot find anything that points to the specific
python calls for setting metadata values when using CreateCopy in my python code
(below). Where should I look for more detailed descriptions?</FONT></SPAN></DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial size=2>import
gdal<BR>format = "GTiff"<BR>driver = gdal.GetDriverByName( format )<BR>metadata
= driver.GetMetadata()<BR>if metadata.has_key(gdal.DCAP_CREATE)
\<BR> and metadata[gdal.DCAP_CREATE] == 'YES':<BR> print
'Driver %s supports Create() method.' % format<BR>if
metadata.has_key(gdal.DCAP_CREATECOPY) \<BR> and
metadata[gdal.DCAP_CREATECOPY] == 'YES':<BR> print 'Driver %s supports
CreateCopy() method.' % format</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial size=2>src_filename =
"input.tif"<BR>dst_filename = "output.tif"<BR>src_ds = gdal.Open( src_filename
)<BR>dst_ds = driver.CreateCopy( dst_filename, src_ds, 0, [ 'TILED=YES',
'COMPRESS=PACKBITS' ] )<BR></FONT></SPAN></DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187023523-12042007>
<DIV><SPAN class=187023523-12042007><FONT face=Arial size=2>I am a newbie -
I looked through the threads and didn't see anything on this so if this has
been addressed before please point me to the appropriate
area.</FONT></SPAN></DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial
size=2></FONT></SPAN> </DIV></SPAN></DIV>
<DIV><SPAN class=187023523-12042007><FONT face=Arial size=2>Thanks for the help
on this in advance</FONT></SPAN></DIV>
<P align=left><FONT face=Arial size=2>Ron Hunt</FONT></P></BODY></HTML>