Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
193d25bb
Commit
193d25bb
authored
Nov 2, 2022
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
fix syntax
parent
aa9e2632
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dartwrf/create_obsseq.py
+1
-7
1 addition, 7 deletions
dartwrf/create_obsseq.py
dartwrf/obs/calculate_obs_locations.py
+2
-4
2 additions, 4 deletions
dartwrf/obs/calculate_obs_locations.py
with
3 additions
and
11 deletions
dartwrf/create_obsseq.py
+
1
−
7
View file @
193d25bb
...
...
@@ -41,20 +41,14 @@ def obskind_read():
#####################
# Global variables
obs_kind_nrs
=
obskind_read
()
# DART internal indices
# position on earth for RTTOV ray geometry
lat0
=
45.
lon0
=
0.
# position on Earth for DART, domain center when coords_from_domaincenter=True
lat0_center
=
45.
lon0_center
=
0.
sat_az
=
"
180.0
"
sat_zen
=
"
45.0
"
obs_kind_nrs
=
obskind_read
()
def
degr_to_rad
(
degr
):
"""
Convert to DART convention (radians)
...
...
This diff is collapsed.
Click to expand it.
dartwrf/obs/calculate_obs_locations.py
+
2
−
4
View file @
193d25bb
...
...
@@ -18,8 +18,6 @@ lon0_center = 0.
radius_earth_meters
=
6.371
*
1E6
def
square_array_from_domaincenter
(
n_obs
,
distance_between_obs_km
):
"""
Create equally spaced grid for satellite observations every 4 km
...
...
@@ -45,7 +43,7 @@ def square_array_from_domaincenter(n_obs, distance_between_obs_km):
dx_4km_in_degree
=
distance_between_obs_meters
/
m_per_degree_x
lon
=
lon0_center
+
ix
*
dx_4km_in_degree
coords
.
append
((
lat
,
lon
))
return
coords
def
evenly_on_grid
(
n_obs
,
omit_covloc_radius_on_boundary
=
True
):
"""
Observations spread evenly over domain
...
...
@@ -91,4 +89,4 @@ def evenly_on_grid(n_obs, omit_covloc_radius_on_boundary=True):
for
j
in
range
(
n_obs_x
):
coords
.
append
((
lats
[
skip_gridpoints
+
i
*
gridpoints_between_obs
,
skip_gridpoints
+
j
*
gridpoints_between_obs
],
lons
[
skip_gridpoints
+
i
*
gridpoints_between_obs
,
skip_gridpoints
+
j
*
gridpoints_between_obs
]))
return
coords
\ No newline at end of file
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