Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
c19fb482
Commit
c19fb482
authored
2 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 06/03/2023: add K and Zmeas in diachronic files for stations
parent
2b868f76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/write_stationn.f90
+11
-5
11 additions, 5 deletions
src/MNH/write_stationn.f90
with
11 additions
and
5 deletions
src/MNH/write_stationn.f90
+
11
−
5
View file @
c19fb482
...
@@ -281,6 +281,7 @@ USE MODD_CONF, ONLY: LCARTESIAN
...
@@ -281,6 +281,7 @@ USE MODD_CONF, ONLY: LCARTESIAN
USE
MODD_CST
,
ONLY
:
XRV
USE
MODD_CST
,
ONLY
:
XRV
use
modd_field
,
only
:
NMNHDIM_STATION_TIME
,
NMNHDIM_STATION_PROC
,
NMNHDIM_UNUSED
,
&
use
modd_field
,
only
:
NMNHDIM_STATION_TIME
,
NMNHDIM_STATION_PROC
,
NMNHDIM_UNUSED
,
&
tfieldmetadata_base
,
TYPEREAL
tfieldmetadata_base
,
TYPEREAL
use
modd_grid_n
,
only
:
xzz
USE
MODD_IO
,
ONLY
:
TFILEDATA
USE
MODD_IO
,
ONLY
:
TFILEDATA
USE
MODD_NSV
,
ONLY
:
nsv
,
nsv_aer
,
nsv_aerbeg
,
nsv_aerend
,
&
USE
MODD_NSV
,
ONLY
:
nsv
,
nsv_aer
,
nsv_aerbeg
,
nsv_aerend
,
&
nsv_dst
,
nsv_dstbeg
,
nsv_dstend
,
nsv_slt
,
nsv_sltbeg
,
nsv_sltend
,
&
nsv_dst
,
nsv_dstbeg
,
nsv_dstend
,
nsv_slt
,
nsv_sltbeg
,
nsv_sltend
,
&
...
@@ -292,7 +293,8 @@ use modd_type_statprof, only: tstationdata
...
@@ -292,7 +293,8 @@ use modd_type_statprof, only: tstationdata
USE
MODE_AERO_PSD
USE
MODE_AERO_PSD
USE
MODE_DUST_PSD
USE
MODE_DUST_PSD
USE
MODE_SALT_PSD
USE
MODE_SALT_PSD
use
MODE_WRITE_DIACHRO
,
ONLY
:
Write_diachro
use
mode_statprof_tools
,
only
:
Statprof_interp_2d
use
MODE_WRITE_DIACHRO
,
ONLY
:
Write_diachro
TYPE
(
TFILEDATA
),
INTENT
(
IN
)
::
TPDIAFILE
! diachronic file to write
TYPE
(
TFILEDATA
),
INTENT
(
IN
)
::
TPDIAFILE
! diachronic file to write
TYPE
(
TSTATIONDATA
),
INTENT
(
IN
)
::
TPSTATION
TYPE
(
TSTATIONDATA
),
INTENT
(
IN
)
::
TPSTATION
...
@@ -314,12 +316,13 @@ INTEGER :: ISTORE
...
@@ -314,12 +316,13 @@ INTEGER :: ISTORE
INTEGER
::
JPROC
! loop counter
INTEGER
::
JPROC
! loop counter
INTEGER
::
JRR
! loop counter
INTEGER
::
JRR
! loop counter
INTEGER
::
JSV
! loop counter
INTEGER
::
JSV
! loop counter
real
::
zalt_meas
! True altitude for the station measurements
type
(
tbudiachrometadata
)
::
tzbudiachro
type
(
tbudiachrometadata
)
::
tzbudiachro
type
(
tfieldmetadata_base
),
dimension
(:),
allocatable
::
tzfields
type
(
tfieldmetadata_base
),
dimension
(:),
allocatable
::
tzfields
!
!
!----------------------------------------------------------------------------
!----------------------------------------------------------------------------
!
!
IPROC
=
9
+
SIZE
(
TPSTATION
%
XR
,
2
)
+
SIZE
(
TPSTATION
%
XSV
,
2
)
IPROC
=
11
+
SIZE
(
TPSTATION
%
XR
,
2
)
+
SIZE
(
TPSTATION
%
XSV
,
2
)
IF
(
CTURB
==
'TKEL'
)
IPROC
=
IPROC
+
1
IF
(
CTURB
==
'TKEL'
)
IPROC
=
IPROC
+
1
IF
(
LDIAG_SURFRAD
)
THEN
IF
(
LDIAG_SURFRAD
)
THEN
...
@@ -345,18 +348,21 @@ JPROC = 0
...
@@ -345,18 +348,21 @@ JPROC = 0
!
!
call
Add_point
(
'ZS'
,
'Orography'
,
'm'
,
SPREAD
(
tpstation
%
xzs
,
1
,
istore
)
)
call
Add_point
(
'ZS'
,
'Orography'
,
'm'
,
SPREAD
(
tpstation
%
xzs
,
1
,
istore
)
)
call
Add_point
(
'P'
,
'Pressure'
,
'Pa'
,
tpstation
%
xp
(:)
)
call
Add_point
(
'P'
,
'Pressure'
,
'Pa'
,
tpstation
%
xp
(:)
)
! call Add_point( 'Z', 'Z Pos', 'm', SPREAD( tpstation%xz, 1, istore ) )
call
Add_point
(
'Z'
,
'altitude'
,
'm'
,
SPREAD
(
tpstation
%
xz
,
1
,
istore
)
)
call
Add_point
(
'K'
,
'vertical model level used for computations'
,
'1'
,
SPREAD
(
REAL
(
tpstation
%
nk
),
1
,
istore
)
)
zalt_meas
=
Statprof_interp_2d
(
tpstation
,
xzz
(:,:,
tpstation
%
nk
)
)
call
Add_point
(
'Zmeas'
,
'interpolated altitude used for measurements'
,
'm'
,
SPREAD
(
zalt_meas
,
1
,
istore
)
)
if
(
lcartesian
)
then
if
(
lcartesian
)
then
call
Add_point
(
'X'
,
'X Pos'
,
'm'
,
SPREAD
(
tpstation
%
xx
,
1
,
istore
)
)
call
Add_point
(
'X'
,
'X Pos'
,
'm'
,
SPREAD
(
tpstation
%
xx
,
1
,
istore
)
)
call
Add_point
(
'Y'
,
'Y Pos'
,
'm'
,
SPREAD
(
tpstation
%
xy
,
1
,
istore
)
)
call
Add_point
(
'Y'
,
'Y Pos'
,
'm'
,
SPREAD
(
tpstation
%
xy
,
1
,
istore
)
)
call
Add_point
(
'Z'
,
'altitude'
,
'm'
,
SPREAD
(
tpstation
%
xz
,
1
,
istore
)
)
call
Add_point
(
'U'
,
'Axial velocity'
,
'm s-1'
,
tpstation
%
xzon
(:)
)
call
Add_point
(
'U'
,
'Axial velocity'
,
'm s-1'
,
tpstation
%
xzon
(:)
)
call
Add_point
(
'V'
,
'Transversal velocity'
,
'm s-1'
,
tpstation
%
xmer
(:)
)
call
Add_point
(
'V'
,
'Transversal velocity'
,
'm s-1'
,
tpstation
%
xmer
(:)
)
else
else
call
Add_point
(
'LON'
,
'Longitude'
,
'degree'
,
SPREAD
(
tpstation
%
xlon
,
1
,
istore
)
)
call
Add_point
(
'LON'
,
'Longitude'
,
'degree'
,
SPREAD
(
tpstation
%
xlon
,
1
,
istore
)
)
call
Add_point
(
'LAT'
,
'Latitude'
,
'degree'
,
SPREAD
(
tpstation
%
xlat
,
1
,
istore
)
)
call
Add_point
(
'LAT'
,
'Latitude'
,
'degree'
,
SPREAD
(
tpstation
%
xlat
,
1
,
istore
)
)
call
Add_point
(
'Z'
,
'altitude'
,
'm'
,
SPREAD
(
tpstation
%
xz
,
1
,
istore
)
)
call
Add_point
(
'ZON_WIND'
,
'Zonal wind'
,
'm s-1'
,
tpstation
%
xzon
(:)
)
call
Add_point
(
'ZON_WIND'
,
'Zonal wind'
,
'm s-1'
,
tpstation
%
xzon
(:)
)
call
Add_point
(
'MER_WIND'
,
'Meridional wind'
,
'm s-1'
,
tpstation
%
xmer
(:)
)
call
Add_point
(
'MER_WIND'
,
'Meridional wind'
,
'm s-1'
,
tpstation
%
xmer
(:)
)
end
if
end
if
...
...
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