Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:44
    sagrawal-idrc edited #1357
  • 03:44
    sagrawal-idrc edited #1357
  • Aug 22 06:23
    sagrawal-idrc edited #1357
  • Aug 22 06:22
    sagrawal-idrc opened #1357
  • Aug 22 03:29
    efiring commented #1256
  • Aug 20 21:30
    jklymak edited #1356
  • Aug 20 21:29
    jklymak opened #1356
  • Aug 17 23:31
    lukelbd synchronize #1355
  • Aug 17 23:27
    lukelbd synchronize #1355
  • Aug 17 23:16
    lukelbd edited #881
  • Aug 17 22:23
    lukelbd synchronize #1355
  • Aug 17 08:43
    lukelbd edited #1355
  • Aug 16 18:28
    dopplershift milestoned #791
  • Aug 16 18:28
    dopplershift reopened #791
  • Aug 16 18:27
    dopplershift milestoned #1355
  • Aug 16 10:19
    pythonweather commented #1351
  • Aug 16 08:58
    lvankampenhout commented #791
  • Aug 16 08:58
    lvankampenhout commented #791
  • Aug 16 06:23
    lukelbd edited #1355
  • Aug 16 06:10
    lukelbd edited #1355
Ryan May
@dopplershift
I’m out for now. Thanks for the help. Night.
Elliott Sales de Andrade
@QuLogic
Alright, 'nite
Elliott Sales de Andrade
@QuLogic
@dopplershift progress on uploading docs?
Ryan May
@dopplershift
I’ll submit a PR later tonight—unfortunately I’ve not figured out how to do that from my iPad. :grin: I had been waiting to see if we were really going to need a 0.17.1, but I think we’re...ok.
Elliott Sales de Andrade
@QuLogic
Oh, hmm, does conda-forge not do 32-bit Windows builds?
Ryan May
@dopplershift
Nope, not for awhile
Elliott Sales de Andrade
@QuLogic
Thoughts on vcrpy?
du -hsc lib/cartopy/tests/cassettes/ lib/cartopy/tests/io/cassettes/ lib/cartopy/tests/mpl/cassettes/
336K    lib/cartopy/tests/cassettes/
12M    lib/cartopy/tests/io/cassettes/
4.9M    lib/cartopy/tests/mpl/cassettes/
17M    total
This includes SRTM results, too.
About half the runtime on a 4-way run.
Ryan May
@dopplershift
Interesting. I like vcrpy, I use it on another project—no problems whatsoever. On that project, though, we also control the server interface. It’d be good to have a test that we don’t break the current interface. Do we just rely on bug reports to know if SRTM has broken us?
Elliott Sales de Andrade
@QuLogic
Well, that's how we currently know if SRTM has broken...
Ryan May
@dopplershift
Right. Just was wondering what the “right” way is to do this
Elliott Sales de Andrade
@QuLogic
I was thinking we'd have a Travis cron job that runs with vcr disabled, periodically.
Ryan May
@dopplershift
That’s a good one.
Elliott Sales de Andrade
@QuLogic
As for SRTM, someone from MO needs to setup a username/password in the CI encrypted variables.
Then it should work, using the fixture I added.
Ryan May
@dopplershift
Oh yeah, I forget about hat.
Elliott Sales de Andrade
@QuLogic
Anyone understand why in test_img_transform, the first image is not clipped, but the rest are?
All the other ones do is cmap on one of the channels, so I don't know where this mask is coming from.
Elliott Sales de Andrade
@QuLogic
Hmm, I guess they really are masked, maybe? But RGB imshow doesn't mask them?
Elliott Sales de Andrade
@QuLogic
Gah, #1239 is like pulling teeth; I give up for the night.
Stephane Raynaud
@stefraynaud
Hard to have the gridliner tests pass for labels due to strict MPL version.
epifanio
@epifanio
Hi!
I was trying to install geoplot but I got stuck on this error which maybe relevant to cartopy :
epinux@libkml:~$ ipython
Python 3.7.1 (default, Oct 22 2018, 11:21:55) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import geoplot                                                          
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-1-3916336930a7> in <module>
----> 1 import geoplot

