|
|
@ -151,6 +151,7 @@ def parse_profiles_and_sites(profiles_mat):
|
|
|
|
site_counter = 0
|
|
|
|
site_counter = 0
|
|
|
|
|
|
|
|
|
|
|
|
for i, site in enumerate(mat_data["site"]):
|
|
|
|
for i, site in enumerate(mat_data["site"]):
|
|
|
|
|
|
|
|
logger.debug('Processing site {} of {}'.format(i+1, len(mat_data['site'])))
|
|
|
|
|
|
|
|
|
|
|
|
# Give each site a unique id
|
|
|
|
# Give each site a unique id
|
|
|
|
if len(site_rows) == 0 or site_rows[-1]["beach"] != site:
|
|
|
|
if len(site_rows) == 0 or site_rows[-1]["beach"] != site:
|
|
|
@ -205,6 +206,7 @@ def parse_profiles_and_sites(profiles_mat):
|
|
|
|
profile_rows.append(
|
|
|
|
profile_rows.append(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"site_id": site_id,
|
|
|
|
"site_id": site_id,
|
|
|
|
|
|
|
|
"site_no": i,
|
|
|
|
"lon": lon[0],
|
|
|
|
"lon": lon[0],
|
|
|
|
"lat": lat[0],
|
|
|
|
"lat": lat[0],
|
|
|
|
"profile_type": profile_type,
|
|
|
|
"profile_type": profile_type,
|
|
|
|