Re: Cannot import gdal in jupyter notebook

2022-12-16 Thread Romina Marcovecchio
wrote: > > > > On Windows, when I tried to install gdal using pip, it needed to > > > > compile > > > > part of it. I'm not set up with the Microsoft compiler and header > > > > files, so that failed. If you are on Windows, you will need to lo

Re: Cannot import gdal in jupyter notebook

2022-10-12 Thread Abdul Haseeb Azizi
On Wednesday, October 12, 2022 at 9:51:22 AM UTC+2, Abdul Haseeb Azizi wrote: > On Tuesday, October 11, 2022 at 10:29:34 PM UTC+2, MRAB wrote: > > On 2022-10-11 20:38, Thomas Passin wrote: > > > On Windows, when I tried to install gdal using pip, it needed to compile > &g

Re: Cannot import gdal in jupyter notebook

2022-10-12 Thread Abdul Haseeb Azizi
On Tuesday, October 11, 2022 at 10:29:34 PM UTC+2, MRAB wrote: > On 2022-10-11 20:38, Thomas Passin wrote: > > On Windows, when I tried to install gdal using pip, it needed to compile > > part of it. I'm not set up with the Microsoft compiler and header > > files, so

Re: Cannot import gdal in jupyter notebook

2022-10-11 Thread MRAB
On 2022-10-11 20:38, Thomas Passin wrote: On Windows, when I tried to install gdal using pip, it needed to compile part of it. I'm not set up with the Microsoft compiler and header files, so that failed. If you are on Windows, you will need to look for a binary wheel to install, or instal

Re: Cannot import gdal in jupyter notebook

2022-10-11 Thread Thomas Passin
On Windows, when I tried to install gdal using pip, it needed to compile part of it. I'm not set up with the Microsoft compiler and header files, so that failed. If you are on Windows, you will need to look for a binary wheel to install, or install and configure the compiler and header

Cannot import gdal in jupyter notebook

2022-10-11 Thread Abdul Haseeb Azizi
Hi everyone, I am new to python and I am trying to utilize this code "from osgeo import gdal". I installed python 3.10 and also I installed anaconda3 to solve this matter but I could not succeed. When I run that code I get the follo

Re: Gdal

2022-10-07 Thread Loris Bennett
Hi Conrado, "\"Jorge Conrado Conforte\"" writes: > Hi, > > > > > I installed GDAL using the pip command and conda. But, I did: > > import gdal and I had: Depending on your GDAL version, you might find you have to do from osgeo import gdal See

Re: Gdal

2022-10-07 Thread Dioumacor FAYE
If you are working on ubuntu, you can use this command. conda create --name pygdal conda activate pygdal conda install -c conda-forge gdal If installation completes import it from: from osgeo import gdal Le ven. 7 oct. 2022 à 12:01, "Jorge Conrado Conforte" < jorge.confo...@inp

Gdal

2022-10-07 Thread "Jorge Conrado Conforte"
Hi, I installed GDAL using the pip command and conda. But, I did: import gdal and I had: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'gdal' I need gdal to remap some data. Please, help me

Re: Missing global # gdal DRIVER_NAME declaration in gdal_array.py

2022-06-09 Thread Payton Ireland via Python-list
On Tuesday, March 8, 2022 at 12:52:29 PM UTC-6, Shaozhong SHI wrote: > The following warning kept coming up when running ogr2ogr. > > Warning 1: Missing global # gdal: DRIVER_NAME declaration in > C:\Users\AppData\Local\Programs\Python\Python36\Lib\site-packages\osgeo\g

Missing global # gdal DRIVER_NAME declaration in gdal_array.py

2022-03-08 Thread Shaozhong SHI
The following warning kept coming up when running ogr2ogr. Warning 1: Missing global # gdal: DRIVER_NAME declaration in C:\Users\AppData\Local\Programs\Python\Python36\Lib\site-packages\osgeo\gdal_array.py What steps to be take to resolve this issue? Regards, David -- https://mail.python.org

