Пример #1
0
def getwindow(end=datetime.now()):
    
    s = cfg.config()

    roll_window_numpts, offsetstart, start, end = set_monitoring_window(s.io.roll_window_length,s.io.data_dt,s.io.rt_window_length,s.io.num_roll_window_ops,endpt=end)
    
    return rtwindow(roll_window_numpts, offsetstart, start, end),s
Пример #2
0

import numpy as np
import pandas as pd
import sys
from datetime import datetime
from sqlalchemy import create_engine
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import os


import querySenslopeDb as q
import configfileio as cfg

config = cfg.config()

sys.path.insert(0, '/home/dynaslope/Desktop/Senslope Server')


def plotBasemap(ax,eq_lat,eq_lon,plotsites,critdist):
    latmin = plotsites.lat.min()-0.2
    latmax = plotsites.lat.max()+0.2
    lonmin = plotsites.lon.min()-0.2
    lonmax = plotsites.lon.max()+0.2
    
    m = Basemap(llcrnrlon=lonmin,llcrnrlat=latmin,urcrnrlon=lonmax,urcrnrlat=latmax,
            resolution='f',projection='merc',lon_0=(lonmin+lonmax)/2,lat_0=
            (latmin+latmax)/2            
            )
            
Пример #3
0

import numpy as np
import pandas as pd
import sys
from datetime import datetime
from sqlalchemy import create_engine
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import os


import querySenslopeDb as q
import configfileio as cfg

config = cfg.config()

sys.path.insert(0, '/home/dynaslope/Desktop/Senslope Server')


def plotBasemap(ax,eq_lat,eq_lon,plotsites,critdist):
    latmin = plotsites.lat.min()-0.2
    latmax = plotsites.lat.max()+0.2
    lonmin = plotsites.lon.min()-0.2
    lonmax = plotsites.lon.max()+0.2
    
    m = Basemap(llcrnrlon=lonmin,llcrnrlat=latmin,urcrnrlon=lonmax,urcrnrlat=latmax,
            resolution='f',projection='merc',lon_0=(lonmin+lonmax)/2,lat_0=
            (latmin+latmax)/2            
            )