Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GFW Creator
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
Paleoclimate Dynamics
Projects
PalMod
GFW Creator
Commits
36a1191c
Commit
36a1191c
authored
4 years ago
by
Paul Gierz
Browse files
Options
Downloads
Patches
Plain Diff
fix: fixes unit conversion (it was the wrong way around)
parent
047f7adf
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
gfw_creator/gfw_creator.py
+1
-2
1 addition, 2 deletions
gfw_creator/gfw_creator.py
with
1 addition
and
2 deletions
gfw_creator/gfw_creator.py
+
1
−
2
View file @
36a1191c
...
...
@@ -67,8 +67,7 @@ def create_homogeneous_hosing(lat_0, lat_1, lon_0, lon_1, hosing_strength):
# `hosing_strength` is given in Sv. Convert this to m3/s:
#
# 1 Sv = 10**6 m3/s
# 1 m3/s = 1 Sv / 1.e6
hosing_strength
/=
1.0e6
hosing_strength
*=
1.0e6
# The gfw_atmo file must be given in m/s, so we divide by the area for
# conversion m3/s --> m/s :
hosing_per_area
=
hosing_strength
/
_lat_lon_area
(
lat_0
,
lat_1
,
lon_0
,
lon_1
)
...
...
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