blank_map.py 957 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
""" Testing out issues with the cartopy mapping."""

__author__ = "Carl Schreck"
__email__ = "carl_schreck@ncsu.edu"
__copyright__ = "Copyright 2020, North Carolina State University"
__license__ = "BSD-3.0"

import xarray as xr
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import os
import sys
import argparse
import cjs # '~carl/lib/python'

cjs.tstamp('Here we go!')
# These are some parameters that could be useful to have up top

fig, ax = plt.subplots(nrows=1, ncols=1,
                       subplot_kw={'projection':
                                       ccrs.PlateCarree()},
                       figsize=[6.4, 5.0])

scale = '50m'
cjs.add_map(ax, scale, states_on=False, countries_on=False,
            edgecolor=(0.2, 0.2, 0.2), linewidth=0.5,
            facecolor='none', zorder=3)
cjs.add_map_ticks(ax, lon_interval=30, lat_interval=10)

plt.show()


cjs.tstamp('Thank you, come again.')