Issues of pip install gdal and fiona

2022-03-06 Thread Shaozhong SHI
I downloaded .whl files for fiona and gdal to go with Python3.6.5. However, I am having trouble with red error messages. Though Gdal is now working, there is a warning message - Missing global ~ gdal: DRIVER_NAME declaration gdal_array,py Can anyone advise on how to resolve the issues

Re: Install GDAL

2020-04-22 Thread Kushal Kumaran
J Conrado writes: > Hi, > > > I'm trying to install GDAL. I used conda and PIP and I didn't have sucess. > > > I used for pip to insatal GDAL3.0.4: > > > pip install GDAL > > > Collecting GDAL >   Using cached GDAL-3.0.4.tar.gz (577 kB

Install GDAL

2020-04-22 Thread J Conrado
Hi, in my question how to install GDAl, I forgot to write that I want to install GDAL on Linux. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

Re: Install GDAL

2020-04-22 Thread Souvik Dutta
This might work. https://stackoverflow.com/questions/43587960/gdal-installation-error-using-pip/43600989 Souvik flutter dev On Wed, Apr 22, 2020, 9:52 PM J Conrado wrote: > > > Hi, > > > I'm trying to install GDAL. I used conda and PIP and I didn't have sucess. >

Install GDAL

2020-04-22 Thread J Conrado
Hi, I'm trying to install GDAL. I used conda and PIP and I didn't have sucess. I used for pip to insatal GDAL3.0.4: pip install GDAL Collecting GDAL   Using cached GDAL-3.0.4.tar.gz (577 kB) Building wheels for collected packages: GDAL   Building wheel for GDAL (setup.py)

python gdal error

2017-09-08 Thread falcone . giuseppe
Hi to all, I'm new to python program and I have a problem with the following code. I'm unable to read field_data variable in retrieve_model_params function. In debug, execution ends immediately without a message. Anyone have some idea about that? If the for cycle in retrieve_model_params is moved

Re: PYTHON GDAL

2017-07-14 Thread Fabien
On 07/14/2017 03:57 PM, jorge.conr...@cptec.inpe.br wrote: Hi, I installed the GDAL 2.2.1 using conda. Then I did: import gdal and I had: Traceback (most recent call last): File "", line 1, in File "/home/conrado/miniconda2/lib/python2.7/site-packages/gdal.p

PYTHON GDAL

2017-07-14 Thread jorge . conrado
Hi, I installed the GDAL 2.2.1 using conda. Then I did: import gdal and I had: Traceback (most recent call last): File "", line 1, in File "/home/conrado/miniconda2/lib/python2.7/site-packages/gdal.py", line 2, in from osgeo.gdal import deprecation_warn

Re: PYTHON GDAL

2017-05-23 Thread dieter
jorge.conr...@cptec.inpe.br writes: > ... > and I had: > > import gdal > Traceback (most recent call last): > ... > line 17, in swig_import_helper > _mod = imp.load_module('_gdal', fp, pathname, description) > ImportError: libicui18n.so.56: cannot open

PYTHON GDAL

2017-05-23 Thread jorge . conrado
Hi, I'm trying to run a script to read and plot an geotiff data. And I use: import gdal and I had: import gdal Traceback (most recent call last): File "", line 1, in File "/home/conrado/miniconda2/lib/python2.7/site-packages/gdal.py", line 2, in

Re: Cannot import GDAL

2017-01-11 Thread Terry Reedy
On 1/11/2017 12:31 PM, Falter, Donald [USA] wrote: I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. The version I get when I activate IDLE is: MSC v.1900 32 bit (Intel)] on win32. In downloading the GDAL bindings the latest version I can find is release-1800-gdal

Re: Cannot import GDAL

