Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 04 14:50
    mickaellalande edited #1402
  • Dec 04 14:45
    mickaellalande commented #1402
  • Dec 03 22:23
    danbr890 edited #1407
  • Dec 03 22:22
    danbr890 opened #1407
  • Dec 02 11:00
    mickaellalande commented #1401
  • Dec 01 23:40
    kacmak7 closed #1405
  • Dec 01 23:40
    kacmak7 commented #1405
  • Dec 01 22:10
    dopplershift commented #1405
  • Dec 01 15:36
    SciTools-assistant labeled #1406
  • Dec 01 15:36
    kacmak7 opened #1406
  • Dec 01 15:03
    kacmak7 opened #1405
  • Nov 28 12:30
    stefraynaud commented #1401
  • Nov 28 12:29
    stefraynaud commented #1401
  • Nov 28 01:43
    QuLogic closed #1341
  • Nov 28 01:43
    QuLogic commented #1341
  • Nov 28 01:42
    QuLogic closed #1361
  • Nov 28 01:42

    QuLogic on master

    Fix issue #1341 by adding a Use… Tweak default user agent slight… (compare)

  • Nov 28 01:32
    QuLogic synchronize #1361
  • Nov 27 14:55
    htonchia synchronize #1361
  • Nov 27 14:40
    htonchia synchronize #1361
Elliott Sales de Andrade
@QuLogic
but we stopped building from there in CI
Ryan May
@dopplershift
Is there any reason that xenial users shouldn't just have a cartopy of a similar vintage ?
I'm not a huge fan of "yes you can use your ancient distro with ancient matplotlib and numpy but modern <insert library here>"
Elliott Sales de Andrade
@QuLogic
I'm fine with dropping it
Do you know why conda doesn't pull from defaults on CI? It only does --add for channels
e.g., proj4 is 4.9.1 in defaults, but it won't install that
Ryan May
@dopplershift
It doesn't show up for me if I do conda search proj4
Elliott Sales de Andrade
@QuLogic
ah wait, it's in pkgs/free; what is that?
Ryan May
@dopplershift
I'm not entirely sure. If I just have defaults, I'm searching "pkgs/main"
Elliott Sales de Andrade
@QuLogic
All the stuff that CI can't find for the minimum install are in pkgs/free, which seems to be enabled for me, so it 'just works'
Ryan May
@dopplershift
Is your conda recent?
Elliott Sales de Andrade
@QuLogic
Probably older than what CI ends up with, still 4.6.13
one minor version older; let me try a newer one
ah, it was removed conda/conda#8579
Ryan May
@dopplershift
Probably best to just bump to 4.9.3
Elliott Sales de Andrade
@QuLogic
yea, that's the easy one, probably not going to break anything from that
Ryan May
@dopplershift
Next release I think we need to go to the new PROJ API anyway
Elliott Sales de Andrade
@QuLogic
looks like other things we need would be 1) scipy 0.16.0 -> 0.17.1, 2) numpy 1.10.0 -> 1.10.4, 3) drop libgfortran pin if possible (it was only for old things)
that doesn't seem too bad
Ryan May
@dopplershift
Nah, sounds fine.
Elliott Sales de Andrade
@QuLogic
numpy 1.10 and scipy 0.16.0 are >4 years old even
Ryan May
@dopplershift
Wow, yeah.
Elliott Sales de Andrade
@QuLogic
I guess we should do something like NEP29 that mpl started doing
Ryan May
@dopplershift
At least adopting it as standard policy for when issues arise. I'm not particularly passionate about bumping versions preemptively
Elliott Sales de Andrade
@QuLogic
Oh boy, so many conflicts
Ryan May
@dopplershift
On conda?
Elliott Sales de Andrade
@QuLogic
Ryan May
@dopplershift
Try bumping matplotlib.
Elliott Sales de Andrade
@QuLogic
Need to bump all the way to 2.0.2 just to work with just python=2; seems to work with everything else too
Elliott Sales de Andrade
@QuLogic
Seems even worse for python 3, so I'm just going to give up and enable pkgs/free until we bump min deps
With that, the only things that fail old builds are OWSLib
Elliott Sales de Andrade
@QuLogic
OK, I've gone through as many SciPy versions as possible, without any new failures
Can't bump NumPy without bumping Matplotlib though, and that fails a few tests just from going 1.5.3->2.0.0
mauromussin
@mauromussin
Does anybody know how could I retrive a map from NASA's WMS or ESRI's WMS? I'm looking for a decent background map in order to plot some points, but the NaturalEarthFeatures are not so lovely :weary:
Elliott Sales de Andrade
@QuLogic
there are several WMS examples in the gallery
mauromussin
@mauromussin
Unfortunately there is only one and not about NASA, ESRI or ECMWF: I'm looking for a working example on these...
Elliott Sales de Andrade
@QuLogic
Well, it should be the same, you just have to get the WMS URL from those services instead.
mauromussin
@mauromussin
I've tried with ECMWF but had some issue, perhaps 1.1.1 vd 1.1.3 OSG standard?
Elliott Sales de Andrade
@QuLogic
I don't know; that part's all handled by OWSLib, I think.
htonchia
@htonchia
I use openstreetmap which works fine for my needs which are to see the roads. I don't care about how it looks.
But, openstreetmap had changed the way to request the map, so I had to fix it. The current lib/cartopy/io/img_tiles.py has been fixed for almost 12 hours now.
You can find an example on using openstreetmap tiles here: https://github.com/htonchia/cartopy-plotting-examples/blob/master/plot_osm_tiles.py
But for openstreetmap, it works only with the fixed version of img_tiles.py.
htonchia
@htonchia

I tried ECWMF (I didn't know they had a wms server, and it is well hidden). They request a token to accept the request. For public data, it is a 'public' token.
I found that one needs to put the token in the server address. So please find below an example that works with ECWMF wms server :
"""

Interactive WMS (Web Map Service)

This example demonstrates the interactive pan and zoom capability
supported by an OGC web services Web Map Service (WMS) aware axes.

"""

import cartopy.crs as ccrs
import matplotlib.pyplot as plt

def main():
fig = plt.figure(figsize=(10, 5))
ax = fig.add_subplot(1, 1, 1, projection=ccrs.InterruptedGoodeHomolosine())
ax.coastlines()
ax.add_wms(wms='https://apps.ecmwf.int/wms/?token=public',
layers=['background'])

plt.show()

https://apps.ecmwf.int/wms/?token=public&request=GetMap&layers=background

if name == 'main':
main()

mauromussin
@mauromussin
Thanks @htonchia , that example shows me that I have also a company proxy problem :unamused:
mauromussin
@mauromussin
But setting os.environ variables haven't helped
htonchia
@htonchia
I have made a new example using wms and a trick to manage corresponding geoextent with 2 plots in 2 different projections in the same window (Mercator and Plate Carree).
I don't know how to push a new example for the gallery: should I fork cartopy, add the example and pull request?
Ryan May
@dopplershift
That would be the right workflow for contributing the example, yes.
Alex Crosby
@acrosby
does anyone know why annotations on geoaxes have weird bboxes as compared to standard mpl axes where the bboxes actually coorespond to the position and extent of the annotated text?
Elliott Sales de Andrade
@QuLogic
Probably they're in the wrong transform
Alex Crosby
@acrosby
possibly
they appear the correct position, but it seems like they all share the same bbox
im sure it must have somehting to do with projection, but its unclear to me as to how/why