Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossCeilo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossCeilo
Commits
e84fcbbf
Verified
Commit
e84fcbbf
authored
Jul 31, 2024
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix level b1 python used
parent
8092a940
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/archive_ceilo.sh
+1
-3
1 addition, 3 deletions
scripts/archive_ceilo.sh
scripts/crontab.txt
+1
-0
1 addition, 0 deletions
scripts/crontab.txt
scripts/run_ceilo_level_b1.sh
+5
-5
5 additions, 5 deletions
scripts/run_ceilo_level_b1.sh
with
7 additions
and
8 deletions
scripts/archive_ceilo.sh
+
1
−
3
View file @
e84fcbbf
...
...
@@ -2,10 +2,8 @@
# Moves ceilometer data in raw (inst-data) and cache
SCRIPT_HOME
=
"
$(
cd
-P
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
# Assumes this script is in /opt/*/aoss_ceilo*/repos/git/AossCeilo/scripts/
ENV
=
"
$(
realpath
$(
realpath
${
SCRIPT_HOME
}
)
/../../../../
)
"
source
$
ENV
/scripts
/metobs_config.sh
source
$
SCRIPT_HOME
/metobs_config.sh
LOCK
=
${
LOCKDIR
}
/
$(
basename
$0
)
.lock
(
...
...
...
...
This diff is collapsed.
Click to expand it.
scripts/crontab.txt
+
1
−
0
View file @
e84fcbbf
*/1 * * * * /opt/metobs/aoss_ceilo/scripts/rsync_data.sh &> /dev/null
*/5 * * * * /opt/metobs/aoss_ceilo/scripts/start_ceilo_ingest.sh &> /dev/null
*/10 * * * * /opt/metobs/aoss_ceilo/scripts/run_ceilo_level_b1.sh &> /dev/null
This diff is collapsed.
Click to expand it.
scripts/run_ceilo_level_b1.sh
+
5
−
5
View file @
e84fcbbf
...
...
@@ -24,7 +24,7 @@ fi
flock
-x
-n
200
||
log_info
"Script is already running, will not run again."
if
[
!
-d
$CEILO_CACHE_DIR
]
;
then
oops
"
Tow
er cache directory doesn't exist:
$CEILO_CACHE_DIR
"
oops
"
Ceilomet
er cache directory doesn't exist:
$CEILO_CACHE_DIR
"
fi
log_info
"
$(
date
+%Y-%m-%dT%H:%M:%S
)
: Running level b1 jobs for
${
DATE
}
"
>>
$logfile
...
...
@@ -51,27 +51,27 @@ fi
p_tmp_out
=
"
$tmp_dir
/
$p_out_bn
"
log_info
"Generating NetCDF files..."
python
-m
aossceilo.level_b1.nc
$curr_file
$p_file
$p_file2
-o
$tmp_out
$p_tmp_out
>>
$logfile
${
ENV
}
/bin/
python
-m
aossceilo.level_b1.nc
$curr_file
$p_file
$p_file2
-o
$tmp_out
$p_tmp_out
>>
$logfile
nc_status
=
$?
if
[
$nc_status
-ne
0
]
;
then
oops
"NetCDF generation failed for
$DATE
"
fi
log_info
"Moving NetCDF file from temp directory to cache"
python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
b1 aoss.ceilo
$tmp_dir
/aoss_ceilo.%Y-%m-%d.nc
--dates
${
DATE
}
${
PDATE
}
||
oops
"NetCDF archive failed"
${
ENV
}
/bin/
python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
b1 aoss.ceilo
$tmp_dir
/aoss_ceilo.%Y-%m-%d.nc
--dates
${
DATE
}
${
PDATE
}
||
oops
"NetCDF archive failed"
### Quicklook Generation ###
# assumes that out_file is what the archive script wrote the file as
log_info
"Generating Quicklook images..."
python
-m
aossceilo.level_b1.quicklook
--daily
$curr_out_file
$p_out_file
-o
$tmp_dir
>>
$logfile
${
ENV
}
/bin/
python
-m
aossceilo.level_b1.quicklook
--daily
$curr_out_file
$p_out_file
-o
$tmp_dir
>>
$logfile
quicklook_status
=
$?
if
[
$quicklook_status
-ne
0
]
;
then
oops
"Quicklook generation failed for
$DATE
"
fi
log_info
"Moving Level B1 quicklooks from temp directory to cache"
python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
b1 aoss.ceilo
$tmp_dir
/aoss_ceilo.%Y-%m-%d
*
.png
--dates
${
DATE
}
${
PDATE
}
||
oops
"Quicklook archive failed"
${
ENV
}
/bin/
python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
b1 aoss.ceilo
$tmp_dir
/aoss_ceilo.%Y-%m-%d
*
.png
--dates
${
DATE
}
${
PDATE
}
||
oops
"Quicklook archive failed"
#Delete the working directory
rm
-rf
$tmp_dir
||
oops
"Could not delete working directory:
$tmp_dir
"
...
...
...
...
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
sign in
to comment