Skip to content

8b. Dictionaries pre v1.4

Josef K edited this page May 27, 2016 · 2 revisions

This is the method used by Midvatten plugin <1.4 and it is still used as a fallback method if the data domains zz_strat ad zz_capacity are not found in the database.

The "capacity" and "geoshort" fields in the stratigraphy table are used by the plugin to create colorful stratigraphy plots. Color codes are found in the file midvatten_defs.py and you may change these according to your own usage of water well capacity and stratigraphy descriptions.

The plugin default definition of capacity dictionary is found below. If capacity is given as any of the values 0, 1, ... , 6-, 6, 6+, then the stratigraphy plots will show the corresponding "hydro" color:

    dictionary = { '': ('okant', 'gray'),
                  ' ': ('okant', 'gray'),
                  '0': ('okant', 'gray'),
                  '0 ': ('okant', 'gray'),
                  '1': ('ovan gvy', 'red'),
                  '1 ': ('ovan gvy', 'red'),
                  '2': ('ingen', 'magenta'),
                  '2 ': ('ingen', 'magenta'),
                  '3-': ('obetydlig', 'yellow'),
                  '3': ('obetydlig', 'yellow'),
                  '3 ': ('obetydlig', 'yellow'),
                  '3+': ('obetydlig', 'darkYellow'),
                  '4-': ('mindre god', 'green'),
                  '4': ('mindre god', 'green'),
                  '4 ': ('mindre god', 'green'),
                  '4+': ('mindre god', 'darkGreen'),
                  '5-': ('god', 'cyan'),
                  '5': ('god', 'cyan'),
                  '5 ': ('god', 'cyan'),
                  '5+': ('god', 'darkCyan'),
                  '6-': ('mycket god', 'blue'),
                  '6': ('mycket god', 'blue'),
                  '6 ': ('mycket god', 'blue'),
                  '6+': ('mycket god', 'darkBlue'),
                }

