From d37181739a343bc60b5b33cead9a1726ba7e9983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabine=20Schr=C3=B6der?= <s.schroeder@fz-juelich.de> Date: Mon, 30 Nov 2020 03:06:28 +0100 Subject: [PATCH] added all entries that are found in the old database to the translation table of type_of_environment and type_of_area --- .../populate_database_via_REST.py | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/imports_from_TOAR1/populate_database_via_REST.py b/imports_from_TOAR1/populate_database_via_REST.py index b774acd..631f76f 100644 --- a/imports_from_TOAR1/populate_database_via_REST.py +++ b/imports_from_TOAR1/populate_database_via_REST.py @@ -72,13 +72,34 @@ tr_type_of_environment = { 'traffic' : 'Traffic', 'industrial' : 'Industrial', 'other' : 'Other' } +# there are still more (but not in German AIRBASE stations): +#agricultural +#urban +#other-marine +#other-agricultural +#commercial +#other +# (the empty string!) tr_type_of_area = { 'unknown' : 'Unknown', 'urban' : 'Urban', 'suburban' : 'Suburban', 'rural' : 'Rural', - 'remote' : 'Remote' } + 'remote' : 'Remote', +# the following ones do not belong to the controlled vocabulary! + 'rural-remote' : 'Rural', + 'rural-nearcity' : 'Rural' } +# there are still more (but not in German AIRBASE stations): +#rural-regional +#alpine grasslands +#marine +#Urban +#forest +# (the empty string!) + + rural-remote + background if __name__ == "__main__": -- GitLab