/usr/lib/python3.7/importlib/_bootstrap.py in _find_and_load(name, import_)

/usr/lib/python3.7/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)

/usr/lib/python3.7/importlib/_bootstrap.py in _load_unlocked(spec)

/usr/lib/python3.7/importlib/_bootstrap.py in _load_backward_compatible(spec)

/usr/local/lib/python3.7/dist-packages/geoplot-0.2.3-py3.7.egg/geoplot/__init__.py in <module>
----> 1 from .geoplot import (pointplot, polyplot, choropleth, aggplot, cartogram, kdeplot, sankey, voronoi,
      2                       __version__)
      3 from .crs import (PlateCarree, LambertCylindrical, Mercator, Miller, Mollweide, Robinson, Sinusoidal,
      4                   InterruptedGoodeHomolosine, Geostationary, NorthPolarStereo, SouthPolarStereo, Gnomonic,
      5                   AlbersEqualArea, AzimuthalEquidistant, LambertConformal, Orthographic, Stereographic,

/usr/lib/python3.7/importlib/_bootstrap.py in _find_and_load(name, import_)

/usr/lib/python3.7/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)

/usr/lib/python3.7/importlib/_bootstrap.py in _load_unlocked(spec)

/usr/lib/python3.7/importlib/_bootstrap.py in _load_backward_compatible(spec)

/usr/local/lib/python3.7/dist-packages/geoplot-0.2.3-py3.7.egg/geoplot/geoplot.py in <module>
      7 import matplotlib as mpl
      8 import numpy as np
----> 9 from cartopy.feature import ShapelyFeature
     10 import cartopy.crs as ccrs
     11 import warnings

/usr/local/lib/python3.7/dist-packages/cartopy/__init__.py in <module>
    105 # Commonly used sub-modules. Imported here to provide end-user
    106 # convenience.
--> 107 import cartopy.crs
    108 import cartopy.feature  # noqa: F401  (flake8 = unused import)

/usr/local/lib/python3.7/dist-packages/cartopy/crs.py in <module>
     34 import six
     35 
---> 36 from cartopy._crs import CRS, Geodetic, Globe, PROJ4_VERSION
     37 from cartopy._crs import Geocentric  # noqa: F401 (flake8 = unused import)
     38 import cartopy.trace

__init__.pxd in init cartopy._crs()

ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
I have cartopy installed with pip:
epinux@libkml:~$ sudo pip3.7 install -U cartopy
Requirement already up-to-date: cartopy in /usr/local/lib/python3.7/dist-packages (0.17.0)
Requirement already satisfied, skipping upgrade: six>=1.3.0 in /usr/lib/python3/dist-packages (from cartopy) (1.11.0)
Requirement already satisfied, skipping upgrade: shapely>=1.5.6 in /usr/local/lib/python3.7/dist-packages (from cartopy) (1.6.4.post2)
Requirement already satisfied, skipping upgrade: pyshp>=1.1.4 in /usr/local/lib/python3.7/dist-packages (from cartopy) (2.1.0)
Requirement already satisfied, skipping upgrade: setuptools>=0.7.2 in /usr/lib/python3/dist-packages (from cartopy) (40.2.0)
Requirement already satisfied, skipping upgrade: numpy>=1.10 in /usr/lib/python3/dist-packages (from cartopy) (1.14.5)
epifanio
@epifanio
manually removing old version of cartopy and installing from git master fixed the error.
Ryan May
@dopplershift
Sounds like something was funky in your environment. Sounds like you managed to work around it, though.
epifanio
@epifanio
@dopplershift yes, it was a "silent" upgrade of numpy during a pip install -U packagename
ToddMitchellGH
@ToddMitchellGH
How does one use cartopy to make a plot that includes the dateline, for example a plot of the Pacific Ocean ?
ToddMitchellGH
@ToddMitchellGH
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=180))
ax.set_extent([100, 300, -75, 75], crs=ccrs.PlateCarree()) will plot Pacific-centered.
atmosmattbrewer
@atmosmattbrewer
Hi all, I think I may have found an issue with downloading coastlines while using Cartopy version 0.17.0 in python 3.6. It seems like the URLs have changed, I can send the error message that I am receiving. When I downgraded to cartopy 0.16 the issue was solved
nevermind it seems to be this link here: http://naciscdn.org/naturalearth/h/physical/ne_h_coastline.zip
Shi Pengcheng
@shipengcheng1230
Does anyone have a good way to composite all bathymetry data using different colors, for example:
bathys = [
    'bathymetry_A_10000', 
    'bathymetry_E_6000',
    'bathymetry_I_2000',
    'bathymetry_B_9000',
    'bathymetry_F_5000',
    'bathymetry_J_1000',
    'bathymetry_C_8000',  
    'bathymetry_G_4000',
    'bathymetry_K_200',
    'bathymetry_D_7000',  
    'bathymetry_H_3000',
    'bathymetry_L_0',
]
for bathy in bathys:
    ax.add_feature(cfeature.NaturalEarthFeature(
        'physical', bathy, '10m', facecolor=?
    ))
