[gdal-dev] gdal_calc.py

Vincent Schut schut at sarvision.nl
Mon Sep 20 07:25:52 EDT 2010


  On 09/20/2010 12:57 PM, Lucena, Ivan wrote:
> Hi Vicent,
>
> Sorry if I called you Chris.
You didn't. Chris and I just both happen to have coded our own gdal_calc 
script. They are different, each might have its pro's and con's. Sorry 
if I created some confusion... I just thought it might be interesting to 
have both implementations.
>
> I think that the gdal_calc.py implementation looks pretty good and I 
> would vote to include it as official GDAL command line tool. I could 
> upload it to <trunk>/swig/python/scripts/ if eveybody agrees.
Feel free to upload it (can't speak for Chris, of course), and to 
use/modify to your needs. However, putting it in some examples folder 
might be more appropriate?, as I don't intend to do lots of maintenance 
on this script. I just use it, and if I encounter a bug or need more 
functionality, I code it. It is the result of some years of evolution, 
however I personally don't feel the code is 'production quality'...

Regards,
Vincent.
>
> Regards,
>
> Ivan
>
> Vincent Schut wrote:
>>  Just fyi: I've been using my own brewn version of a band-math like 
>> command line gdal python script for some years now (have sent it to 
>> the gdal list once, like a year ago or something), you might be 
>> interested to take a look at the source and compare approaches. I've 
>> attached the script with this email. Afaic it's public domain, do 
>> with it what you want :-)
>>
>> Cheers,
>> Vincent.
>>
>> On 09/17/2010 07:38 PM, Ivan Lucena wrote:
>>> Hi Chris,
>>>
>>> That sounds good.
>>>
>>> Is that by any chance based on this idea here: 
>>> [http://trac.osgeo.org/gdal/wiki/SummerOfCode]?
>>>
>>> Regards,
>>>
>>> Ivan
>>>
>>>
>>>>   -------Original Message-------
>>>>   From: Chris Yesson<Chris.Yesson at ioz.ac.uk>
>>>>   To: gdal-dev at lists.osgeo.org
>>>>   Subject: [gdal-dev] gdal_calc.py
>>>>   Sent: Sep 17 '10 09:29
>>>>
>>>>   Hi all,
>>>>
>>>>
>>>>   I have been playing around with a python/gdalnumeric-based raster
>>>>   calculator for a while now 
>>>> (http://static.zsl.org/files/gdal-calc-1218.py).
>>>>
>>>>
>>>>   I thought it was time to try to share this properly via GDAL.
>>>>
>>>>
>>>>   Could this go on the sample python scripts directory?
>>>>
>>>>   Could I get advice on what I would need to do to get it into the 
>>>> main
>>>>   scripts?
>>>>
>>>>
>>>>   Many thanks
>>>>
>>>>
>>>>   - Chris
>>>>
>>>>
>>>>   _Dr Chris Yesson_
>>>>   _Postdoctoral Researcher_
>>>>   _Institute__ of Zoology_
>>>>   _Zoological Society of London_
>>>>   _Regent's Park_
>>>>   _London__ NW1 4RY_
>>>>   _020 7449 6267_
>>>>   [LINK: http://www.zsl.org/chrisyesson/] 
>>>> _http://www.zsl.org/chrisyesson/_
>>>>   [LINK: http://eu-fp7-coralfish.net/] _http://eu-fp7-coralfish.net/_
>>>>
>>>>
>>>>   The Zoological Society of London is incorporated by Royal Charter
>>>>   Principal Office England. Company Number RC000749
>>>>   Registered address:
>>>>   Regent's Park, London, England NW1 4RY
>>>>   Registered Charity in England and Wales no. 208728
>>>>
>>>>
>>>>   
>>>> _________________________________________________________________________ 
>>>>
>>>>   This e-mail has been sent in confidence to the named addressee(s).
>>>>   If you are not the intended recipient, you must not disclose or 
>>>> distribute
>>>>   it in any form, and you are asked to contact the sender immediately.
>>>>   Views or opinions expressed in this communication may not be those
>>>>   of The Zoological Society of London and, therefore, The Zoological
>>>>   Society of London does not accept legal responsibility for the 
>>>> contents
>>>>   of this message. The recipient(s) must be aware that e-mail is not a
>>>>   secure communication medium and that the contents of this mail may
>>>>   have been altered by a third party in transit.
>>>>   If you have any issues regarding this mail please contact:
>>>>   [LINK: mailto:administrator at zsl.org] administrator at zsl.org.
>>>>   
>>>> ___________________________________________________________________________ 
>>>>
>>>>
>>>>
>>>>   This message has been scanned for viruses by [LINK:
>>>>   http://www.mailcontrol.com/] MailControl, a service from [LINK:
>>>>   http://www.blackspider.com/] BlackSpider Technologies.
>>>>   --------------------
>>>>   _______________________________________________
>>>>   gdal-dev mailing list
>>>>   [LINK: compose.php?to=gdal-dev at lists.osgeo.org] 
>>>> gdal-dev at lists.osgeo.org
>>>>   [LINK: http://lists.osgeo.org/mailman/listinfo/gdal-dev]
>>>>   http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


More information about the gdal-dev mailing list