Skip to content

Commit

Permalink
reduced radius for quadrant fitting (bit faster)
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanormondt committed Jul 5, 2024
1 parent 94de682 commit f2394d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
}
},
"python.formatting.provider": "black"
Expand Down
6 changes: 3 additions & 3 deletions cht_cyclones/tropical_cyclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
# Third-Party Library Imports
import fiona
import geopandas as gpd
from geojson import Feature, FeatureCollection
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pyproj
import shapely
from geojson import Feature, FeatureCollection
from netCDF4 import Dataset
from scipy.interpolate import CubicSpline, interp1d
from scipy.ndimage import uniform_filter1d
Expand Down Expand Up @@ -2376,7 +2376,7 @@ def compute_ensemble(self, number_of_realizations=None):
# Make GeoDataFrame of this timestamp and track
point = Point(ensemble_lon[it, nn], ensemble_lat[it, nn])
if self.best_track.unit_intensity == "knots":
if (ensemble_vmax[it, index] * knots_to_ms) > 20:
if (ensemble_vmax[it, nn] * knots_to_ms) > 20:
if ensemble_ar35[it, nn] == -999:
AR35 = -999
else:
Expand Down Expand Up @@ -2821,7 +2821,7 @@ def fit_wind_field_holland2010(
size_factor = 1
phi = np.arange(90, -270 - 10, -10) # radial angles (cartesian, degrees)
rmax = rmax * 1000 # convert from km to m
r = np.arange(4000, 1000000 + 4000, 4000)
r = np.arange(5000, 500000 + 5000, 5000)

# first estimates
xn = 0.5
Expand Down

0 comments on commit f2394d5

Please sign in to comment.