Skip to content

Bug with -JG North/South Pole and -B0 and issues with MOVIE_WIDTH #3341

Closed

Description

@Esteban82

I create an animation of the earth rotating from the south pole to the north pole following the example of the manpages of Movie and I found:

  1. A bug with respect the figures of the South/North Pole. The border (only happened with -Bg) is slightly separated from the edge of the map (see example below).
  2. An issue with movie. When I use %MOVIE_WIDTH% to set the width of the figure, the frame is cut in the sides and left out of the animation. The width is just for the map. Maybe this could clarify in the docs.
Movie.bat
gmt math -T-90/90/1 -o1 T = "angles.txt"
gmt movie "globe.bat" -Nglobe7 -T"angles.txt" -Agif -C15cx15cx100

Globe.bat
gmt pscoast -Rg -JG-65/%MOVIE_COL0%/%MOVIE_WIDTH% -Ggray -Sdodgerblue2 -Cgray -N1/0.2,- -Bg -X0 -Y0 -W1/

Actual outcome
globe7_000

globe7_018

System information

  • Operating system: Win 10
  • GMT version (gmt --6.0.0):

Activity

  1. added a commit that references this issue on May 16, 2020
    1511369
  2. PaulWessel commented on May 16, 2020

    @PaulWessel
    Contributor

    Thanks for this test! I will address the two concerns:

    1. By default for geographic maps that can do it, the frame setting (MAP_FRAME_TYPE) is set to fancy. However, for the azimuthal projections that can only be applied for the polar version (latitude is ±90). So that is why it suddenly tries to draw the fancy border, and because there is no -Baf there is not black/white checkerboard, only the extra circle (that also gets clipped a bit due to finite pixel size (half that line is outside the canvas, and the other half is probably resulting in zero pixels inside at the tangent points). I think all I can do is to add some text in the movie documentation to recommend setting MAP_FRAME_TYPE=plain when making geographic maps with changing projection centers. If you rerun your movie with that setting it will be better.
    2. Yes, the MOVIE_WIDTH (and MOVIE_HEIGHT) are the dimensions of the movie canvas and not the projection width. To fit you would need -X0 -Y0. I will clarify that as well and see how well we explain the use of -X -Y since the default 2.5c is usually too far in.

    These changes are address in #3342.

  3. added a commit that references this issue on May 16, 2020
    fd744e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions