|
RAVE
|
Classes | |
| class | ODIM_Source |
Functions | |
| init () | |
| Initializer. | |
| text2Element (filename, xmlfile=ODIM_SOURCE_FILE) | |
| One-time function, so read radar-db from text file. | |
| NODfromSource (obj) | |
| Convenience function. | |
| CheckSource (inobj) | |
| Convenience function. | |
Variables | |
| NOD | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| WNOD | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| RNOD | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| WMO | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| RAD | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| PLC | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| CCCC | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| WIGOS | |
| Dictionaries containing look-ups for identifiers except CTY. | |
| dict | SOURCE = {None: None} |
| int | initialized = 0 |
| bool | use_source_encoding = False |
Copyright (C) 2011- Swedish Meteorological and Hydrological Institute (SMHI) This file is part of RAVE. RAVE is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. RAVE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with RAVE. If not, see <http://www.gnu.org/licenses/>.
| Lib.odim_source.CheckSource | ( | inobj | ) |
Convenience function.
Checks and, if necessary, reformats a complete /what/source attribute . Doesn't return anything.
| inobj | input SCAN or PVOL object |
| Lib.odim_source.init | ( | ) |
Initializer.
Reads XML and puts the values into dictionaries. Because all radars must have a NOD identifier, the other identifiers are looked up based on NOD.
| Lib.odim_source.NODfromSource | ( | obj | ) |
Convenience function.
Gets the NOD identifier from /what/source . Assumes that the NOD is there or can be looked up based on the WMO or WIGOS identifier. If neither can be found, then a 'n/a' (not available) is returned.
| obj | input SCAN or PVOL object |
| Lib.odim_source.text2Element | ( | filename, | |
| xmlfile = ODIM_SOURCE_FILE ) |
One-time function, so read radar-db from text file.
| filename | string of the input file to read |
| xmlfile | string of the output XML file to write. Defaults to rave_defines.ODIM_SOURCE_FILE |
| Lib.odim_source.CCCC |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.NOD |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.PLC |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.RAD |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.RNOD |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.WIGOS |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.WMO |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.
| Lib.odim_source.WNOD |
Dictionaries containing look-ups for identifiers except CTY.
WMO, RAD, PLC, and SOURCE all use the NOD as the look-up NOD uses the WMO number as the look-up CCCC will be the same for all radars from a given country, so there'll be a lot of redundancy, but this is needed to create Odyssey file strings.