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
Méso-NH
Méso-NH code
Commits
30f5984c
Commit
30f5984c
authored
3 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 08/04/2022: merge ini_stationn.f90 and ini_surfstationn.f90
parent
c78d6fb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/MNH/ini_stationn.f90
+0
-125
0 additions, 125 deletions
src/MNH/ini_stationn.f90
src/MNH/ini_surfstationn.f90
+39
-12
39 additions, 12 deletions
src/MNH/ini_surfstationn.f90
with
39 additions
and
137 deletions
src/MNH/ini_stationn.f90
deleted
100644 → 0
+
0
−
125
View file @
c78d6fb1
!MNH_LIC Copyright 2002-2022 CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1.
!-----------------------------------------------------------------
! #######################
SUBROUTINE
INI_STATION_n
! #######################
!
!
!!**** *INI_STATION_n* - user initializes the station location
!!
!! PURPOSE
!! -------
!
!
!!** METHOD
!! ------
!!
!! Must be defined (for each station):
!! ---------------
!!
!! No default exist for these variables.
!! ************************************
!!
!! 1) Number of stations
!! 2) the model in which these stations are
!! if NOT initialized, the stations are NOT used.
!!
!! 3) the (LAT, LON, ALT) latitude,longitude and altitude of the station location.
!! 4) the station name
!!
!!
!!
!! Can be defined (for each station):
!! --------------
!!
!!
!! 9) the time step for data storage.
!! default is 60s
!!
!! 10) the name or title describing the balloon (8 characters)
!! default is the balloon type (6 characters) + the balloon numbers (2 characters)
!!
!!
!! EXTERNAL
!! --------
!!
!! IMPLICIT ARGUMENTS
!! ------------------
!!
!! REFERENCE
!! ---------
!!
!! AUTHOR
!! ------
!! Pierre Tulet * Meteo-France *
!!
!! MODIFICATIONS
!! -------------
!! Original 15/01/2002
! E. Jezequel 02/2021: read stations from CVS file
! P. Wautelet 07/04/2022: rewrite types for stations
! --------------------------------------------------------------------------
!
!* 0. DECLARATIONS
! ------------
!
USE
MODD_ALLSTATION_n
USE
MODD_CONF
,
ONLY
:
LCARTESIAN
USE
MODD_PARAMETERS
!
USE
MODI_STATION_READER
!
!
IMPLICIT
NONE
!
!
!* 0.1 declarations of arguments
!
!
!-------------------------------------------------------------------------------
!
! 0.2 declaration of local variables
!
INTEGER
::
JI
!
!----------------------------------------------------------------------------
IF
(
CFILE_STAT
==
"NO_INPUT_CSV"
)
THEN
!
!* 1. Namelist
! --------
NUMBSTAT
=
NNUMB_STAT
IF
(
NUMBSTAT
>
0
)
THEN
ALLOCATE
(
TSTATIONS
(
NUMBSTAT
)
)
IF
(
LCARTESIAN
)
THEN
DO
JI
=
1
,
NUMBSTAT
TSTATIONS
(
JI
)
%
XX
=
XX_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XY
=
XY_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XZ
=
XZ_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CNAME
=
CNAME_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CTYPE
=
CTYPE_STAT
(
JI
)
END
DO
ELSE
DO
JI
=
1
,
NUMBSTAT
TSTATIONS
(
JI
)
%
XLAT
=
XLAT_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XLON
=
XLON_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XZ
=
XZ_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CNAME
=
CNAME_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CTYPE
=
CTYPE_STAT
(
JI
)
END
DO
END
IF
END
IF
ELSE
!
!* 2. CSV DATA
!
CALL
READ_CSV_STATION
(
CFILE_STAT
,
TSTATIONS
,
LCARTESIAN
)
END
IF
TSTATIONS_TIME
%
XTSTEP
=
XSTEP_STAT
END
SUBROUTINE
INI_STATION_n
This diff is collapsed.
Click to expand it.
src/MNH/ini_surfstationn.f90
+
39
−
12
View file @
30f5984c
...
...
@@ -116,19 +116,56 @@ INTEGER, INTENT(IN) :: KMI ! MODEL NUMBER
!
INTEGER
::
ISTORE
! number of storage instants
INTEGER
::
IIU_ll
,
IJU_ll
,
IRESP
INTEGER
::
JI
!
!----------------------------------------------------------------------------
!
!* 1. Default values
! --------------
!
CALL
DEFAULT_STATION_n
()
NUMBSTAT
=
0
TSTATIONS_TIME
%
XTSTEP
=
XTSTEP
!
!
!* 3. Stations initialization
! -----------------------
!
CALL
INI_STATION_n
()
IF
(
CFILE_STAT
==
"NO_INPUT_CSV"
)
THEN
!
!* 1. Namelist
! --------
NUMBSTAT
=
NNUMB_STAT
IF
(
NUMBSTAT
>
0
)
THEN
ALLOCATE
(
TSTATIONS
(
NUMBSTAT
)
)
IF
(
LCARTESIAN
)
THEN
DO
JI
=
1
,
NUMBSTAT
TSTATIONS
(
JI
)
%
XX
=
XX_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XY
=
XY_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XZ
=
XZ_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CNAME
=
CNAME_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CTYPE
=
CTYPE_STAT
(
JI
)
END
DO
ELSE
DO
JI
=
1
,
NUMBSTAT
TSTATIONS
(
JI
)
%
XLAT
=
XLAT_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XLON
=
XLON_STAT
(
JI
)
TSTATIONS
(
JI
)
%
XZ
=
XZ_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CNAME
=
CNAME_STAT
(
JI
)
TSTATIONS
(
JI
)
%
CTYPE
=
CTYPE_STAT
(
JI
)
END
DO
END
IF
END
IF
ELSE
!
!* 2. CSV DATA
!
CALL
READ_CSV_STATION
(
CFILE_STAT
,
TSTATIONS
,
LCARTESIAN
)
END
IF
TSTATIONS_TIME
%
XTSTEP
=
XSTEP_STAT
LSTATION
=
(
NUMBSTAT
>
0
)
!
!----------------------------------------------------------------------------
...
...
@@ -145,16 +182,6 @@ ENDIF
CONTAINS
!
!----------------------------------------------------------------------------
SUBROUTINE
DEFAULT_STATION_n
()
USE
MODD_DYN_N
,
ONLY
:
XTSTEP
!
NUMBSTAT
=
0
TSTATIONS_TIME
%
XTSTEP
=
XTSTEP
!
END
SUBROUTINE
DEFAULT_STATION_n
!----------------------------------------------------------------------------
!----------------------------------------------------------------------------
SUBROUTINE
ALLOCATE_STATION_n
()
INTEGER
::
JI
...
...
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