Skip to content

Shading Ice Shelf with Polartoolkit #215

Answered by mdtanker
YingpuRin asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for providing those. So the parameter shading is used to provide shadows to the grid, while transparency can be used to make the grids transparent. Below is some code and figure that should give you a better starting point! Please let me know if you need any more help :)
PyGMT will have instructions for adding the text, labelled locations, and contours to your map.

from polartoolkit import fetch, maps, regions
import os
import numpy as np
import pygmt
import xarray as xr

os.environ["POLARTOOLKIT_HEMISPHERE"] = "south"

# region = regions.ross_ice_shelf
region = (-680000.0, 470000.0, -1620000.0, -310000.0)

bed = fetch.bedmap2(
    layer="bed",
    region=region,
)

# grid with 1 …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mdtanker
Comment options

@YingpuRin
Comment options

@mdtanker
Comment options

Answer selected by YingpuRin
@YingpuRin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants