Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bw-bestperf
FuXi
Commits
340e53cf
Commit
340e53cf
authored
Aug 16, 2023
by
tpys
Browse files
support gfs input
parent
0e8d5efa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
data_util.py
data_util.py
+2
-2
No files found.
data_util.py
View file @
340e53cf
...
...
@@ -32,7 +32,7 @@ def save_like(output, input, step, save_dir="", input_type="hres", freq=6, split
if
input_type
.
upper
()
==
"HRES"
:
dtime
=
(
step
+
2
)
*
freq
init_time
=
pd
.
to_datetime
(
input
.
time
.
values
[
0
])
ds
=
xr
.
DataArray
(
...
...
@@ -63,8 +63,8 @@ def save_like(output, input, step, save_dir="", input_type="hres", freq=6, split
new_ds
.
append
(
v
)
ds
=
xr
.
merge
(
new_ds
,
compat
=
"no_conflicts"
)
print
(
f
'Save to
{
save_name
}
...'
)
save_name
=
os
.
path
.
join
(
save_dir
,
f
'
{
dtime
:
03
d
}
.nc'
)
print
(
f
'Save to
{
save_name
}
...'
)
ds
.
to_netcdf
(
save_name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment