Oleksandr Huziy
Oleksandr Huziy
@awarnock3 Have you sent your example somewhere? I would like to play with it. Cheers
Sorry @awarnock3, but I am still not able to lacate the script(s)...
Maybe the shapes of the data and lons arrays should be the same, try using np.meshgrid: ``` python lons2d, lats2d = np.meshgrid(lons, lats) # use lons2d for addcyclic... and plotting...
At this point, I would suggest uploading your file somewhere, just to check if meshgrid solves your initial problem. Cheers
meshgrid is failing because your lons and lats are already 2d.
If you need the specified region you would have to shift the part of data and longitudes (those that are greater than 180) and make sure that longitudes increase from...
I think the shiftgrid function is used for what you need. But unfortunately, it assumes 1d coordinates... The most general way of doing it would be to convert your coordinates...
Try to reproject with QGIS.. I agree it's a bit annoying )) http://gis.stackexchange.com/questions/35590/how-to-reproject-a-vector-layer-in-qgis Maybe cartopy can handle projected shapefiles, can anyone confirm please? Cheers
Is there any chance that those negative values are very small?? maybe z[abs(z) < 1e-2] = 0 could help? Cheers 2015-11-23 12:43 GMT-05:00 jhcsu [email protected]: > I added corner_mask='legacy' and...
Hi Solter: Works for me with the latest master from github (1.0.8): https://github.com/guziy/PyNotebooks/blob/master/basemap_issue_250.ipynb ``` In [4]: matplotlib.__version__ Out[4]: '1.5.0' ``` Maybe try upgrading? Cheers