Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 01 18:43
    lgarzio commented #2060
  • Jul 01 18:42
    lgarzio commented #2060
  • Jul 01 18:01
    greglucas commented #2060
  • Jul 01 17:44
    dopplershift commented #2060
  • Jul 01 17:33
    lgarzio opened #2060
  • Jul 01 12:54
    supershushu commented #1722
  • Jul 01 12:53
    supershushu commented #1722
  • Jul 01 12:53
    supershushu commented #1722
  • Jul 01 12:52
    supershushu commented #1722
  • Jul 01 01:43
    aluthfian commented #2048
  • Jul 01 01:42
    SciTools-assistant unlabeled #2048
  • Jul 01 01:42
    aluthfian synchronize #2048
  • Jun 30 19:00
    greglucas synchronize #1980
  • Jun 30 02:28
    greglucas synchronize #1980
  • Jun 30 02:27
    greglucas synchronize #1998
  • Jun 29 13:12
    greglucas commented #2053
  • Jun 29 13:10
    greglucas commented #2047
  • Jun 29 13:09
    greglucas closed #2055
  • Jun 29 13:09
    greglucas commented #2055
  • Jun 29 03:06
    dopplershift commented #2059
Leonardo
@leonardojimenez1990
thanks @QuLogic .
tfardet
@tfardet:matrix.org
[m]
Hi there, I have a quick question: I made a (very) simple PR on GitHub, but as I tried to run the tests locally before submitting, I had to make a lot of ugly hacks (copy-pasting files) to get it to work. Is there a document explaining how to run the tests locally?
Greg Lucas
@greglucas
Sadly, no :( SciTools/cartopy#1371
You shouldn't have had to copy-paste things though...
Greg Lucas
@greglucas
OK, I tagged a release candidate and it looks like it uploaded the sdist: https://pypi.org/project/Cartopy/0.19.0rc1/
Of course, now I can't build it locally to make sure it is good. Let me know if I messed anything up in the branch/tag work.
pip install cartopy==0.19.0rc1
Greg Lucas
@greglucas
n/m I got it installed now (upgraded clang recently on my local system which messed it up) and that rc looks good to me for installation. Let us know if anyone runs into any issues with it!
tfardet
@tfardet:matrix.org
[m]
Ah, OK, thanks for the link.
I'm used to simply inputing pytest path/to/test and that was not working well because it was trying to make local imports and obviously all generated files where missing
Greg Lucas
@greglucas
Try that with an editable install pip install -e .?
Elliott Sales de Andrade
@QuLogic
@greglucas you did create a tag named list; you'll probably want to delete that from your copies
Greg Lucas
@greglucas
Hm... Sorry about that! I think I must have done a git tag list instead of git tag -l to see what the tags were and then pushed up two tags. Luckily it doesn't look like that one did anything though? I don't see it on GH now (I assume you deleted it?) and I deleted my local tag name. Thanks for pointing that out.
Elliott Sales de Andrade
@QuLogic
Yea, I deleted it; the upload only triggers for something like v[0-9].[0-9].[0-9]*
Greg Lucas
@greglucas
:+1: Thanks!
hayesla
@hayesla:matrix.org
[m]
hey! I'm currently moving from using basemap to cartopy and have a quick question about setting the resolution of great circle plot. I have two points that I'm plotting on a PlateCarree projection, and then plotting the great circle by using the transform=ccrs.Geodetic() keyword.
I'm wondering how I can increase the resolution of this blue line? Can someone help, or point me to the right direction within the source code or docs?
Greg Lucas
@greglucas
Looks like others have had the same request recently :) There is a workaround in this issue
SciTools/cartopy#8
I think the only way to do this currently is to modify the private threshold attribute before creating your axes.
pc = ccrs.PlateCarree()
pc._threshold = 0.1
ax = plt.axes(projection=pc)
hayesla
@hayesla:matrix.org
[m]
ah ok perfect, that worked! thank you!
jdnplanets
@jdnplanets
Hello! I currently make use of Basemap in my data reduction pipeline for images of Jupiter. A commonly-used coordinate system for Jupiter (and other planets) is left-handed, i.e. increases westward. Basemap has the celestial keyword, which enables this in its projections. I'd like to move to Cartopy, but I can't see how to enable this in Cartopy. Could anyone advise how to do this, or if there is a plan to add this as a feature? Thanks in advance.
Ryan May
@dopplershift
@jdnplanets I'm not aware of anyone working on this. I'm not sure how Basemap accomplishes this, but looking at their implementation might shed some light on it. Just as a guess here, I'd think we'd need this to be supported by PROJ, but again, not sure how Basemap does it.
Greg Lucas
@greglucas
There is this issue from a while ago doing somewhat similar things? SciTools/cartopy#1606
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: "