[SciPy-User] Obtaining contour data

Nicolas Cellier contact at nicolas-cellier.net
Mon Oct 16 10:28:25 EDT 2017


If you fear that, you can easily map the raster coordinates to the real ones and convert this after extracting the contour. It's an extra step but should not be a real difficulty. 

⁣Envoyé par TypeApp ​

Le 16 oct. 2017 16:25, à 16:25, "ashwin .D" <winash12 at gmail.com> a écrit:
>Yes I looked at that. The thing is my data is in raster
>coordinates(latitude and longitude - equidistant grid). When I pull out
>the
>coordinates from collections are these polygons (vectors) or is the
>raster
>entity still retained ?
>
>On Mon, Oct 16, 2017 at 7:50 PM, Nicolas Cellier <
>contact at nicolas-cellier.net> wrote:
>
>> It may help you
>>
>> https://stackoverflow.com/questions/5666056/matplotlib-
>> extracting-data-from-contour-lines
>>
>> 2017-10-16 15:31 GMT+02:00 ashwin .D <winash12 at gmail.com>:
>>
>>> Hello,
>>>          I have height data on a two  dimensional equidistant
>latitude
>>> longitude grid and my ultimate goal is to calculate the curvature of
>the
>>> contours. Here is an illustration of what I want to do -
>>>
>http://www.indiana.edu/%7Egeog109/topics/10_Forces&Winds/sfc_trough.html.
>>> The data is plotted on a two dimensional latitude longitude grid and
>then
>>> the height contours are calculated. I am looking to obtain the
>coordinates
>>> of the contours(shown in red) in terms of latitude and longitude so
>that I
>>> can use that information  to calculate the curvature of the contour
>points
>>> using a least squares method. Is it possible to do this in Scipy ?
>The
>>> curvature of the earth is itself irrelevant in this case and it can
>be
>>> assumed to be flat.
>>>
>>> Regards,
>>> Ashwin.
>>>
>>> _______________________________________________
>>> SciPy-User mailing list
>>> SciPy-User at python.org
>>> https://mail.python.org/mailman/listinfo/scipy-user
>>>
>>>
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User at python.org
>> https://mail.python.org/mailman/listinfo/scipy-user
>>
>>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>SciPy-User mailing list
>SciPy-User at python.org
>https://mail.python.org/mailman/listinfo/scipy-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20171016/e3d6717a/attachment-0001.html>


More information about the SciPy-User mailing list