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 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 welchs_method_displacement.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View waves21_dat_plot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View AWAC_Carloway.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View awac_dat_dataframe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View plot_battery.py
import os
import matplotlib.pyplot as plt
import pandas as pd
fig = plt.figure(figsize=(20,10), dpi=100)
from datetime import datetime
os.chdir('/path/to/buoy_name/year/')
date_index = []
battery_status = []
months = os.listdir('.')
View datawell_raw_to_wafo.m
% An example file for importing datawell raw displacements into wafo
% ( http://www.maths.lth.se/matstat/wafo/ )
function [S,mean_wave_dir_deg_peak_freq, Hm0, Tp] = datawell_raw_to_wafo(file_path)
%displacements=csvread(file_path);
displacements=dlmread(file_path);
heave=displacements(:,2)/100;
north=-1*displacements(:,3)/100;
west=displacements(:,4)/100;
%length of the time series
View datawell_raw_to_diwasp.m
function output_spectra = datawell_raw_to_diwasp(file_path, output_dir, visible)
% read the raw file data into a matrix stripping signal quality info
try
raw_matrix = csvread(file_path);
catch err
disp('Problem with RAW file')
output_spectra = 0;
return
end
raw_matrix = raw_matrix/100;
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console