Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flexinvertplus
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
Container Registry
Model registry
Operate
Environments
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
flexpart
flexinvertplus
Commits
701d705c
Commit
701d705c
authored
6 years ago
by
ronesy
Browse files
Options
Downloads
Patches
Plain Diff
Corrected use of lsm
parent
958b442e
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
prep_regions/map_grid.f90
+5
-4
5 additions, 4 deletions
prep_regions/map_grid.f90
with
5 additions
and
4 deletions
prep_regions/map_grid.f90
+
5
−
4
View file @
701d705c
...
...
@@ -32,7 +32,7 @@
!! are >99% water are given negative numbers while boxes that are land are
!! given positive numbers.
!!
!! Options
:
(defined in SETTINGS
_regions)
!! Options (defined in SETTINGS
):
!! useflux - (true/false) weight surface influence by annual fluxes
!! uselanduse - (true/false) avoid gridcells with > 99% water
!! nmap - (integer) number of resolution steps to use
...
...
@@ -90,6 +90,7 @@ subroutine map_grid(config, flux, surfinf, nbox_xy)
contrib_lump
(:,:)
=
0.
sort_contrib
(:)
=
0.
water_box
(:)
=
0.
water
(:,:)
=
0.
! mean flux
flux_av
=
sum
(
flux
)/
float
(
nxregrid
*
nyregrid
)
...
...
@@ -135,13 +136,13 @@ subroutine map_grid(config, flux, surfinf, nbox_xy)
if
(
useflux
)
then
! contrib_lump : surface influence times flux
! take a certain minimum flux flux for sorting
contrib_lump
(
nfx
,
nfy
)
=
contrib_lump
(
nfx
,
nfy
)
+
surfinf
(
ix
+
i1
,
jy
+
j1
)
*
flux
(
ix
+
i1
,
jy
+
j1
)/
flux_av
contrib_lump
(
nfx
,
nfy
)
=
contrib_lump
(
nfx
,
nfy
)
+
surfinf
(
ix
+
i1
,
jy
+
j1
)
*
abs
(
flux
(
ix
+
i1
,
jy
+
j1
)
)
/
flux_av
else
! contrib_lump : surface influence only
contrib_lump
(
nfx
,
nfy
)
=
contrib_lump
(
nfx
,
nfy
)
+
surfinf
(
ix
+
i1
,
jy
+
j1
)
endif
if
(
uselanduse
)
then
water
(
nfx
,
nfy
)
=
water
(
nfx
,
nfy
)
+
(
1
-
lsm
(
ix
+
i1
,
jy
+
j1
))
water
(
nfx
,
nfy
)
=
water
(
nfx
,
nfy
)
+
(
1
.
-
lsm
(
ix
+
i1
,
jy
+
j1
))
else
! set to zero to avoid landuse consideration
water
(
nfx
,
nfy
)
=
0.
...
...
@@ -224,7 +225,7 @@ subroutine map_grid(config, flux, surfinf, nbox_xy)
x_map
(
nb
)
=
ix
y_map
(
nb
)
=
jy
sens_map
(
nb
)
=
surfinf
(
ix
,
jy
)
water_box
(
nb
)
=
water
(
ix
,
jy
)
water_box
(
nb
)
=
1.
-
lsm
(
ix
,
jy
)
nbox_xy
(
ix
,
jy
)
=
nb
endif
end
do
! nxregrid
...
...
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