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
0b0ce4aa
Commit
0b0ce4aa
authored
3 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
ff4c0f9f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/util/util.py
+4
-14
4 additions, 14 deletions
modules/util/util.py
with
4 additions
and
14 deletions
modules/util/util.py
+
4
−
14
View file @
0b0ce4aa
...
@@ -502,8 +502,8 @@ exmp_file_fd = '/Users/tomrink/data/OR_ABI-L1b-RadF-M6C16_G16_s20212521800223_e2
...
@@ -502,8 +502,8 @@ exmp_file_fd = '/Users/tomrink/data/OR_ABI-L1b-RadF-M6C16_G16_s20212521800223_e2
# # UR from Taiwan
# # UR from Taiwan
# lon, lat = 135.0, 35.0
# lon, lat = 135.0, 35.0
# elem_ur, line_ur = (2499, 995)
# elem_ur, line_ur = (2499, 995)
taiwan_
x
0
=
1079
taiwan_
i
0
=
1079
taiwan_
y
0
=
995
taiwan_
j
0
=
995
taiwan_lenx
=
1420
taiwan_lenx
=
1420
taiwan_leny
=
1020
taiwan_leny
=
1020
# geos.transform_point(135.0, 35.0, ccrs.PlateCarree(), False)
# geos.transform_point(135.0, 35.0, ccrs.PlateCarree(), False)
...
@@ -522,8 +522,8 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
...
@@ -522,8 +522,8 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
if
satellite
==
'
H08
'
:
if
satellite
==
'
H08
'
:
xlen
=
taiwan_lenx
xlen
=
taiwan_lenx
ylen
=
taiwan_leny
ylen
=
taiwan_leny
i_0
=
taiwan_
x
0
i_0
=
taiwan_
i
0
j_0
=
taiwan_
y
0
j_0
=
taiwan_
j
0
grd_dct
=
{
name
:
None
for
name
in
name_list
}
grd_dct
=
{
name
:
None
for
name
in
name_list
}
...
@@ -552,16 +552,6 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
...
@@ -552,16 +552,6 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
i_ul
=
i
*
w_x
i_ul
=
i
*
w_x
grd_dct_n
[
ds_name
].
append
(
grd_dct
[
ds_name
][
j_ul
:
j_ul
+
w_y
,
i_ul
:
i_ul
+
w_x
])
grd_dct_n
[
ds_name
].
append
(
grd_dct
[
ds_name
][
j_ul
:
j_ul
+
w_y
,
i_ul
:
i_ul
+
w_x
])
# TODO: replace this with numpy meshgrid and flatten
# ll = []
# cc = []
# for j in range(n_y-1):
# j_y = j_0 + j*w_y
# for i in range(n_x-1):
# i_x = i_0 + i*w_x
# ll.append(j_y)
# cc.append(i_x)
grd_dct
=
{
name
:
None
for
name
in
name_list
}
grd_dct
=
{
name
:
None
for
name
in
name_list
}
for
didx
,
ds_name
in
enumerate
(
name_list
):
for
didx
,
ds_name
in
enumerate
(
name_list
):
grd_dct
[
ds_name
]
=
np
.
stack
(
grd_dct_n
[
ds_name
])
grd_dct
[
ds_name
]
=
np
.
stack
(
grd_dct_n
[
ds_name
])
...
...
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