The plugin definition of capacity dictionary is found below. If geoshort is given any of the values found in this dictionary, then the stratigraphy plots will show the corresponding pattern and colors:`

dictionary = { '': ('NoBrush', 'white'),
' ': ('NoBrush', 'white'),
'berg': ('DiagCrossPattern', 'red'),
'Berg': ('DiagCrossPattern', 'red'),
'BERG': ('DiagCrossPattern', 'red'),
'BERG': ('DiagCrossPattern', 'red'),
'B': ('DiagCrossPattern', 'red'),
'Rock': ('DiagCrossPattern', 'red'),
'rock': ('DiagCrossPattern', 'red'),
'Ro': ('DiagCrossPattern', 'red'),
'ro': ('DiagCrossPattern', 'red'),
'grovgrus': ('Dense6Pattern', 'darkGreen'),
'Grovgrus': ('Dense6Pattern', 'darkGreen'),
'Grg': ('Dense6Pattern', 'darkGreen'),
'grg': ('Dense6Pattern', 'darkGreen'),
'Coarse Gravel': ('Dense6Pattern', 'darkGreen'),
'coarse Gravel': ('Dense6Pattern', 'darkGreen'),
'coarse gravel': ('Dense6Pattern', 'darkGreen'),
'CGr': ('Dense6Pattern', 'darkGreen'),
'Cgr': ('Dense6Pattern', 'darkGreen'),
'cGr': ('Dense6Pattern', 'darkGreen'),
'cgr': ('Dense6Pattern', 'darkGreen'),
'grus': ('Dense6Pattern', 'darkGreen'),
'Grus': ('Dense6Pattern', 'darkGreen'),
'GRUS': ('Dense6Pattern', 'darkGreen'),
'Gr': ('Dense6Pattern', 'darkGreen'),
'gr': ('Dense6Pattern', 'darkGreen'),
'Gravel': ('Dense6Pattern', 'darkGreen'),
'gravel': ('Dense6Pattern', 'darkGreen'),
'mellangrus': ('Dense5Pattern', 'darkGreen'),
'Mellangrus': ('Dense5Pattern', 'darkGreen'),
'MELLANGRUS': ('Dense5Pattern', 'darkGreen'),
'Grm': ('Dense5Pattern', 'darkGreen'),
'grm': ('Dense5Pattern', 'darkGreen'),
'Medium Gravel': ('Dense5Pattern', 'darkGreen'),
'medium Gravel': ('Dense5Pattern', 'darkGreen'),
'medium gravel': ('Dense5Pattern', 'darkGreen'),
'MGr': ('Dense5Pattern', 'darkGreen'),
'mGr': ('Dense5Pattern', 'darkGreen'),
'Mgr': ('Dense5Pattern', 'darkGreen'),
'mgr': ('Dense5Pattern', 'darkGreen'),
'fingrus': ('Dense5Pattern', 'darkGreen'),
'Fingrus': ('Dense5Pattern', 'darkGreen'),
'FINGRUS': ('Dense5Pattern', 'darkGreen'),
'Grf': ('Dense5Pattern', 'darkGreen'),
'grf': ('Dense5Pattern', 'darkGreen'),
'Fine Gravel': ('Dense5Pattern', 'darkGreen'),
'fine Gravel': ('Dense5Pattern', 'darkGreen'),
'fine gravel': ('Dense5Pattern', 'darkGreen'),
'FGr': ('Dense5Pattern', 'darkGreen'),
'Fgr': ('Dense5Pattern', 'darkGreen'),
'fGr': ('Dense5Pattern', 'darkGreen'),
'fgr': ('Dense5Pattern', 'darkGreen'),
'grovsand': ('Dense4Pattern', 'green'),
'Grovsand': ('Dense4Pattern', 'green'),
'GROVSAND': ('Dense4Pattern', 'green'),
'Sag': ('Dense4Pattern', 'green'),
'sag': ('Dense4Pattern', 'green'),
'Coarse Sand': ('Dense4Pattern', 'green'),
'coarse Sand': ('Dense4Pattern', 'green'),
'coarse sand': ('Dense4Pattern', 'green'),
'CSa': ('Dense4Pattern', 'green'),
'Csa': ('Dense4Pattern', 'green'),
'cSa': ('Dense4Pattern', 'green'),
'csa': ('Dense4Pattern', 'green'),
'sand': ('Dense4Pattern', 'green'),
'Sand': ('Dense4Pattern', 'green'),
'SAND': ('Dense4Pattern', 'green'),
'Sa': ('Dense4Pattern', 'green'),
'sa': ('Dense4Pattern', 'green'),
'mellansand': ('FDiagPattern', 'green'),
'Mellansand': ('FDiagPattern', 'green'),
'MELLANSAND': ('FDiagPattern', 'green'),
'Sam': ('FDiagPattern', 'green'),
'sam': ('FDiagPattern', 'green'),
'Medium Sand': ('FDiagPattern', 'green'),
'medium Sand': ('FDiagPattern', 'green'),
'medium sand': ('FDiagPattern', 'green'),
'MSa': ('FDiagPattern', 'green'),
'Msa': ('FDiagPattern', 'green'),
'msa': ('FDiagPattern', 'green'),
'mSa': ('FDiagPattern', 'green'),
'finsand': ('BDiagPattern', 'yellow'),
'Finsand': ('BDiagPattern', 'yellow'),
'FINSAND': ('BDiagPattern', 'yellow'),
'Saf': ('BDiagPattern', 'yellow'),
'saf': ('BDiagPattern', 'yellow'),
'Fine Sand': ('BDiagPattern', 'yellow'),
'fine Sand': ('BDiagPattern', 'yellow'),
'fine Sand': ('BDiagPattern', 'yellow'),
'FSa': ('BDiagPattern', 'yellow'),
'Fsa': ('BDiagPattern', 'yellow'),
'fSa': ('BDiagPattern', 'yellow'),
'fsa': ('BDiagPattern', 'yellow'),
'silt': ('VerPattern', 'yellow'),
'Silt': ('VerPattern', 'yellow'),
'SILT': ('VerPattern', 'yellow'),
'Si': ('VerPattern', 'yellow'),
'si': ('VerPattern', 'yellow'),
'lera': ('HorPattern', 'darkYellow'),
'Lera': ('HorPattern', 'darkYellow'),
'LERA': ('HorPattern', 'darkYellow'),
'Le': ('HorPattern', 'darkYellow'),
'le': ('HorPattern', 'darkYellow'),
'Clay': ('HorPattern', 'darkYellow'),
'clay': ('HorPattern', 'darkYellow'),
'Cl': ('HorPattern', 'darkYellow'),
'cl': ('HorPattern', 'darkYellow'),
'moran': ('CrossPattern', 'cyan'),
'Moran': ('CrossPattern', 'cyan'),
'MORAN': ('CrossPattern', 'cyan'),
'Mn': ('CrossPattern', 'cyan'),
'mn': ('CrossPattern', 'cyan'),
'Till': ('CrossPattern', 'cyan'),
'till': ('CrossPattern', 'cyan'),
'Ti': ('CrossPattern', 'cyan'),
'ti': ('CrossPattern', 'cyan'),
'torv': ('NoBrush', 'darkGray'),
'Torv': ('NoBrush', 'darkGray'),
'TORV': ('NoBrush', 'darkGray'),
'T': ('NoBrush', 'darkGray'),
'Peat': ('NoBrush', 'darkGray'),
'peat': ('NoBrush', 'darkGray'),
'Pt': ('NoBrush', 'darkGray'),
'pt': ('NoBrush', 'darkGray'),
't': ('NoBrush', 'darkGray'),
'fyll': ('DiagCrossPattern', 'white'),
'Fyll': ('DiagCrossPattern', 'white'),
'FYLL': ('DiagCrossPattern', 'white'),
'fyllning': ('DiagCrossPattern', 'white'),
'Fyllning': ('DiagCrossPattern', 'white'),
'FYLLNING': ('DiagCrossPattern', 'white'),
'F': ('DiagCrossPattern', 'white'),
'f': ('DiagCrossPattern', 'white'),
'Made Ground': ('DiagCrossPattern', 'white'),
'Made ground': ('DiagCrossPattern', 'white'),
'mage ground': ('DiagCrossPattern', 'white'),
'MG': ('DiagCrossPattern', 'white'),
'Mg': ('DiagCrossPattern', 'white'),
'mg': ('DiagCrossPattern', 'white')
}
Clone this wiki locally