[GRASS-user] Retrieve pixel resolution using Python Script

António Rocha antonio.rocha at deimos.com.pt
Mon Jun 28 13:51:12 EDT 2010


Hello Mark
I know that I can retrieve that information with gdalinfo. But I need to 
have it on a variable and get/use it in a Python Script.

Mark Seibel wrote:
> If you use gdalinfo on an image, it will output the "Pixel Size".
>
> Hope that helps.
> Mark
>
> 2010/6/28 António Rocha <antonio.rocha at deimos.com.pt>:
>   
>> Greetings
>>
>> I'm trying to retrieve an image (not yet imported to GRASS) pixel resolution
>> through a Python Script but so far i was unable to figure out a method to do
>> this. Is this possible? I have used g.proj to retrieve its projection and
>> datum but not the Pixel resolution.
>> THanks for your help
>>
>> Best regards,
>> Antonio R.
>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus signature
>> database 5234 (20100628) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>>     
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 5234 (20100628) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
>   



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5235 (20100628) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the grass-user mailing list