View ffmpeg.ipy
import os
b = !ls
cd C:\ffmpeg\bin
for file_name in b[6:]:
input_file = '"G:\\videos\\' + file_name + '"'
output_file = '"G:\\videos\\' + file_name[:-4] + '.mov"'
os.system('ffmpeg -i ' + input_file + " " + output_file)
View buoy_his_to_df_sorted.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View read_mat_file_timeseries.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View concat_wave_heights.py
import os
import pandas as pd
os.chdir('D://J_Morrison//Data//Datawell//Siadar_HebMarine1')
wave_height_dfs = []
for year in os.listdir('.'):
os.chdir(year)
for month in os.listdir('.'):
os.chdir(month)
wave_height_dfs.append(pd.read_hdf('buoy_data.h5','wave_height'))
os.chdir('..')
View dedupe_df.py
def dedupe_df(df):
df['index'] = df.index
df = df.drop_duplicates(subset='index')
df = df.drop("index",1)
return df
View wpa-supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="BTHub3-****"
key_mgmt=WPA-PSK
proto=RSN
group=CCMP TKIP
pairwise=CCMP TKIP
proto=RSN
psk="********"
View toolbox_comparison_helper_functions.py
import pandas as pd
from datetime import datetime
from scipy.stats.stats import pearsonr
his_columns = ['date_time', 'tp', 'dirp', 'sprp', 'tz', 'hm0', 'ti', 't1',
'tc', 'tdw2', 'tdw1', 'tpc', 'nu','eps','qp','ss','tref','tsea',
'bat']
hiw_columns = ['date_time','% no reception errors','hmax','tmax','h1_10',
't1_10','h1_3','t1_3','Hav','Tav','Eps','#Waves']
View datenum2datetime.py
from datetime import datetime, timedelta
matlab_datenum = 731965.04835648148
def matlab_to_python_datetime(matlab_datenum):
return datetime.fromordinal(int(matlab_datenum)) + timedelta(days=matlab_datenum%1) - timedelta(days = 366)
matlab_to_python_datetime(matlab_datenum)
View buoy_marker.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.