Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
MetObs
AossTower
Commits
5207bd75
Unverified
Commit
5207bd75
authored
7 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Move tower archive script to new common archive scheme
parent
58ddca3e
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
scripts/archive_tower.sh
+10
-2
10 additions, 2 deletions
scripts/archive_tower.sh
scripts/metobs_config.sh
+5
-2
5 additions, 2 deletions
scripts/metobs_config.sh
with
15 additions
and
4 deletions
scripts/archive_tower.sh
+
10
−
2
View file @
5207bd75
...
...
@@ -28,8 +28,16 @@ fi
mkdir
-p
$TOWER_INCOMING_DIR
fi
log_info
"
$(
date
+%Y-%m-%dT%H:%M:%S
)
: Running archive jobs for
${
DATE
}
"
>>
$logfile
$ENV
/bin/python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
--date
=
${
DATE
}
aoss.tower
log_info
"
$(
date
+%Y-%m-%dT%H:%M:%S
)
: Running archive jobs for
${
DATE
}
"
$ENV
/bin/python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
--dates
=
${
DATE
}
00 aoss.tower
"rig_tower.%Y-%m-%d.ascii"
# Hack to keep the old 'ascii' directory up to date
# FIXME: Remove this once all new generation scripts work
year
=
${
DATE
:0:4
}
month
=
${
DATE
:4:2
}
day
=
${
DATE
:6:2
}
mkdir
-p
$TOWER_CACHE_DIR
/ascii/
${
year
}
/
${
month
}
/
ln
-s
"
$TOWER_PRAW_DIR
/
${
year
}
/
${
month
}
/
${
day
}
/rig_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
"
$TOWER_CACHE_DIR
/ascii/
${
year
}
/
${
month
}
/"
log_info
"Done"
...
...
This diff is collapsed.
Click to expand it.
scripts/metobs_config.sh
+
5
−
2
View file @
5207bd75
...
...
@@ -36,7 +36,7 @@ cache_level_00_file() {
year
=
${
d
:0:4
}
month
=
${
d
:4:2
}
day
=
${
d
:6:2
}
echo
"
${
TOWER_CACHE_DIR
}
/
aoss/tower/
level_00/version_00/
${
year
}
/
${
month
}
/
${
day
}
/aoss_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
echo
"
${
TOWER_CACHE_DIR
}
/level_00/version_00/
${
year
}
/
${
month
}
/
${
day
}
/aoss_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
}
cache_level_b1_file
()
{
...
...
@@ -44,5 +44,8 @@ cache_level_b1_file() {
year
=
${
d
:0:4
}
month
=
${
d
:4:2
}
day
=
${
d
:6:2
}
echo
"
${
TOWER_CACHE_DIR
}
/aoss/tower/level_b1/version_00/
${
year
}
/
${
month
}
/
${
day
}
/aoss_tower.
${
year
}
-
${
month
}
-
${
day
}
.nc"
# new:
# echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.nc"
# old:
echo
"
${
TOWER_CACHE_DIR
}
/level_b1/version_00/
${
year
}
/
${
month
}
/aoss_tower.
${
year
}
-
${
month
}
-
${
day
}
.nc"
}
\ No newline at end of file
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