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
e1a083a7
Verified
Commit
e1a083a7
authored
7 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Change raw tower ascii files from rig_tower to aoss_tower
parent
1e2debf7
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
scripts/archive_tower.sh
+2
-2
2 additions, 2 deletions
scripts/archive_tower.sh
scripts/loggernet_rotate.sh
+2
-3
2 additions, 3 deletions
scripts/loggernet_rotate.sh
scripts/metobs_config.sh
+6
-5
6 additions, 5 deletions
scripts/metobs_config.sh
with
10 additions
and
10 deletions
scripts/archive_tower.sh
+
2
−
2
View file @
e1a083a7
...
@@ -29,7 +29,7 @@ fi
...
@@ -29,7 +29,7 @@ fi
fi
fi
log_info
"
$(
date
+%Y-%m-%dT%H:%M:%S
)
: Running archive jobs for
${
DATE
}
"
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"
$ENV
/bin/python
-m
metobscommon.archive.incoming
-vv
-l
$logfile
--dates
=
${
DATE
}
00 aoss.tower
"
aoss
_tower.%Y-%m-%d.ascii"
# Hack to keep the old 'ascii' directory up to date
# Hack to keep the old 'ascii' directory up to date
# FIXME: Remove this once all new generation scripts work
# FIXME: Remove this once all new generation scripts work
...
@@ -39,7 +39,7 @@ fi
...
@@ -39,7 +39,7 @@ fi
link_fn
=
"
$TOWER_CACHE_DIR
/ascii/
${
year
}
/
${
month
}
/rig_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
link_fn
=
"
$TOWER_CACHE_DIR
/ascii/
${
year
}
/
${
month
}
/rig_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
if
[
!
-e
$link_fn
]
;
then
if
[
!
-e
$link_fn
]
;
then
mkdir
-p
$TOWER_CACHE_DIR
/ascii/
${
year
}
/
${
month
}
/
mkdir
-p
$TOWER_CACHE_DIR
/ascii/
${
year
}
/
${
month
}
/
ln
-s
"
$TOWER_PRAW_DIR
/
${
year
}
/
${
month
}
/
${
day
}
/
rig
_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
${
link_fn
}
ln
-s
"
$TOWER_PRAW_DIR
/
${
year
}
/
${
month
}
/
${
day
}
/
aoss
_tower.
${
year
}
-
${
month
}
-
${
day
}
.ascii"
${
link_fn
}
fi
fi
log_info
"Done"
log_info
"Done"
...
...
This diff is collapsed.
Click to expand it.
scripts/loggernet_rotate.sh
+
2
−
3
View file @
e1a083a7
...
@@ -9,12 +9,11 @@ LOGGERNET_DATA=/data1/incoming/aoss/tower/
...
@@ -9,12 +9,11 @@ LOGGERNET_DATA=/data1/incoming/aoss/tower/
#LOGGERNET_DATA=/tmp
#LOGGERNET_DATA=/tmp
HEADER_SIZE
=
0
HEADER_SIZE
=
0
INPUT_PREFIX
=
"rig_tower"
INPUT_PREFIX
=
"rig_tower"
OUTPUT_PREFIX
=
"
rig
_tower"
OUTPUT_PREFIX
=
"
aoss
_tower"
#FILE_SUFFIXES="engdata metdata gpsdata"
#FILE_SUFFIXES="engdata metdata gpsdata"
FILE_SUFFIXES
=
"_"
FILE_SUFFIXES
=
"_"
INPUT_EXT
=
"
dat
"
INPUT_EXT
=
"
ascii
"
OUTPUT_EXT
=
"ascii"
OUTPUT_EXT
=
"ascii"
DAYS
=
6
assert_python
()
{
assert_python
()
{
python
-c
"import sys; sys.exit(sys.version_info[0] >= 3)"
python
-c
"import sys; sys.exit(sys.version_info[0] >= 3)"
...
...
This diff is collapsed.
Click to expand it.
scripts/metobs_config.sh
+
6
−
5
View file @
e1a083a7
...
@@ -2,17 +2,18 @@
...
@@ -2,17 +2,18 @@
# These values should override values used in python or bash scripts
# These values should override values used in python or bash scripts
#
#
# where the tower ascii files get pushed to
# where the tower ascii files get pushed to
export
TOWER_INCOMING_DIR
=
/mnt/inst-data/incoming/aoss/tower
DATA_ROOT
=
/data1
export
TOWER_INCOMING_DIR
=
"
${
DATA_ROOT
}
/incoming/aoss/tower"
# The archived location (primary raw)
# The archived location (primary raw)
export
TOWER_PRAW_DIR
=
/mnt/inst-data
/raw/aoss/tower
export
TOWER_PRAW_DIR
=
"
${
DATA_ROOT
}
/raw/aoss/tower
"
# Where generated products go
# Where generated products go
export
TOWER_CACHE_DIR
=
/mnt/inst-data
/cache/aoss/tower
export
TOWER_CACHE_DIR
=
"
${
DATA_ROOT
}
/cache/aoss/tower
"
# Python environment to use and where scripts are location
# Python environment to use and where scripts are location
export
ENV
=
/
data1/software
/aoss
-
tower
3
export
ENV
=
/
opt/metobs
/aoss
_
tower
# Directory where logs will be stored
# Directory where logs will be stored
export
LOGDIR
=
$ENV
/logs
export
LOGDIR
=
$ENV
/logs
# Directory where work files can be placed (inside a separate temp directory)
# Directory where work files can be placed (inside a separate temp directory)
export
WORKDIR
=
/mnt/inst-data
/tmp
export
WORKDIR
=
"
${
DATA_ROOT
}
/tmp
"
log_info
()
{
log_info
()
{
echo
"INFO:
$*
"
&>>
$logfile
echo
"INFO:
$*
"
&>>
$logfile
...
...
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