Skip to content
Snippets Groups Projects
Commit d4d5235e authored by David Hoese's avatar David Hoese
Browse files

Merge branch 'feature-level-description' into 'master'

Add level descriptions to archive info

See merge request !5
parents 76b471c0 57c6495f
No related branches found
No related tags found
1 merge request!5Add level descriptions to archive info
...@@ -2,6 +2,12 @@ import os ...@@ -2,6 +2,12 @@ import os
from collections import defaultdict from collections import defaultdict
from metobsapi.util import ProductFrequency, FREQUENCY_DIR_FMT from metobsapi.util import ProductFrequency, FREQUENCY_DIR_FMT
# ARM Data Levels: https://www.arm.gov/policies/datapolicies/formatting-and-file-naming-protocols
L00_DESCRIPTION = "raw data – primary raw data stream collected directly from instrument"
LA0_DESCRIPTION = "converted to netCDF"
L11_DESCRIPTION = "calibration factors applied and converted to geophysical units"
LB1_DESCRIPTION = "QC checks applied to measurements"
# TODO: Load from config file # TODO: Load from config file
ARCHIVE_INFO = { ARCHIVE_INFO = {
'aoss': { 'aoss': {
...@@ -11,6 +17,7 @@ ARCHIVE_INFO = { ...@@ -11,6 +17,7 @@ ARCHIVE_INFO = {
'display_name': 'Tower', 'display_name': 'Tower',
'levels': { 'levels': {
'level_00': { 'level_00': {
'description': L00_DESCRIPTION,
'versions': ('version_00',), 'versions': ('version_00',),
'products': { 'products': {
'ascii': { 'ascii': {
...@@ -21,6 +28,7 @@ ARCHIVE_INFO = { ...@@ -21,6 +28,7 @@ ARCHIVE_INFO = {
}, },
}, },
'level_b1': { 'level_b1': {
'description': LB1_DESCRIPTION,
'versions': ('version_00',), 'versions': ('version_00',),
'products': { 'products': {
# 'nc-monthly': { # 'nc-monthly': {
...@@ -84,6 +92,7 @@ ARCHIVE_INFO = { ...@@ -84,6 +92,7 @@ ARCHIVE_INFO = {
'display_name': 'AERI', 'display_name': 'AERI',
'levels': { 'levels': {
'level_00': { 'level_00': {
'description': L00_DESCRIPTION,
'versions': ('version_00',), 'versions': ('version_00',),
'products': { 'products': {
'par': { 'par': {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment