Code cleanup
This commit is contained in:
parent
86f881f09f
commit
5fae108133
|
|
@ -8,21 +8,17 @@ _AJMR
|
||||||
|
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import matplotlib as mpl
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import matplotlib.dates as mdates
|
import matplotlib.dates as mdates
|
||||||
from math import ceil, isnan
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import geopandas as gp
|
import geopandas as gp
|
||||||
gp.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
|
gp.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
|
||||||
|
|
||||||
import scipy as sp
|
import scipy as sp
|
||||||
import scipy.ndimage
|
import scipy.ndimage
|
||||||
from astropy.convolution import convolve, Gaussian2DKernel, interpolate_replace_nans
|
from astropy.convolution import Gaussian2DKernel
|
||||||
import cartopy.crs as ccrs
|
|
||||||
import contextily as ctx
|
import contextily as ctx
|
||||||
import os
|
import os
|
||||||
import datetime
|
|
||||||
from shapely.geometry import Point
|
from shapely.geometry import Point
|
||||||
|
|
||||||
#%% read in data
|
#%% read in data
|
||||||
|
|
@ -486,7 +482,7 @@ for i, miles in enumerate(np.arange(0, 3, 0.5)):
|
||||||
plotMaskDistance = (gdf_SpringSummerDat.miles_from_NC_mouth > miles) & (
|
plotMaskDistance = (gdf_SpringSummerDat.miles_from_NC_mouth > miles) & (
|
||||||
gdf_SpringSummerDat.miles_from_NC_mouth < miles + 0.5)
|
gdf_SpringSummerDat.miles_from_NC_mouth < miles + 0.5)
|
||||||
plotMaskStation = (gdf_SpringSummerDat.subfacility_code == 'Newtown Creek')
|
plotMaskStation = (gdf_SpringSummerDat.subfacility_code == 'Newtown Creek')
|
||||||
plotMaskVar = (gdf_SpringSummerDat.chemical_name == 'Temperature (field)') # Temperature (field)'
|
plotMaskVar = (gdf_SpringSummerDat.chemical_name == 'Temperature (field)')# Temperature (field)'
|
||||||
|
|
||||||
plotMask = plotMaskDistance & plotMaskStation & plotMaskVar
|
plotMask = plotMaskDistance & plotMaskStation & plotMaskVar
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue