Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 23 14:56
    axnsantana commented #2049
  • May 23 14:53
    axnsantana opened #2050
  • May 23 12:49
    greglucas commented #2049
  • May 23 10:28
    axnsantana opened #2049
  • May 20 02:58
    aluthfian synchronize #2048
  • May 20 02:49
    aluthfian synchronize #2048
  • May 20 02:37
    SciTools-assistant labeled #2048
  • May 20 02:36
    aluthfian opened #2048
  • May 19 17:42
    dopplershift commented #2047
  • May 19 03:23
    sghelichkhani edited #2047
  • May 19 02:33
    sghelichkhani opened #2047
  • May 17 23:00
    dopplershift milestoned #2045
  • May 17 23:00
    dopplershift labeled #2045
  • May 17 23:00
    dopplershift labeled #2045
  • May 17 23:00
    dopplershift labeled #2045
  • May 17 23:00
    dopplershift labeled #2045
  • May 17 22:58
    dopplershift commented #2045
  • May 17 12:17
    HARSHBARDHANK94 closed #2046
  • May 17 12:17
    HARSHBARDHANK94 commented #2046
  • May 17 12:15
    fahdiscoding97 commented #1528
Greg Lucas
@greglucas
v0.19.0 is now out in the wild! Lets hope there aren't too many bad errors in this one ;)
Ryan May
@dopplershift
I'm waiting for the conda-forge bot to pick up the update
Greg Lucas
@greglucas
Did it get the pre-release?
Ryan May
@dopplershift
They don't normally
Greg Lucas
@greglucas
:+1:
Mark Wieczorek
@mark-wieczorek:matrix.org
[m]
Are there release notes for v0.19? Just curious if there is anything I need to know!
Greg Lucas
@greglucas
@mark-wieczorek:matrix.org, waiting for the docs to be merged on another repo still. Here is a link to the doc build from CI that shows the What's New https://2550-5282596-gh.circle-artifacts.com/0/docs/build/html/whats_new.html
Stephane Raynaud
@stefraynaud
@greglucas I saw your message. I'll try first to run successfully all the tests of master!
Greg Lucas
@greglucas
:+1:
Stephane Raynaud
@stefraynaud
All tests that plot labels (contour and gridliner) are failing with master
Greg Lucas
@greglucas
Hm... They are passing on CI's master. Are you grabbing matplotlib from the labels/testing conda-forge area? That has MPL with the specific freetype to help the image comparisons
Stephane Raynaud
@stefraynaud
Yep. I juste use python 3.8 because my old compiler fails with 3.9.
CHANNELS="-c conda-forge/label/testing -c conda-forge -c defaults"
PACKAGES_COMMON="flufl.lock owslib pep8 pillow pyepsg pyshp pytest"
PACKAGES_COMMON="$PACKAGES_COMMON pytest-xdist requests setuptools_scm"
PACKAGES_COMMON="$PACKAGES_COMMON setuptools_scm_git_archive shapely"
PACKAGES_LATEST="python=3.8 cython fiona matplotlib-base numpy proj<8 pykdtree scipy pytest-cov coveralls spyder=4"
Greg Lucas
@greglucas
:( Bummer... The CI systems list out what packages they installed and where they got them from conda list at the end of the "Install Dependencies" step. You can try to see if there is a difference between your local versions and those I guess? Here is the most recent one: https://github.com/SciTools/cartopy/runs/2413220331
Stephane Raynaud
@stefraynaud
Good idea
Leonardo
@leonardojimenez1990
Hello I would like to know how I can correctly plot the longitude on the map.
errorTrazarLongitudMap.png
errorTrazarLongitud.png
Leonardo
@leonardojimenez1990
correctoTrazarCoordenadasMap.png
codeCorrectoTrazarCoordenadasMap.png
Stephane Raynaud
@stefraynaud
hi @leonardojimenez1990 you should probably use ax.gridlines(draw_labels=True)
Leonardo
@leonardojimenez1990
Thank you very much @stefraynaud, I would like, although it seems that with the use of the code of (https://scitools.org.uk/cartopy/docs/latest/gallery/gridlines_and_labels/tick_labels.html?highlight=set_xticks), the plot of SST values are more accurate. Could you help me understand?
correctoTrazadoax.gridlines.png
Stephane Raynaud
@stefraynaud
What do you mean by "more accurate" ?
Leonardo
@leonardojimenez1990
In my appreciation, when you plot SST values on the map, you use more and smaller scale intervals. example [-2.0, -1.5, -1.0, -0.5, 0, 0.5, 1.0, 1.5, 2.0] while ax.gridlines (draw_labels = True) uses [-1.0, -0.5, 0, 0.5, 1.0]
Stephane Raynaud
@stefraynaud
I have no idea by the colorbar is changed when adding gridlines
Leonardo
@leonardojimenez1990
Thank you very much @stefraynaud , it seems like an interesting topic. Know the differences of these two plotting methods.
Rene Smit
@rcsmit
Hello! I want to use cartopy but it keeps asking for Proj 4.9.0. I installed it using the indications on https://proj.org/install.html, it is on my harddisk but it isnt connected to my python apparently
I use windows
Leonardo
@leonardojimenez1990

@stefraynaud, Better to draw with ax.gridlines (draw_labels = True)

codeCorrectoTrazarCoordenadasMap.png

When I use this code, I am introducing a tracing error. Because this code is for the Mercator projection. I hope to help fix this issue.
"# Label axes of a Mercator projection without degree symbols in the labels

and formatting labels to include 1 decimal place: "

Greg Lucas
@greglucas
@rcsmit, Is PROJ in your library path on Windows? It may be due to virtual environments not having access to where you installed PROJ... There are some Windows binaries available here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cartopy or conda-forge is another good place to look for easier installation as well.
Rene Smit
@rcsmit
thank you so much, I'll try.
Rene Smit
@rcsmit
It worked from that uci.edu site! thanks again
eocene
@eocene
Hi! How can I plot different continents with Cartopy? I.e. paleo continents...
Ryan May
@dopplershift
You’ll need some data (e.g. shapefiles) that you can use to plot or turn into some kind of Shapely feature
Elliott Sales de Andrade
@QuLogic
You can usually search for X shapefile and find something that'd work for that, e.g., plate tectonic shapefiles like https://github.com/fraxen/tectonicplates
eocene
@eocene
ok - thank you!
Stefan
@Stimj
Hi! Is this project open to adding more/unconventional projections? I'd be interested in adding support for the Dymaxion projection (e.g. https://github.com/Teque5/pydymax) if that's something that'd be interesting for the maintainers. If not then I can just hack together what I'm looking for
Elliott Sales de Andrade
@QuLogic
usually we defer the actual calculation to proj
Stefan
@Stimj
That makes more sense - I was getting pretty confused about where the actual work was done after looking through crs.py
I'll have a look at OSGeo, thank you!
Gregor Herda
@gregorhd
Hi all, in case anbody here has experience with cProfile, would you mind having a look at a Matplotlib Discourse issue of mine? It's part of an MSc thesis project. Much appreciated: https://discourse.matplotlib.org/t/cprofiling-cartopys-vs-geopandass-interface-with-matplotlib-puzzling-results/22255
Greg Lucas
@greglucas
@gregorhd, you may need to put fig.savefig() inside your function (or fig.canvas.draw()). A lot of rendering functions are lazily executed and don't happen until a draw is explicitly requested.
Gregor Herda
@gregorhd
Thanks, @greglucas. That did help a bit! For both options, the cartopy average goes up to around 13.5 seconds (vs GeoPandas' 59 seconds) - still the general behaviour persists though that the cProfiles are dumped to file (one after the other since I'm running the function through a for loop n-times) before each of the figures is rendered n-times afterwards. Hmm....
Greg Lucas
@greglucas
You need to make a blocking call in your loop then I think. fig.savefig('/tmp/data.png') I think blocks until the buffer is fully written to disk. To compare all of these cases you'll really need to read up a lot more about profiling all of these various libraries because all of them do different things under the hood that may be beneficial in certain ways, like blitting or re-using the same canvas. If you're writing to disk or just showing an in-memory representation.
Gregor Herda
@gregorhd
Ah I see! Thanks a mil. Clearly more complicated then I thought.
*than
Greg Lucas
@greglucas
Don't be discouraged by what I said either, just know it will take some thought and time to try and get right :) I'm guessing people will be interested in your findings!