Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/dtcenter/METcalcpy into …
Browse files Browse the repository at this point in the history
…feature_update_python
  • Loading branch information
bikegeek committed Feb 25, 2025
2 parents 3631adb + a1a1ba1 commit 237a20f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metcalcpy/contributed/blocking_weather_regime/Blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,11 @@ def run_Calc_Blocks(self,ibl,GIBL,lon,tsin):
locbi = np.array([locb[0]])
ll1=0
pass1 = 0
ai=[0]
add=0
for ll in np.arange(0,len(locb)-1,1):
if ((dd[locb[ll+1].astype(int)] - dd[locb[ll1].astype(int)]) >=1) & ((dd[locb[ll+1].astype(int)] - dd[locb[ll1].astype(int)]) <=2):
add = datemp[ll1] + datemp[ll+1]
ai = np.where(add==2)[0]
ai = np.where(np.atleast_1d(add == 2))[0]
if len(ai)>overlap:
locbi=np.append(locbi,locb[ll+1])
ll1=ll+1
Expand Down

0 comments on commit 237a20f

Please sign in to comment.