adamlamee
@adamlamee
Such a great module! Has anyone had mpl issues in Google Colab? I'm having map features hiding a scatterplot underneath? https://colab.research.google.com/github/adamlamee/CODINGinK12-notebooksG/blob/master/Quakes2.ipynb
Elliott Sales de Andrade
@QuLogic
You can pass zorder=10 to the scatter to force it above everything
Cartopy 0.14.2 is a bit old; some of those features might have changed zorder
winash12
@winash12
adamlamee
@adamlamee
@QuLogic Thanks so much. Worked like a charm and I hadn't noticed the older version. I'm seriously digging cartopy. Thanks all
Dan Henri
@biskwikman
Hey I'm wondering if anyone knows a way to use cartopy.feature to display only one country as opposed to the whole world? I'm trying to just show Australia. Also if this is the wrong place to ask sorry.
Dan Henri
@biskwikman
I've found a way to do it by importing it and then using geopandas to isolate a single country which works very well. It doesn't seem like there's a way to filter while downloading. https://stackoverflow.com/questions/25428512/draw-a-map-of-a-specific-country-with-cartopy
Ryan May
@dopplershift
I don't think the natural earth map data, which is what Cartopy uses, has any kind of subsetting ability. Just have to download the whole thing, but it is cached, so it's only one-time cost.
pinto531
@pinto531
Hello, thanks for the amazing work! I'm trying to understand how cartopy.crs works. I see these are types of projections, but how does one specify the CRS or datum? e.g. EPSG=4617
Specifically, I'm working my way thru the Projections user guide of Geoviews (http://geoviews.org/user_guide/Projections.html), and I'm trying to specify the data CRS using an EPSG number, like: gv.Points([(-74.0, 40.7, 'NYC')], crs.Projection(globe=crs.epsg(4617), vdims='City')
but I get this error: ValueError: EPSG code does not define a projection
AHMET ANIL DINDAR
@ahmetanildindar
image.png
AHMET ANIL DINDAR
@ahmetanildindar
Dear all, I'm working on Eartquake and Structural Engineering field. It seems I might have a nice problem for the Cartopy community. The figure I've just shared was prepared manually by a respected researcher. I appreciate the work of depicting the waveforms on a basemap. It is a brilliant idea. However, I'm looking for a way creating such maps using Cartopy without any human touch. I have done some Cartopy coding and came to a point but it is clear that I'm missing something. I appreciate if anyone is interested in the creation of the given plot using Cartopy. If yes, please get in touch with me. Regards. ++Ahmet
Aleksey Bilogur
@ResidentMario
A new version of geoplot is out! https://residentmario.github.io/geoplot/index.html :tada: geoplot is a geospatial visualization library that works with GeoDataFrame inputs. Based on cartopy. Would love feedback on the docs etcetera. :slight_smile:
Chang Liao
@changliao1025
So when will Cartopy support other projections for axis label?
Ryan May
@dopplershift
That support is in master right now and should be available in the next release.
thprfssr
@thprfssr
Hey guys, I'm trying to make a map of Europe that includes the names of the countries, but I can't find how anywhere on the internet. Do you guys know if it's possible?