<commit_before>

# 23 Sep 14 - SN & EI
# For SI2 meeting - comparisons of slope and aspect calculated
# by Burroughs, Horn and best fit plane methods available in Landlab

from landlab import RasterModelGrid
import matplotlib.pyplot as plt
import numpy as np
from landlab.plot.imshow import imshow_field, imshow_grid

# Elevation_NS.npy is predetermined elevation profile that has
# a North and a South facing slope with a flat valley in the middle
# Slopes were defined to range from 0 through 55 in steps of 5 degrees
# Aspect is supposed to be 0 deg for North facing and 180 deg for South facing

grid = RasterModelGrid(53,67,10.)
elev = np.load('C:\Users\Jordan\Documents\GitHub\landlab\landlab\examples\elevation_NS.npy')
grid['node']['Elevation'] = elev

ids = grid.node_index_at_cells
# Burroughs
slope_Burrough, aspect_Burrough = \
    grid.calculate_slope_aspect_at_nodes_Burrough(ids,vals = 'Elevation')
# Horn
slope_horn,aspect_horn = \<commit_msg>node slope using patches added to routine comparison file<commit_after>

# 23 Sep 14 - SN & EI
# For SI2 meeting - comparisons of slope and aspect calculated
# by Burroughs, Horn and best fit plane methods available in Landlab

from landlab import RasterModelGrid
import matplotlib.pyplot as plt
import numpy as np
from landlab.plot.imshow import imshow_field, imshow_grid

# Elevation_NS.npy is predetermined elevation profile that has
# a North and a South facing slope with a flat valley in the middle
# Slopes were defined to range from 0 through 55 in steps of 5 degrees
# Aspect is supposed to be 0 deg for North facing and 180 deg for South facing

grid = RasterModelGrid(53,67,10.)
elev = np.load('elevation_NS.npy')
grid['node']['Elevation'] = elev

ids = grid.node_index_at_cells
# Burroughs
slope_Burrough, aspect_Burrough = \
    grid.calculate_slope_aspect_at_nodes_Burrough(ids,vals = 'Elevation')
# Horn
slope_horn,aspect_horn = \
{'fraction_non_alphanumeric': 0.06565126050420168, 'fraction_numerical': 0.01995798319327731, 'mean_word_length': 4.971786833855799, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7054212', 'n_tokens_mistral': 641, 'n_tokens_neox': 580, 'n_words': 226}