2017-01-11 Thread Terry Reedy
On 1/11/2017 5:06 PM, Fabien wrote: On 01/11/2017 10:59 PM, Fabien wrote: I would strongly recommend to use conda (http://conda.pydata.org/miniconda.html) for managing your packages and environments, and then use the conda-forge channel (https://conda-forge.github.io/) to install gdal: conda

Re: Cannot import GDAL

2017-01-11 Thread Fabien
On 01/11/2017 10:59 PM, Fabien wrote: I would strongly recommend to use conda (http://conda.pydata.org/miniconda.html) for managing your packages and environments, and then use the conda-forge channel (https://conda-forge.github.io/) to install gdal: conda install -c conda-forge gdal I

Re: Cannot import GDAL

2017-01-11 Thread Fabien
On 01/11/2017 06:31 PM, Falter, Donald [USA] wrote: I am new to Python and I am trying to utilize GDAL GDAL is notoriously difficult to install :-( I would strongly recommend to use conda (http://conda.pydata.org/miniconda.html) for managing your packages and environments, and then use the

Re: Cannot import GDAL

2017-01-11 Thread Irmen de Jong
On 11-1-2017 18:31, Falter, Donald [USA] wrote: > I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. > I installed the following: gdal-201-1800-core.msi and > GDAL-2.1.2.win32-py3.4.msi. Those don't match. You'll have to use a MSI built for py3.6,

Cannot import GDAL

2017-01-11 Thread Falter, Donald [USA]
I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. The version I get when I activate IDLE is: MSC v.1900 32 bit (Intel)] on win32. In downloading the GDAL bindings the latest version I can find is release-1800-gdal-2-1-2-mapserver-7-0-2 so I installed the following

Convert timeseries GDAL raster format (vrt) to NetCDF

2016-01-14 Thread milad . khakpour
I tried to package a timeseries for vrt file to NetCDF. The problem is, it converts layer by layer and save it to NetCDF which it took much time (also with memory allocation). I wanted to do is to save it chunk by chunk which I do not have any idea how to do it ! Does someone have any solution

Re: Georeferencing Image with GDAL

2015-03-19 Thread Fabien
On 19.03.2015 09:00, Sumesh K.C. wrote: I've been trying to georeference image with GDAL. (...) I'm trying to do everything for the beginning. Can anyone guide me, how i should start? Hi, first I would try to do some tutorials about GDAL and read some documentation and exampl

Georeferencing Image with GDAL

2015-03-19 Thread Sumesh K.C.
Hello Everyone, I've been trying to georeference image with GDAL. I've a number of GCPs (Ground Control Points) that can be easily identified on the image. And what I'm trying is to create a program to georeference image by entering the GCP value on the corresponding point o

Re: GDAL Installation in Enthought Python Distribution

2015-02-26 Thread Terry Reedy
On 2/26/2015 2:47 AM, Leo Kris Palao wrote: Would like to request how to install GDAL in my Enthought Python Distribution (64-bit). The best place to ask about the Enthought Python Distribution is a list devoted to the E. P. D. -- Terry Jan Reedy -- https://mail.python.org/mailman

Re: GDAL Installation in Enthought Python Distribution

2015-02-26 Thread Mark Lawrence
On 26/02/2015 07:47, Leo Kris Palao wrote: Hi Python Users, Would like to request how to install GDAL in my Enthought Python Distribution (64-bit). I am having some problems making GDAL work. Or can you point me into a blog that describes how to set up GDAL in Enthought Python Distribution

GDAL Installation in Enthought Python Distribution

2015-02-25 Thread Leo Kris Palao
Hi Python Users, Would like to request how to install GDAL in my Enthought Python Distribution (64-bit). I am having some problems making GDAL work. Or can you point me into a blog that describes how to set up GDAL in Enthought Python Distribution. Thanks for any help. -Leo -- https

Configuring problems with GDAL in enthought Python Canopy

2015-02-25 Thread Leo Kris Palao
Hi ALL, Just wanted to ask if somebody could guide me in installing GDAL in my Python installed using Canopy. Could you give me some steps how to successfully install this package? I got it running using my previous Python Installation, but I removed it and used Canopy Python now. btw: my python

Re: GDAL installation

2015-02-11 Thread Leo Kris Palao
Hi Asim, thanks for your help. It is working properly now. Thanks, -Leo On Wed, Feb 11, 2015 at 4:48 PM, Asim Jalis wrote: > Hi Leo, > > This might be a PATH issue. > > See this discussion for details. > > > https://pythongisandstuff.wordpress.com/2011/07/07/installing

Re: GDAL installation

2015-02-11 Thread Asim Jalis
Hi Leo, This might be a PATH issue. See this discussion for details. https://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-on-windows/ Asim On Tue, Feb 10, 2015 at 9:11 PM, Leo Kris Palao wrote: > Hi Python Users, > > I currently installed the Pyt

GDAL installation

2015-02-10 Thread Leo Kris Palao
Hi Python Users, I currently installed the Python 2.7.9 and installed the GDAL package. First, I tried to install GDAL using PIP but it throws an error - I cannot remember the exact error message. So, I install it using easy_install command. But when I import the package I am getting this message

How To Use Python/GDAL to create a KML file from an Image?

2012-01-29 Thread Roger Zimmerman
Hi All, I'd have a contour image file, in either svg, gif or png format. I know the GPS coordinates for the four corners of the image. I'd like to create a KML file from that image. I will view the KML file in Google Earth or ARCGIS. I understand that GDAL can do this, and I saw a tu

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-28 Thread kBob
On Jun 25, 9:51 am, Max Erickson wrote: > kBob wrote: > > On Jun 25, 1:26 am, Mark Lawrence > > wrote: > >> On 24/06/2010 21:48, Christian Heimes wrote: > > >> >>   I am attempting to install the GDAL bindings (GDAL-1.7.1) > >> >>

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread Max Erickson
kBob wrote: > On Jun 25, 1:26 am, Mark Lawrence > wrote: >> On 24/06/2010 21:48, Christian Heimes wrote: >> >> >>   I am attempting to install the GDAL bindings (GDAL-1.7.1) >> >> on a Windows XP Desktop with Python 2.6 and GDAL. During >> >&g

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread Christian Heimes
> I'll try my luck with Cygwin's ggc before I look into another C/C++ > compiler. Better grab a recent build of MinGW32. Python's build system has native support for mingw32. IIRC Cygwin's GCC is only supported for Cygwin builds of Python. Christian -- http://mail.python.org/mailman/listinfo/p

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread kBob
On Jun 25, 1:26 am, Mark Lawrence wrote: > On 24/06/2010 21:48, Christian Heimes wrote: > > >>   I am attempting to install the GDAL bindings (GDAL-1.7.1) on a > >> Windows XP Desktop with Python 2.6 and GDAL. During install, the > >> script finishes with &qu

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread Mark Lawrence
On 24/06/2010 21:48, Christian Heimes wrote: I am attempting to install the GDAL bindings (GDAL-1.7.1) on a Windows XP Desktop with Python 2.6 and GDAL. During install, the script finishes with "error: Unable to find vcvarsall.bat". What dependencies am I missing? Visual S

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-24 Thread Christian Heimes
> I am attempting to install the GDAL bindings (GDAL-1.7.1) on a > Windows XP Desktop with Python 2.6 and GDAL. During install, the > script finishes with "error: Unable to find vcvarsall.bat". > > What dependencies am I missing? Visual Studio 2008 Christian -- http:

GDAL-1.7.1 : vcvarsall.bat missing

2010-06-24 Thread kBob
I am attempting to install the GDAL bindings (GDAL-1.7.1) on a Windows XP Desktop with Python 2.6 and GDAL. During install, the script finishes with "error: Unable to find vcvarsall.bat". What dependencies am I missing? C:\PyPI\GDAL-1.7.1>c:\python26\python setup.py install ru

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Helly John J.
rror 2. the interaction with the gdal_merge.py error handling No suggestions on the first two, other than to perhaps install easy_install and GDAL and friends using the python.org 2.5 and/or to ask in a more specialized forum. Otherwise, everything's peachy. Good luck! -- Ned Deily,

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Ned Deily
t; 2. the interaction with the gdal_merge.py error handling No suggestions on the first two, other than to perhaps install easy_install and GDAL and friends using the python.org 2.5 and/or to ask in a more specialized forum. > Otherwise, everything's peachy. Good luck! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Helly John J.
Hi. You are correct about finding the module, Ned. Thanks for that although I don't understand why it works. However, there are complications. 1. Using '/usr/bin/python' and 'from osgeo import gdal' works but throws an error the first time it's invoked

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Helly John J.
la CA 92093 +01 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) / URL (http://www.sdsc.edu/~hellyj) On Feb 19, 2009, at 11:16 AM, Ned Deily wrote: In article , Ned Deily wrote: It looks like you have installed GDAL to the site-packages directory of the Apple-supplied pytho

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Ned Deily
In article , Ned Deily wrote: > It looks like you have installed GDAL to the site-packages directory of > the Apple-supplied python 2.5 (which, for 10.5, is 2.5.1, not 2.4). > That site-packages directory is /Library/Python/2.5. The Apple-supplied > python comes with a sym link f

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Ned Deily
; I'm a newbie to python and am running: > > OS X 10.5.6 > > Python 2.5.4 >[...] > > and have run easy_install for gdal like this: > > > > /Library/Python/2.5/site-packages>sudo easy_install GDAL > > Password: > > Searching for GDAL > > Bes

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Philip Semanchuk
s the Python to which you installed GDAL. There shouldn't be anything else you have to do once easy-install is complete. As Miles pointed out, you should probably try this: from osgeo import gdal instead of this: import gdal Although I gather the latter should work based on the documentat

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Helly John J.
ie to python and am running: OS X 10.5.6 Python 2.5.4 Hi John, Are you using the system Python or have you installed another version? Cheers Philip and have run easy_install for gdal like this: /Library/Python/2.5/site-packages>sudo easy_install GDAL Password: Searching for GDAL Be

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Helly John J.
) / stonesteps7 (iChat) http://www.sdsc.edu/~hellyj On Feb 17, 2009, at 2:43 PM, Miles wrote: On Mon, Feb 16, 2009 at 8:35 PM, Helly John J. wrote: However, when I run python and try to import gdal, this is what happens: Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) [GCC 4.0.1 (Apple Computer, Inc

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-17 Thread Miles
On Mon, Feb 16, 2009 at 8:35 PM, Helly John J. wrote: > However, when I run python and try to import gdal, this is what happens: > Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) > [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin > Type "help", "copyright",

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-17 Thread Philip Semanchuk
On Feb 16, 2009, at 8:35 PM, Helly John J. wrote: Hi. I'm a newbie to python and am running: OS X 10.5.6 Python 2.5.4 Hi John, Are you using the system Python or have you installed another version? Cheers Philip and have run easy_install for gdal like this: /Library/Pytho

Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-16 Thread Helly John J.
Hi. I'm a newbie to python and am running: OS X 10.5.6 Python 2.5.4 and have run easy_install for gdal like this: /Library/Python/2.5/site-packages>sudo easy_install GDAL Password: Searching for GDAL Best match: GDAL 1.6.0 Processing GDAL-1.6.0-py2.5-macosx-10.5-i386.egg GDAL 1.6.0 is

Re: unable to install gdal

2008-03-12 Thread luis
On 10 mar, 09:49, luis <[EMAIL PROTECTED]> wrote: > On 9 mar, 16:37, luis <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > On Windows xp sp2 and python 2.4 > > > Yesterday I running old versions of gdal, and I try to upgrade > > > I downlo

Re: unable to install gdal

2008-03-10 Thread luis
On 9 mar, 16:37, luis <[EMAIL PROTECTED]> wrote: > Hi > > On Windows xp sp2 and python 2.4 > > Yesterday I running old versions of gdal, and I try to upgrade > > I download gdalwin32exe150.zip and gdal-python-13.win32-py2.4.exe > I unzip gdalwin32exe150.zip in

unable to install gdal

2008-03-09 Thread luis
Hi On Windows xp sp2 and python 2.4 Yesterday I running old versions of gdal, and I try to upgrade I download gdalwin32exe150.zip and gdal-python-13.win32-py2.4.exe I unzip gdalwin32exe150.zip in C:\gdalwin32-1.5 I follow install's instructions from http://trac.osgeo.org/gdal

Re: Use of Python with GDAL. How to speed up ?

2006-03-24 Thread Serge Orlov
a bit complicated to reduce all my 2D > arrays to 1D arrays because I am working with the gdal library, which > works only with 'numeric' arrays. You can try to convert numeric array into array.array. Serge. -- http://mail.python.org/mailman/listinfo/python-list

Re: Use of Python with GDAL. How to speed up ?

2006-03-23 Thread Julien Fiore
ed to access the array values in the openness function. As regards array.array, it seems a bit complicated to reduce all my 2D arrays to 1D arrays because I am working with the gdal library, which works only with 'numeric' arrays. Julien -- http://mail.python.org/mailman/listinfo/python-list

Re: Use of Python with GDAL. How to speed up ?

2006-03-22 Thread Serge Orlov
Julien Fiore wrote: > Thanks for the psyco information, Serge. > > > 2) Rewrite the code to be vectorized (don't use psyco) Right now your > > code *doesn't* get any speed benefit from numpy > > I do not understand this point. How to rewrite the code ? vectorized code means one operation work on m

Re: Use of Python with GDAL. How to speed up ?

2006-03-22 Thread Kent Johnson
Julien Fiore wrote: > Thanks Caleb for the advice, > > I profiled my code with the following lines: > > import profile, pstats > > profile.runctx('openness(infile,outfile,R)',globals(),locals(),'profile.log') > p = pstats.Stats('profile.log') > p.sort_stats('time') > p.print_stat

Re: Use of Python with GDAL. How to speed up ?

2006-03-22 Thread Julien Fiore
Thanks Caleb for the advice, I profiled my code with the following lines: import profile, pstats profile.runctx('openness(infile,outfile,R)',globals(),locals(),'profile.log') p = pstats.Stats('profile.log') p.sort_stats('time') p.print_stats(10) The outputs tells me that the ope

Re: Use of Python with GDAL. How to speed up ?

2006-03-22 Thread Julien Fiore
Thanks for the psyco information, Serge. > 2) Rewrite the code to be vectorized (don't use psyco) Right now your > code *doesn't* get any speed benefit from numpy I do not understand this point. How to rewrite the code ? Do you mean in C ? Julien -- http://mail.python.org/mailman/listinfo/pyth

Re: Use of Python with GDAL. How to speed up ?

2006-03-17 Thread Serge Orlov
Julien Fiore wrote: > Hi, > I wrote a function to compute openness (a digital elevation model > attribute). The function opens the gdal-compatible input raster and > reads the values in a square window around each cell. The results are > stored in a "1 line buffer". At

Re: Use of Python with GDAL. How to speed up ?

2006-03-17 Thread Caleb Hattingh
Hi The documentation for the python profiler in the python library reference is extremely readable (well done James Roskin!?). Profile your code, and when you find where the speed problem occurs, try pitching just that section of code in comp.lang.python. You will likely get much feedback. Ever

Use of Python with GDAL. How to speed up ?

2006-03-17 Thread Julien Fiore
Hi, I wrote a function to compute openness (a digital elevation model attribute). The function opens the gdal-compatible input raster and reads the values in a square window around each cell. The results are stored in a "1 line buffer". At the end of the line, the buffer is written to