Skip to content

Commit

Permalink
fix: warning for resampling default layers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Dec 10, 2023
1 parent 69d72f4 commit 543fe60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/antarctic_plots/profile.py
Expand Up @@ -327,6 +327,14 @@ def default_layers(
Nested dictionary of earth layers and attributes
"""

if (spacing is not None) or (reference is not None) or (region is not None):
logging.warning(
"Supplying any spacing, reference, or region to `default_layers` will "
"result in resampling of the grids, which will likely take longer than "
"just using the full-resolution defaults."
)


if version == "bedmap2":
if reference is None:
reference = "eigen-gl04c"
Expand Down

0 comments on commit 543fe60

Please sign in to comment.