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
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="********" |
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 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'] |
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
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) |
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
{'datetime':'Timestamp: date and time (ISO8601)', | |
'Tp': 'the peak period (the reciprocal of the peak frequency) [s]', | |
'Dirp': 'the wave direction at the peak frequency [°]', | |
'Sprp': 'the directional spread at the peak frequency [°]', | |
'Tz': 'the zero-upcross period [s]', | |
'Hs': 'the significant wave height [cm]', | |
'TI': 'the integral period, or Tm(-2,0) [s]', | |
'T1': 'the mean period, or Tm(0,1) [s]', | |
'Tc': 'the crest period, or Tm(2,4) [s]', | |
'Tdw2': 'wave period Tm(-1,1) [s]', |
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 sys | |
# Be safe and define a maximum of frames we're trying to walk up | |
MAX_FRAMES = 20 | |
def save_to_interactive(dct): | |
n = 0 | |
# Walk up the stack looking for '__name__' | |
# with a value of '__main__' in frame globals | |
for n in range(MAX_FRAMES): |
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 LatLon | |
import pandas as pd | |
import re | |
# Function for importing Leica Geo Office created comma separated variables | |
# files from post processed data, decimal seconds coordinates are converted | |
# to decimal degrees. | |
def read_lgo_csv_decimal_seconds_to_decimal_degrees(input_file, output_file): | |
cols = ['id','type','timestamp', 'Latitude', 'Longtitude', 'Height', |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Feb 06 14:38:11 2015 | |
@author: le12jm | |
""" | |
from datetime import datetime | |
#from hebtools.common import wave_power | |
import glob |
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 LatLon | |
import pandas as pd | |
import re | |
leica_points = pd.read_csv('D://project_3.csv',names=['id','type','timestamp','Latitude','Longtitude','Height','Quality']) | |
coords = [] | |
chars = '[\xb0\'"]' | |
for index, row in leica_points.iterrows(): | |
lat_dmds = re.sub(chars,'',row.Latitude) | |
long_dmds = re.sub(chars,'',row.Longtitude) |
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
# translate_multipoint | |
# Translation of Shapefile record geometries in a functional style. | |
from fiona import collection | |
from functools import partial | |
from itertools import imap | |
import logging | |
log = logging.getLogger() |