Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
5b7f73be
Commit
5b7f73be
authored
9 months ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
824b5624
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/util/gfs_reader.py
+4
-4
4 additions, 4 deletions
modules/util/gfs_reader.py
with
4 additions
and
4 deletions
modules/util/gfs_reader.py
+
4
−
4
View file @
5b7f73be
...
@@ -344,7 +344,7 @@ def get_time_interpolated_point_s(xr_dataset_s, time_s, fld_name_s, time, lons,
...
@@ -344,7 +344,7 @@ def get_time_interpolated_point_s(xr_dataset_s, time_s, fld_name_s, time, lons,
return
intrp_pt
return
intrp_pt
def
get_time_interpolated_voxel
(
xr_dataset_s
,
time_s
,
time
,
fld_name
,
lon
,
lat
,
press
,
x_width
=
5
,
y_width
=
5
,
z_width
=
3
,
method
=
'
linear
'
):
def
get_time_interpolated_voxel
(
xr_dataset_s
,
time_s
,
time
,
fld_name
,
lon
,
lat
,
press
,
x_width
=
3
,
y_width
=
3
,
z_width
=
3
,
method
=
'
linear
'
):
vox_s
=
[]
vox_s
=
[]
for
ds
in
xr_dataset_s
:
for
ds
in
xr_dataset_s
:
vox
=
get_voxel
(
ds
,
fld_name
,
lon
,
lat
,
press
,
x_width
=
x_width
,
y_width
=
y_width
,
z_width
=
z_width
)
vox
=
get_voxel
(
ds
,
fld_name
,
lon
,
lat
,
press
,
x_width
=
x_width
,
y_width
=
y_width
,
z_width
=
z_width
)
...
@@ -358,7 +358,7 @@ def get_time_interpolated_voxel(xr_dataset_s, time_s, time, fld_name, lon, lat,
...
@@ -358,7 +358,7 @@ def get_time_interpolated_voxel(xr_dataset_s, time_s, time, fld_name, lon, lat,
return
intrp_vox
return
intrp_vox
def
get_voxel
(
xr_dataset
,
fld_name
,
lon
,
lat
,
press
,
x_width
=
5
,
y_width
=
5
,
z_width
=
3
):
def
get_voxel
(
xr_dataset
,
fld_name
,
lon
,
lat
,
press
,
x_width
=
3
,
y_width
=
3
,
z_width
=
3
):
if
lon360
:
if
lon360
:
if
lon
<
0
:
if
lon
<
0
:
lon
+=
360
lon
+=
360
...
@@ -393,7 +393,7 @@ def get_voxel(xr_dataset, fld_name, lon, lat, press, x_width=5, y_width=5, z_wid
...
@@ -393,7 +393,7 @@ def get_voxel(xr_dataset, fld_name, lon, lat, press, x_width=5, y_width=5, z_wid
return
sub_fld
return
sub_fld
def
get_time_interpolated_voxel_s
(
xr_dataset_s
,
time_s
,
time
,
fld_name_s
,
lon
,
lat
,
press
,
x_width
=
5
,
y_width
=
5
,
z_width
=
3
,
method
=
'
linear
'
):
def
get_time_interpolated_voxel_s
(
xr_dataset_s
,
time_s
,
time
,
fld_name_s
,
lon
,
lat
,
press
,
x_width
=
3
,
y_width
=
3
,
z_width
=
3
,
method
=
'
linear
'
):
vox_s
=
[]
vox_s
=
[]
for
ds
in
xr_dataset_s
:
for
ds
in
xr_dataset_s
:
vox
=
get_voxel_s
(
ds
,
fld_name_s
,
lon
,
lat
,
press
,
x_width
=
x_width
,
y_width
=
y_width
,
z_width
=
z_width
)
vox
=
get_voxel_s
(
ds
,
fld_name_s
,
lon
,
lat
,
press
,
x_width
=
x_width
,
y_width
=
y_width
,
z_width
=
z_width
)
...
@@ -407,7 +407,7 @@ def get_time_interpolated_voxel_s(xr_dataset_s, time_s, time, fld_name_s, lon, l
...
@@ -407,7 +407,7 @@ def get_time_interpolated_voxel_s(xr_dataset_s, time_s, time, fld_name_s, lon, l
return
intrp_vox
return
intrp_vox
def
get_voxel_s
(
xr_dataset
,
fld_name_s
,
lon
,
lat
,
press
,
x_width
=
5
,
y_width
=
5
,
z_width
=
3
):
def
get_voxel_s
(
xr_dataset
,
fld_name_s
,
lon
,
lat
,
press
,
x_width
=
3
,
y_width
=
3
,
z_width
=
3
):
if
lon360
:
if
lon360
:
if
lon
<
0
:
if
lon
<
0
:
lon
+=
360
lon
+=
360
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment