Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

max_of_sta函数中used_coords=dtime,指定了span且keep_all=False时,dtimes需要sort #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meteva/base/fun/statisticing.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def max_of_sta(sta,used_coords = ["member"],span = None, contain_start = False,k
begin_dtime = dtimes[0]+dhour_unit * (step - 1)
rain_ac = meteva.base.between_dtime_range(rain_ac,begin_dtime,dtimes[-1]) # 删除时效小于range的部分
dtimes =np.array(list(set(rain_ac.loc[:, "dtime"].values.tolist())))
dtimes.sort()
if not keep_all:
dh = ((dtimes - dtimes[-1]) / dhour_unit).astype(np.int32)
new_dtimes = dtimes[dh % step == 0]
Expand Down