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
584f30aa
Commit
584f30aa
authored
6 years ago
by
ronesy
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix to LSM resolution
parent
d8fb18b4
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
prep_regions/read_lsm.f90
+4
-4
4 additions, 4 deletions
prep_regions/read_lsm.f90
with
4 additions
and
4 deletions
prep_regions/read_lsm.f90
+
4
−
4
View file @
584f30aa
...
...
@@ -89,8 +89,8 @@ subroutine read_lsm(files)
endif
! indices to variable
ix
=
minloc
(
lon
,
dim
=
1
,
mask
=
abs
(
lon
-
dx
/
2.
-
rllx
)
.eq.
minval
(
abs
(
lon
-
dx
/
2.
-
rllx
)))
jy
=
minloc
(
lat
,
dim
=
1
,
mask
=
abs
(
lat
-
dy
/
2.
-
rlly
)
.eq.
minval
(
abs
(
lat
-
dy
/
2.
-
rlly
)))
ix
=
minloc
(
lon
,
dim
=
1
,
mask
=
abs
(
lon
-
r
dx
/
2.
-
rllx
)
.eq.
minval
(
abs
(
lon
-
r
dx
/
2.
-
rllx
)))
jy
=
minloc
(
lat
,
dim
=
1
,
mask
=
abs
(
lat
-
r
dy
/
2.
-
rlly
)
.eq.
minval
(
abs
(
lat
-
r
dy
/
2.
-
rlly
)))
print
*
,
'read_lsm: lsm indices lon(ix), lat(jy) = '
,
lon
(
ix
),
lat
(
jy
)
...
...
@@ -154,8 +154,8 @@ subroutine read_lsm(files)
call
check
(
nf90_get_var
(
ncid
,
latid
,
lat
)
)
! indices to variable
ix
=
minloc
(
lon
,
dim
=
1
,
mask
=
abs
(
lon
-
dx
/
2.
-
rllx
)
.eq.
minval
(
abs
(
lon
-
dx
/
2.
-
rllx
)))
jy
=
minloc
(
lat
,
dim
=
1
,
mask
=
abs
(
lat
-
dy
/
2.
-
rlly
)
.eq.
minval
(
abs
(
lat
-
dy
/
2.
-
rlly
)))
ix
=
minloc
(
lon
,
dim
=
1
,
mask
=
abs
(
lon
-
r
dx
/
2.
-
rllx
)
.eq.
minval
(
abs
(
lon
-
r
dx
/
2.
-
rllx
)))
jy
=
minloc
(
lat
,
dim
=
1
,
mask
=
abs
(
lat
-
r
dy
/
2.
-
rlly
)
.eq.
minval
(
abs
(
lat
-
r
dy
/
2.
-
rlly
)))
print
*
,
'read_lsm: ice indices lon(ix), lat(jy) = '
,
lon
(
ix
),
lat
(
jy
)
...
...
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