Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetObsCommon
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
MetObsCommon
Commits
a2e11fe7
Commit
a2e11fe7
authored
7 years ago
by
Alex Diebold
Browse files
Options
Downloads
Patches
Plain Diff
Finished converting metobs01 into yaml format. Began working on _create() once more
parent
4838e9cf
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
metobscommon/archive/config.yaml
+84
-16
84 additions, 16 deletions
metobscommon/archive/config.yaml
metobscommon/archive/db.py
+12
-0
12 additions, 0 deletions
metobscommon/archive/db.py
with
96 additions
and
16 deletions
metobscommon/archive/config.yaml
+
84
−
16
View file @
a2e11fe7
instruments
:
aoss
:
display_name
:
'
AOSS'
aeri
:
dispay_name
:
'
AERI'
filetypes
:
-
aoss.aeri.par.l00.v00
-
aoss.aeri.qc.l00.v00
...
...
@@ -21,16 +23,34 @@ instruments:
-
aoss.aeri.scr-radiance.l00.v00
-
aoss.aeri.scr-sumary.l00.v00
ceilo
:
display_name
:
'
Ceilo'
filetypes
:
-
aoss.ceilo.ascii
-
aoss.ceilo.nc
-
aoss.ceilo.png
cameras
:
windpro
:
-
aoss.ceilo.tn.png
tower
:
display_name
:
'
Tower'
filetypes
:
-
aoss.tower.ascii
-
aoss.tower.png
-
aoss.tower.tn.png
bago
:
display_name
:
'
BAGO'
aeri
:
display_name
:
'
AERI'
filetypes
:
-
bago.aeri.png
-
bago.aeri.sum.cdf
-
bago.aeri.c1-rnc.cdf
-
bago.aeri.c2-rnc.cdf
mendota
:
display_name
:
'
Mendota'
buoy
:
display_name
:
'
Buoy'
filetypes
:
-
mendota.buoy.ascii
-
mendota.buoy.png
filetypes
:
aoss.aeri.par.l00.v00
:
...
...
@@ -52,56 +72,104 @@ filetypes:
aoss.aeri.uvs-b1.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dB1.UVS'
glob_pattern
:
glob_pattern
:
'
??????B1.UVS'
aoss.aeri.cxs-b2.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dB2.CXS'
glob_pattern
:
glob_pattern
:
'
??????B2.CXS'
aoss.aeri.uvs-b2.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dB2.UVS'
glob_pattern
:
glob_pattern
:
'
??????B2.UVS'
aoss.aeri.rnc-c1.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dC1.RNC'
glob_pattern
:
glob_pattern
:
'
??????C1.RNC'
aoss.aeri.rnc-c2.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dC2.RNC'
glob_pattern
:
glob_pattern
:
'
??????C2.RNC'
aoss.aeri.csv-f1.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dF1.CSV'
glob_pattern
:
glob_pattern
:
'
??????F1.CSV'
aoss.aeri.cxs-f1.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dF1.CXS'
glob_pattern
:
glob_pattern
:
'
??????F1.CXS'
aoss.aeri.uvs-f1.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dF1.UVS'
glob_pattern
:
glob_pattern
:
'
??????F1.UVS'
aoss.aeri.csv-f2.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dF2.CSV'
glob_pattern
:
glob_pattern
:
'
??????F2.CSV'
aoss.aeri.cxs-f2.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dF2.CXS'
glob_pattern
:
glob_pattern
:
'
??????F2.CXS'
aoss.aeri.uvs-f2.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
%y%m%dF2.UVS'
glob_pattern
:
glob_pattern
:
'
??????F2.UVS'
aoss.aeri.scr-aesitter.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
AESITTER.SCR'
glob_pattern
:
glob_pattern
:
'
AESITTER.SCR'
aoss.aeri.scr-radiance.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
RADIANCE.SCR'
glob_pattern
:
glob_pattern
:
'
RADIANCE.SCR'
aoss.aeri.scr-sumary.l00.v00
:
period
:
'
Daily'
format_pattern
:
'
SUMARY.SCR'
glob_pattern
:
glob_pattern
:
'
SUMARY.SCR'
aoss.ceilo.ascii
:
period
:
'
Daily'
format_pattern
:
'
rig_ceilo.%y-%m-%d.ascii'
glob_pattern
:
'
*_*.????-??-??.ascii'
aoss.ceilo.nc
:
period
:
'
Daily'
format_pattern
:
'
{site}_{inst}.{start_time:%y-%m-%d}.nc'
glob_pattern
:
'
*_*.????-??-??.nc'
aoss.ceilo.png
:
period
:
'
Half-Daily'
format_pattern
:
'
{site}_{inst}.{start_time:%y-%m-%d_%h%m%s}_{end_time:%h%m%s}.png'
glob_pattern
:
'
*_*.????-??-??_??????_??????*.png'
aoss.tower.ascii
:
period
:
'
Daily'
format_pattern
:
'
{site}_{inst}.{start_time:%y-%m-%d}.ascii'
glob_pattern
:
'
*_*.????-??-??.ascii'
aoss.tower.nc
:
period
:
'
Daily'
format_pattern
:
'
{site}_{inst}.{start_time:%y-%m-%d}.nc'
glob_pattern
:
'
*_*.????-??-??.nc'
aoss.tower.png
:
period
:
'
Half-Daily'
format_pattern
:
'
{site}_{inst}.{measurement}.{start_time:%y-%m-%d}.png'
glob_pattern
:
'
*_*.*.????-??-??*.png'
bago.aeri.png
:
period
:
'
Half-Daily'
format_pattern
:
'
{site}_{inst}.{measurement}.{start_time:%y-%m-%d_%h%m%s}_{end_time:%h%m%s}.png'
glob_pattern
:
'
*_*.*.????-??-??_??????.png'
bago.aeri.sum.cdf
:
period
:
'
Daily'
format_pattern
:
'
{start_time:%y%m%d}_sum.cdf'
glob_pattern
:
'
??????_sum.cdf'
bago.aeri.c1-rnc.cdf
:
period
:
'
Daily'
format_pattern
:
'
{start_time:%y%m%d}C1_rnc.cdf'
glob_pattern
:
'
??????C1_rnc.cdf'
bago.aeri.c2-rnc.cdf
:
period
:
'
Daily'
format_pattern
:
'
{start_time:%y%m%d}C2_rnc.cdf'
glob_pattern
:
'
??????C2_rnc.cdf'
mendota.buoy.ascii
:
period
:
'
Daily'
format_pattern
:
'
{site}_{inst}.{start_time:%y-%m-%d}.ascii'
glob_pattern
:
'
*_*.????-??-??.ascii'
mendota.buoy.png
:
period
:
'
Daily'
format_pattern
:
'
{site}_{inst}.{measurement}.{start_time:%y-%m-%d_%h%m%s}_{end_time:%h%m%s}.png'
glob_pattern
:
'
*_*.*.????-??-??_??????_??????*.png'
This diff is collapsed.
Click to expand it.
metobscommon/archive/db.py
+
12
−
0
View file @
a2e11fe7
...
...
@@ -830,6 +830,18 @@ def _test(args):
Session
=
sessionmaker
(
bind
=
engine
)
session
=
Session
()
#testing _create() function with yaml
if
args
.
testing_create
:
#read from yaml
stream
=
open
(
'
config.yaml
'
)
docs
=
yaml
.
load
(
stream
)
for
s
in
docs
[
'
instruments
'
].
keys
():
for
i
in
docs
[
'
instruments
'
][
s
].
keys
():
if
i
!=
'
display_name
'
:
for
f
in
docs
[
'
instruments
'
][
s
][
i
][
'
filetypes
'
]:
#testing _add() function
if
args
.
add_site
:
pass
...
...
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