Skip to content
Snippets Groups Projects
Commit a2e11fe7 authored by Alex Diebold's avatar Alex Diebold
Browse files

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
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'
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment