Code Monkey home page Code Monkey logo

Comments (5)

Chilipp avatar Chilipp commented on July 1, 2024

@victoria-cherkas could you please provide a netcdf file to reproduce this issue?

from psy-maps.

Chilipp avatar Chilipp commented on July 1, 2024

I tried with the test netcdf file in this repo and I think the problem is in the autoscaling of the axes which is the default option for map_extent.

as a workaround, you can set the map_extend value to "data" to stick to the lonlatbox, e.g.

sp = psy.plot.mapvector("test-t2m-u-v.nc", name=[["u", "v"]], density=10, lonlatbox="Europe", map_extent="data")

I need to have a closer look to see if that issue comes from psyplot or cartopy.

from psy-maps.

Chilipp avatar Chilipp commented on July 1, 2024

but just to be sure @victoria-cherkas

what you get is something like

image

and what you expect is something like

image

is this correct?

from psy-maps.

victoria-cherkas avatar victoria-cherkas commented on July 1, 2024

Hi Philipp, Yes exactly that is what I'd expect, as in your images. I will try the map_extent=data as you suggest

from psy-maps.

victoria-cherkas avatar victoria-cherkas commented on July 1, 2024

Your work around works, using map_extent= 'data' and lonlatbox, thanks. Equally I can just use map_extent.

from psy-maps.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.