@@ -317,7 +317,6 @@ def coastal_refined_mesh(params, cell_width=None, lon_grd=None, lat_grd=None):
317
317
coastlines ,
318
318
lon_grd ,
319
319
lat_grd ,
320
- params ["origin" ],
321
320
params ["nn_search" ],
322
321
params ["smooth_coastline" ],
323
322
params ["plot_option" ],
@@ -336,8 +335,6 @@ def coastal_refined_mesh(params, cell_width=None, lon_grd=None, lat_grd=None):
336
335
params ["restrict_box" ],
337
336
params ["plot_option" ],
338
337
params ["plot_box" ],
339
- lon_grd ,
340
- lat_grd ,
341
338
coastlines ,
342
339
call_count )
343
340
@@ -609,8 +606,8 @@ def extract_coastlines(nc_file, nc_vars, region_box, z_contour=0, n_longest=10,
609
606
##############################################################
610
607
611
608
612
- def distance_to_coast (coastlines , lon_grd , lat_grd , origin , nn_search ,
613
- smooth_window , plot_option = False , plot_box = [], call = None ):
609
+ def distance_to_coast (coastlines , lon_grd , lat_grd , nn_search , smooth_window ,
610
+ plot_option = False , plot_box = [], call = None ):
614
611
# {{{
615
612
"""
616
613
Extracts a set of coastline contours
@@ -627,9 +624,6 @@ def distance_to_coast(coastlines, lon_grd, lat_grd, origin, nn_search,
627
624
lat_grd : ndarray
628
625
A 1D array of latitudes in degrees in the range from -90 to 90
629
626
630
- origin : ndarray
631
- A lon/lat point defining the origin, not currently used by the code
632
-
633
627
nn_search : {'kdtree', 'flann'}
634
628
The algorithm to use for the nearest neightbor search. 'flann' is
635
629
strongly recommended, as it is faster and more memory efficient in our
@@ -740,8 +734,7 @@ def distance_to_coast(coastlines, lon_grd, lat_grd, origin, nn_search,
740
734
741
735
def compute_cell_width (D , cell_width , lon , lat , dx_min , trans_start ,
742
736
trans_width , restrict_box , plot_option = False ,
743
- plot_box = [], lon_grd = [], lat_grd = [], coastlines = [],
744
- call = None ): # {{{
737
+ plot_box = [], coastlines = [], call = None ): # {{{
745
738
"""
746
739
Blend cell widths from the input field with the new resolution in the
747
740
refined region determined by the distance to the coastline contour.
@@ -787,14 +780,6 @@ def compute_cell_width(D, cell_width, lon, lat, dx_min, trans_start,
787
780
plot_box : list of float, optional
788
781
The extent of the plot if ``plot_option=True``
789
782
790
- lon_grd : ndarray
791
- A 1D array of longitudes in degrees in the range from -180 to 180 used
792
- in plotting if ``plot_option=True`` (the same as ``lon``)
793
-
794
- lat_grd : ndarray
795
- A 1D array of latitudes in degrees in the range from -90 to 90 used
796
- in plotting if ``plot_option=True`` (the same as ``lat``)
797
-
798
783
coastlines : ndarray
799
784
An n x 2 array of (longitude, latitude) points along the coastline
800
785
contours returned from ``extract_coastlines()`` used in plotting if
@@ -854,7 +839,7 @@ def compute_cell_width(D, cell_width, lon, lat, dx_min, trans_start,
854
839
855
840
# Find coordinates and data inside plotting box
856
841
lon_plot , lat_plot , cell_width_plot = get_data_inside_box (
857
- lon_grd , lat_grd , cell_width / km , plot_box )
842
+ lon , lat , cell_width / km , plot_box )
858
843
859
844
# Plot cell width
860
845
fig = plt .figure ()
0 commit comments