Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
import pandas as pd | |
def read_cage_xml(cages_xml_file_path): | |
xml_cages = ET.fromstring(open(cages_xml_file_path).read()) | |
cage_details = [] | |
for x in xml_cages[0]: | |
if (x.tag[-4:]) == 'cage': | |
cage_details.append({'easting':float(x[1].text),'northing':float(x[2].text),'cageType':x[0].text,'length':x[4].text,'width':x[5].text}) | |
cages_df = pd.DataFrame(cage_details) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
waves17_columns =['Format','BurstNum','YY/MM/DD HH:MM:SS','Hs','Tp','Tz','T01','Tinv1','Dp','Dm','S0','WaterLevel','Temperature','HsSwell','TpSwell','DpSwell','HsSea','TpSea','DpSea','H13','T13','H10','T10','Hmax','Tmax','SurfTrackGd*HH'] |