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.
View matlab_datenum_python_datetime_conversion.py
from datetime import datetime, timedelta
def from_matlab_datetime(matlab_datenum):
return datetime.fromordinal(int(matlab_datenum)) + timedelta(days=matlab_datenum%1) - timedelta(days = 366)
def datetime2matlabdn(dt):
mdn = dt + timedelta(days = 366)
frac_seconds = (dt-datetime(dt.year,dt.month,dt.day,0,0,0)).seconds / (24.0 * 60.0 * 60.0)
frac_microseconds = dt.microsecond / (24.0 * 60.0 * 60.0 * 1000000.0)
return mdn.toordinal() + frac_seconds + frac_microseconds
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="********"