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
d8521ab5
Commit
d8521ab5
authored
1 year ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
6ac6d368
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/util.py
+14
-4
14 additions, 4 deletions
modules/util/util.py
with
14 additions
and
4 deletions
modules/util/util.py
+
14
−
4
View file @
d8521ab5
...
@@ -14,6 +14,7 @@ from util.setup import ancillary_path
...
@@ -14,6 +14,7 @@ from util.setup import ancillary_path
from
scipy.interpolate
import
RectBivariateSpline
,
interp2d
from
scipy.interpolate
import
RectBivariateSpline
,
interp2d
from
scipy.ndimage
import
gaussian_filter
from
scipy.ndimage
import
gaussian_filter
from
scipy.signal
import
medfilt2d
from
scipy.signal
import
medfilt2d
from
cartopy.crs
import
Geostationary
,
Globe
LatLonTuple
=
namedtuple
(
'
LatLonTuple
'
,
[
'
lat
'
,
'
lon
'
])
LatLonTuple
=
namedtuple
(
'
LatLonTuple
'
,
[
'
lat
'
,
'
lon
'
])
...
@@ -665,10 +666,7 @@ def add_noise(data, noise_scale=0.01, seed=None, copy=True):
...
@@ -665,10 +666,7 @@ def add_noise(data, noise_scale=0.01, seed=None, copy=True):
return
data
return
data
geos_goes16_fd
=
None
# Keep for reference. These pkl files are incompatible with latest version of Cartopy
geos_goes16_conus
=
None
geos_h08_fd
=
None
# f = open(ancillary_path+'geos_crs_goes16_FD.pkl', 'rb')
# f = open(ancillary_path+'geos_crs_goes16_FD.pkl', 'rb')
# geos_goes16_fd = pickle.load(f)
# geos_goes16_fd = pickle.load(f)
# f.close()
# f.close()
...
@@ -681,6 +679,18 @@ geos_h08_fd = None
...
@@ -681,6 +679,18 @@ geos_h08_fd = None
# geos_h08_fd = pickle.load(f)
# geos_h08_fd = pickle.load(f)
# f.close()
# f.close()
geos_goes16_fd
=
Geostationary
(
central_longitude
=-
75.0
,
satellite_height
=
35786023.0
,
sweep_axis
=
'
x
'
,
globe
=
Globe
(
ellipse
=
None
,
semimajor_axis
=
6378137.0
,
semiminor_axis
=
6356752.31414
,
inverse_flattening
=
298.2572221
))
geos_goes16_conus
=
Geostationary
(
central_longitude
=-
75.0
,
satellite_height
=
35786023.0
,
sweep_axis
=
'
x
'
,
globe
=
Globe
(
ellipse
=
None
,
semimajor_axis
=
6378137.0
,
semiminor_axis
=
6356752.31414
,
inverse_flattening
=
298.2572221
))
geos_h08_fd
=
Geostationary
(
central_longitude
=
140.7
,
satellite_height
=
35785.863
,
sweep_axis
=
'
y
'
,
globe
=
Globe
(
ellipse
=
None
,
semimajor_axis
=
6378.137
,
semiminor_axis
=
6356.7523
,
inverse_flattening
=
298.25702
))
def
get_cartopy_crs
(
satellite
,
domain
):
def
get_cartopy_crs
(
satellite
,
domain
):
if
satellite
==
'
GOES16
'
:
if
satellite
==
'
GOES16
'
:
...
...
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