View read_his.py
import pandas as pd
his_columns = ['date_time', 'tp', 'dirp', 'sprp', 'tz', 'hm0', 'ti', 't1',
'tc', 'tdw2', 'tdw1', 'tpc', 'nu','eps','qp','ss','tref','tsea',
'bat']
def read_his(filepath):
return pd.read_csv(filepath, names=his_columns, index_col=[0], parse_dates=[0])
View SeaDarQ.au3
#include <Constants.au3>
; Run SeaDarQ
Run("C:\Program Files\SeaDarQ\SeaDarQ.exe")
; Wait till it's finished loading
Sleep(5000)
;Right Click Wave menu to set timer & interval
MouseClick ( "right", 689, 35)
View wunderground_api_daily_observations_to_dataframe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View import_seadarq_wave_report.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pandas_df_to_geopandas.py
from geopandas import GeoDataFrame
from shapely.geometry import Point
geometry = [Point(xy) for xy in zip(df.Lon, df.Lat)]
df = df.drop(['Lon', 'Lat'], axis=1)
crs = {'init': 'epsg:4326'}
geo_df = GeoDataFrame(df, crs=crs, geometry=geometry)
View hva_file_number_name_column.py
# Dictionary mapping file name to data contents
datawell_mappings = {'20':'heave_spectrum',
'21':'directional_spectrum',
'23':'spectrum_sync',
'25':'directional_spectral_parameters',
'26':'upcross_wave_statistics',
'28':'secondary_directional_spectrum',
'81':'sea_surface_temperature',
'82':'acoustic_current_meter',
'C1':'system_message',
View windows_to_python_datetime.py
from datetime import datetime
from datetime import timedelta
def windows_timestamp_to_python_datetime():
return datetime(1601,1,1) + timedelta(microseconds=x/10)
View iterate_over_hva_files.ipy
for directory in dirs:
%cd {directory}
!pwd
hva_files = !ls *.hva
for hva_file in hva_files:
!decode_hva.exe -f csv -o {hva_file[:-4]}%s.csv {hva_file}
%cd ..
View plot_wad_awac.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Nortek_Signature_Workflow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.