Start running ParkerRiver. Bug fix calc_IslandWidths.

parent 2cd0f981
......@@ -38,7 +38,7 @@ sitemap = {
'ParkerRiver':{'region': 'Massachusetts', 'site': 'ParkerRiver',
'code': 'pr',
'MHW':1.22, 'MLW':-1.37,
'id_init_val':None,
'id_init_val':80000,
'morph_state': 24},
'Monomoy':{'region': 'Massachusetts', 'site': 'Monomoy',
'code': 'mon',
......
......@@ -1203,7 +1203,7 @@ def calc_IslandWidths(in_trans, barrierBoundary, out_clipped='clip2island', tID_
print('Getting the width along each transect of the oceanside land (WidthPart)...')
out_clipsingle = out_clipped + '_singlepart'
arcpy.MultipartToSinglepart_management(out_clipped, out_clipsingle)
clipsingles = FCtoDF(out_clipsingle, dffields = ['SHAPE@LENGTH', tID_fld], length=True)
clipsingles = FCtoDF(out_clipsingle, dffields = [tID_fld], length=True)
widthpart = clipsingles.groupby(tID_fld)['SHAPE@LENGTH'].first()
widthpart.name = 'WidthPart'
......@@ -1217,7 +1217,7 @@ def calc_IslandWidths(in_trans, barrierBoundary, out_clipped='clip2island', tID_
# WidthLand
print('Getting the width along each transect of above water portion of the barrier (WidthLand)...')
clipped = FCtoDF(out_clipped, dffields = ['SHAPE@LENGTH', tID_fld], length=True, verbose=False)
clipped = FCtoDF(out_clipped, dffields = [tID_fld], length=True, verbose=False)
widthland = clipped.groupby(tID_fld)['SHAPE@LENGTH'].first()
widthland.name = 'WidthLand'
......
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