Commit c55b6abd authored by Carl Schreck's avatar Carl Schreck
Browse files

Automated Daily Commit - Fri Sep 18 12:00:45 EDT 2020

parent d1892677
""" 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.')
...@@ -13,8 +13,8 @@ import cjs # '~carl/lib/python' ...@@ -13,8 +13,8 @@ import cjs # '~carl/lib/python'
cjs.tstamp('Here we go!') cjs.tstamp('Here we go!')
# These are some parameters that could be useful to have up top # These are some parameters that could be useful to have up top
path = f'{os.environ["DATA_DIR"]}/prism/netcdf/tmin-198101.nc' path = f'{os.environ["DATA_DIR"]}/prism/netcdf/PRISM_tmax_198101.nc'
var_name = 'tmin' var_name = 'tmax'
ds = xr.open_dataset(path) ds = xr.open_dataset(path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment