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
38f72783
Commit
38f72783
authored
3 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
bc422734
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/aeolus/datasource.py
+12
-0
12 additions, 0 deletions
modules/aeolus/datasource.py
with
12 additions
and
0 deletions
modules/aeolus/datasource.py
+
12
−
0
View file @
38f72783
...
...
@@ -8,6 +8,7 @@ from pathlib import Path
from
aeolus.geos_nav
import
GEOSNavigation
from
util.util
import
GenericException
from
util.lon_lat_grid
import
LonLatGrid
def
get_parameters_clavrx
(
filename
=
'
/home/rink/data/clavrx/clavrx_OR_ABI-L1b-RadF-M6C01_G16_s20192930000343.level2.nc
'
):
...
...
@@ -113,6 +114,7 @@ class GOESL1B(Files):
return
dto
# GOES-16, CONUS. TODO: Generalize to G-16 and FD, MESO
class
CLAVRx
(
Files
):
def
__init__
(
self
,
files_path
):
super
().
__init__
(
files_path
,
10
,
'
clavrx_OR_ABI-L1b*.level2.nc
'
)
...
...
@@ -128,6 +130,9 @@ class CLAVRx(Files):
def
get_parameters
(
self
):
return
self
.
params
def
get_navigation
(
self
,
h5f
):
return
GEOSNavigation
(
sub_lon
=-
75.0
,
CFAC
=
5.6E-05
,
COFF
=-
0.101332
,
LFAC
=-
5.6E-05
,
LOFF
=
0.128212
,
num_elems
=
2500
,
num_lines
=
1500
)
class
CLAVRx_VIIRS
(
Files
):
def
__init__
(
self
,
files_path
):
...
...
@@ -144,6 +149,13 @@ class CLAVRx_VIIRS(Files):
def
get_parameters
(
self
):
return
self
.
params
def
get_navigation
(
self
,
h5f
):
lons
=
h5f
[
'
longitude
'
][:,
:]
lats
=
h5f
[
'
latitude
'
][:,
:]
lons
=
np
.
where
(
lons
<
0
,
lons
+
360
,
lons
)
ll_grid
=
LonLatGrid
(
lons
,
lats
)
return
ll_grid
class
RAOBfiles
(
Files
):
def
__init__
(
self
,
files_path
,
file_time_span
=
10
):
...
...
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