[4400] | 1 | #!/usr/bin/env python3 |
---|
| 2 | # -*- coding: utf-8 -*- |
---|
| 3 | # |
---|
| 4 | #--------------------------------------------------------------------------------# |
---|
| 5 | # This file is part of the PALM model system. |
---|
| 6 | # |
---|
| 7 | # PALM is free software: you can redistribute it and/or modify it under the terms |
---|
| 8 | # of the GNU General Public License as published by the Free Software Foundation, |
---|
| 9 | # either version 3 of the License, or (at your option) any later version. |
---|
| 10 | # |
---|
| 11 | # PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 12 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 13 | # A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 14 | # |
---|
| 15 | # You should have received a copy of the GNU General Public License along with |
---|
| 16 | # PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 17 | # |
---|
[4843] | 18 | # Copyright 1997-2021 Leibniz Universitaet Hannover |
---|
[4400] | 19 | #--------------------------------------------------------------------------------# |
---|
| 20 | # |
---|
| 21 | # Current revisions: |
---|
| 22 | # ----------------- |
---|
[4641] | 23 | # |
---|
| 24 | # |
---|
[4400] | 25 | # Former revisions: |
---|
| 26 | # ----------------- |
---|
| 27 | # $Id$ |
---|
[4641] | 28 | # Change default values for some global attributes to be compatible with |
---|
| 29 | # (UC)2 data standard |
---|
| 30 | # |
---|
| 31 | # 4400 2020-02-10 20:32:41Z suehring |
---|
[4400] | 32 | # Initial revision |
---|
| 33 | # |
---|
| 34 | # |
---|
| 35 | # 3668 2019-01-14 12:49:24Z maronga |
---|
| 36 | # |
---|
| 37 | # Description: |
---|
| 38 | # ------------ |
---|
| 39 | # Processing tool for creating PIDS conform virtual measurement setup file |
---|
| 40 | # from UC2 data-standard conform observational data or from prescribed input |
---|
| 41 | # coordinates. |
---|
| 42 | # |
---|
| 43 | # @Author Matthias Suehring (suehring@muk.uni-hannover.de) |
---|
| 44 | # |
---|
| 45 | #--------------------------------------------------------------------------------# |
---|
| 46 | |
---|
| 47 | # Section where some global file attributes can be specified. |
---|
| 48 | [global] |
---|
| 49 | |
---|
| 50 | author = Suehring, Matthias, suehring@muk.uni-hannover.de |
---|
| 51 | contact_person = Suehring, Matthias, suehring@muk.uni-hannover.de |
---|
| 52 | acronym = LUHimuk |
---|
[4641] | 53 | comment = |
---|
[4400] | 54 | data_content = measurement coordinates |
---|
[4641] | 55 | dependencies = |
---|
[4400] | 56 | keywords = virtual measurement setup file |
---|
[4641] | 57 | source = |
---|
[4400] | 58 | campaign = winter iop 1 |
---|
[4641] | 59 | location = B |
---|
[4400] | 60 | site = Ernst Reuter Platz |
---|
[4641] | 61 | institution = Leibniz UniversitÀt Hannover, Institute of Meterology and Climatology # for (UC)2 conform in/output please follow guidelines in table A3 |
---|
[4400] | 62 | palm_version = 6.0 |
---|
[4641] | 63 | references = |
---|
[4400] | 64 | |
---|
| 65 | # Section for observational input data. If non observational input data is available |
---|
| 66 | # just omit this section. |
---|
| 67 | [input] |
---|
| 68 | |
---|
| 69 | data_path = < path to your observational input data > |
---|
| 70 | |
---|
| 71 | # Section to specify the output path and the output filename. |
---|
| 72 | [output] |
---|
| 73 | |
---|
| 74 | output_path = < your output path > |
---|
| 75 | output_filename = vm_driver |
---|
| 76 | |
---|
| 77 | # Section to specify further sampling locations and sampling variables. Please note, |
---|
| 78 | # at the moment only timeseries can be specified. |
---|
| 79 | # If non customized sampling location is desired, just set number_positions to zero. |
---|
| 80 | [custom_positions] |
---|
| 81 | |
---|
| 82 | # Give the number of custom sampling coordinates |
---|
| 83 | number_positions = 4 |
---|
| 84 | |
---|
| 85 | # Give site coordinates: E_UTM (m), N_UTM (m), z (m). |
---|
| 86 | # Please give z in meters above ground. |
---|
| 87 | # |
---|
| 88 | # [ E_UTM, N_UTM, z (agl) ] |
---|
| 89 | |
---|
| 90 | coordinates1: [ 387670.0, 5819090.0, 4.0 ] |
---|
| 91 | coordinates2: [ 387676.0, 5819139.0, 1.0 ] |
---|
| 92 | coordinates3: [ 387630.0, 5819065.0, 41.0 ] |
---|
| 93 | coordinates4: [ 387270.0, 5819191.0, 8.5 ] |
---|
| 94 | # ... |
---|
| 95 | |
---|
| 96 | # Give the variables that shall be sampled. Note, there is a |
---|
| 97 | # number of default variables that will be always sampled, which is: |
---|
| 98 | # u, v, w, theta and hus (mixing ratio). |
---|
| 99 | # On top of these, you can individually prescribe further variables |
---|
| 100 | # for each site. In order to prescribe further variables, please |
---|
| 101 | # follow the naming convention defined in the [UC]2 data standard. |
---|
| 102 | |
---|
| 103 | vars_to_be_measured1: [ "u", "v", "w", "theta", "rlus", "rsus" ] |
---|
| 104 | vars_to_be_measured2: [ "rnds", "wdir" ] |
---|
| 105 | vars_to_be_measured3: [ "us" ] |
---|
| 106 | vars_to_be_measured4: [ "utheta", "vtheta", "wtheta", "wspeed" ] |
---|
| 107 | # ... |
---|