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
2da975e0
Commit
2da975e0
authored
3 years ago
by
ronesy
Browse files
Options
Downloads
Patches
Plain Diff
Change to read_noaa for averaging flask pairs
parent
766b9644
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
prep_flexpart/read_noaa.f90
+23
-14
23 additions, 14 deletions
prep_flexpart/read_noaa.f90
prep_flexpart/run_flexpart.sh
+6
-4
6 additions, 4 deletions
prep_flexpart/run_flexpart.sh
prep_flexpart/sbatch_prep_flexpart.sh
+2
-0
2 additions, 0 deletions
prep_flexpart/sbatch_prep_flexpart.sh
with
31 additions
and
18 deletions
prep_flexpart/read_noaa.f90
+
23
−
14
View file @
2da975e0
...
@@ -84,8 +84,6 @@ subroutine read_noaa(settings, jd, nr, nobs, obs)
...
@@ -84,8 +84,6 @@ subroutine read_noaa(settings, jd, nr, nobs, obs)
call
caldate
(
jd
,
jjjjmmdd
,
hhmiss
)
call
caldate
(
jd
,
jjjjmmdd
,
hhmiss
)
eomday
=
calceomday
(
jjjjmmdd
/
100
)
eomday
=
calceomday
(
jjjjmmdd
/
100
)
print
*
,
filelist
! find file matching receptor name
! find file matching receptor name
do
n
=
1
,
nfiles
do
n
=
1
,
nfiles
do
i
=
1
,
len_trim
(
filelist
(
n
))
-2
do
i
=
1
,
len_trim
(
filelist
(
n
))
-2
...
@@ -136,7 +134,7 @@ subroutine read_noaa(settings, jd, nr, nobs, obs)
...
@@ -136,7 +134,7 @@ subroutine read_noaa(settings, jd, nr, nobs, obs)
i
=
i
+
1
i
=
i
+
1
read
(
args
(
n
),
*
)
temp
(
i
)
read
(
args
(
n
),
*
)
temp
(
i
)
end
do
end
do
n
=
2
7
n
=
2
6
i
=
i
+
2
i
=
i
+
2
read
(
args
(
n
),
*
,
iostat
=
ierr
)
temp
(
i
)
read
(
args
(
n
),
*
,
iostat
=
ierr
)
temp
(
i
)
if
(
ierr
.ne.
0
)
print
*
,
'WARNING: file does not appear to contain sample height -> using altitude'
if
(
ierr
.ne.
0
)
print
*
,
'WARNING: file does not appear to contain sample height -> using altitude'
...
@@ -189,19 +187,30 @@ subroutine read_noaa(settings, jd, nr, nobs, obs)
...
@@ -189,19 +187,30 @@ subroutine read_noaa(settings, jd, nr, nobs, obs)
! average flask pairs
! average flask pairs
i
=
1
i
=
1
j
=
0
j
=
0
dt
=
10.
/(
24.
*
60.
)
dt
=
10.
/(
24.
*
60.
)
! within 10 min -> consider as pair
if
(
nobs
.gt.
1
)
then
if
(
nobs
.gt.
1
)
then
do
while
(
i
.l
t
.
nobs
)
do
while
(
i
.l
e
.
nobs
)
j
=
j
+
1
j
=
j
+
1
if
(
jdobs
(
i
+1
)
.lt.
(
jdobs
(
i
)
+
dt
)
)
then
if
(
i
.lt.
nobs
)
then
! this is a pair
if
(
jdobs
(
i
+1
)
.lt.
(
jdobs
(
i
)
+
dt
)
.and.
altobs
(
i
+1
)
.eq.
altobs
(
i
)
)
then
dataout
(
j
,
1
)
=
jdobs
(
i
)
! this is a pair
dataout
(
j
,
2
)
=
0.5
*
(
concobs
(
i
)
+
concobs
(
i
+1
))
dataout
(
j
,
1
)
=
jdobs
(
i
)
dataout
(
j
,
3
)
=
errobs
(
i
)
dataout
(
j
,
2
)
=
0.5
*
(
concobs
(
i
)
+
concobs
(
i
+1
))
dataout
(
j
,
4
)
=
latobs
(
i
)
dataout
(
j
,
3
)
=
errobs
(
i
)
dataout
(
j
,
5
)
=
lonobs
(
i
)
dataout
(
j
,
4
)
=
latobs
(
i
)
dataout
(
j
,
6
)
=
altobs
(
i
)
dataout
(
j
,
5
)
=
lonobs
(
i
)
i
=
i
+
2
dataout
(
j
,
6
)
=
altobs
(
i
)
i
=
i
+
2
else
! not a pair
dataout
(
j
,
1
)
=
jdobs
(
i
)
dataout
(
j
,
2
)
=
concobs
(
i
)
dataout
(
j
,
3
)
=
errobs
(
i
)
dataout
(
j
,
4
)
=
latobs
(
i
)
dataout
(
j
,
5
)
=
lonobs
(
i
)
dataout
(
j
,
6
)
=
altobs
(
i
)
i
=
i
+
1
endif
else
else
! not a pair
! not a pair
dataout
(
j
,
1
)
=
jdobs
(
i
)
dataout
(
j
,
1
)
=
jdobs
(
i
)
...
...
This diff is collapsed.
Click to expand it.
prep_flexpart/run_flexpart.sh
+
6
−
4
View file @
2da975e0
...
@@ -14,9 +14,11 @@
...
@@ -14,9 +14,11 @@
# To run tests reference to current directory
# To run tests reference to current directory
DIR
=
$PWD
DIR
=
$PWD
LEN
=
`
expr
length
$DIR
- 1
3
`
LEN
=
`
expr
length
$DIR
- 1
1
`
ROOTDIR
=
${
DIR
:0:
$LEN
}
ROOTDIR
=
${
DIR
:0:
$LEN
}
echo
${
ROOTDIR
}
#---------------------------------------------------
#---------------------------------------------------
# User settings
# User settings
...
@@ -26,9 +28,9 @@ TIMELIM=12:00:00
...
@@ -26,9 +28,9 @@ TIMELIM=12:00:00
PARTITION
=
"nilu"
PARTITION
=
"nilu"
EXENAME
=
FP_ecmwf_gfortran
EXENAME
=
FP_ecmwf_gfortran
METEO
=
ecmwf
METEO
=
ecmwf
DIRFLEX
=
/home/rthompson/REPOS/GITHUB
/FLEXPART/
DIRFLEX
=
${
ROOTDIR
}
TEST_CASE_CH4
/FLEXPART/
DIROPTIONS
=
${
ROOTDIR
}
TEST_
INPUT/FLEXPART/GHG/N
ES
T
/
DIROPTIONS
=
${
ROOTDIR
}
TEST_
CASE_CH4/FP_FIL
ES/
STNLIST
=(
SS
L
)
STNLIST
=(
PA
L
)
MONLIST
=(
01
)
MONLIST
=(
01
)
YEAR
=
2012
YEAR
=
2012
...
...
This diff is collapsed.
Click to expand it.
prep_flexpart/sbatch_prep_flexpart.sh
+
2
−
0
View file @
2da975e0
...
@@ -4,6 +4,8 @@ partition=debug
...
@@ -4,6 +4,8 @@ partition=debug
settings_files
=
'./SETTINGS_ghg'
settings_files
=
'./SETTINGS_ghg'
#---------------------------------------------------
#---------------------------------------------------
cp
../../prep_flexpart/prep_flexpart
.
cat
<<
EOF
> run_job.sh
cat
<<
EOF
> run_job.sh
#!/bin/bash
#!/bin/bash
./prep_flexpart
${
settings_files
}
./prep_flexpart
${
settings_files
}
...
...
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