Skip to content

Commit

Permalink
DOC: Update the documentation for version 0.3.2 (#217)
Browse files Browse the repository at this point in the history
* Format and clarification in the text

* Hydrograph is plotted without meteo now

* Move and update figures

* Rework and update the figures

* Update text to include GLUE and no weather

* Add png as supported file format

* Add a note about dataset name rules
  • Loading branch information
jnsebgosselin committed May 14, 2018
1 parent eac2060 commit c138588
Show file tree
Hide file tree
Showing 15 changed files with 49,632 additions and 44,840 deletions.
Binary file removed docs/img/scs/hydrograph_components.pdf
Binary file not shown.
40,090 changes: 0 additions & 40,090 deletions docs/img/scs/hydrograph_components.svg

This file was deleted.

Binary file not shown.
12,646 changes: 12,646 additions & 0 deletions docs/img/scs/hydrograph_editor/hydrograph_components.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
8,281 changes: 8,281 additions & 0 deletions docs/img/scs/hydrograph_editor/hydrograph_missing_period.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
28,141 changes: 28,141 additions & 0 deletions docs/img/scs/hydrograph_editor/hydrograph_wl_trend.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/scs/hydrograph_missing_period.pdf
Binary file not shown.
4,641 changes: 0 additions & 4,641 deletions docs/img/scs/hydrograph_missing_period.svg

This file was deleted.

Binary file modified docs/img/scs/hydroprint_page_setting.pdf
Binary file not shown.
555 changes: 485 additions & 70 deletions docs/img/scs/hydroprint_page_setting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/scs/page_setup_hydrograph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 23 additions & 12 deletions docs/manage_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ field :guilabel:`Dataset name`.

Presentation of the :guilabel:`Import Dataset` windows to import
water levels (to the left) and weather (to the right) data files.

.. important:: A valid dataset name is at least one charater long and
can't contain any of the following special characters:
|_| |_| \\ |_| \/ |_| \: |_| \* |_| \? |_| \" |_| \< |_| \> |_| \|

.. _input_datafile_format:

Expand All @@ -76,9 +80,9 @@ of Quebec`_ [#url_rsesq]_ and for several Canadian provinces from the
Weather data files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

GWHAT can read weather data saved in comma-separated values (csv) or tab-separated
values (tsv) text files with UTF-8 encoding. An example of correctly formatted data file is
presented in :numref:`weather_datafile_example`.
GWHAT can read weather data saved in comma-separated values (:file:`csv`) or
tab-separated values (:file:`tsv`) text files with UTF-8 encoding. An example
of correctly formatted data file is presented in :numref:`weather_datafile_example`.

The file header contains information about the station name, province, latitude, longitude,
elevation and climate identifier. The dataset is composed of daily maximum, minimum,
Expand Down Expand Up @@ -115,14 +119,14 @@ folder of the project example that is distributed with GWHAT
(see :numref:`sec_installing_on_windows`).

The file header contains information about the well name, identifier, province,
latitude, longitude, and elevation. The first column of the data must contain
the time in excel numeric format. The second column must contain the water level,
given in metres below the ground surface. The third and fourth columns correspond,
respectively, to the barometric pressure and the Earth tides.
This will be discussed in more details in :numref:`chap_computing_the_brf`.
Note that the name of the labels of the header and of the data columns
(e.g., Well Name, Well ID, Date) must be respected for the program
to read the content of the file correctly.
latitude, longitude, and elevation. The data must be saved in chronological order.
The first column of the data must contain the time in excel numeric format.
The second column must contain the water level, given in metres below the
ground surface. The third and fourth columns correspond, respectively, to the
barometric pressure and the Earth tides.
The use of barometric pressure and the Earth tides data will be discussed in
more details in :numref:`chap_computing_the_brf`.


.. _water_level_datafile_example:
.. figure:: img/files/water_level_datafile.*
Expand All @@ -131,9 +135,14 @@ to read the content of the file correctly.
:alt: water_level_datafile.png
:figclass: align-center

Example of a correctly formatted water level data file.
Example of a correctly formatted water level data file. This file is
available in the folder of the project example that is distributed with
GWHAT.

.. important:: Water levels must be in metres below the ground surface.
The name of the labels of the header and of the data columns
(e.g., Well Name, Well ID, Date) must be respected for the program
to read the content of the file correctly.

.. _sec_exporting_data:

Expand Down Expand Up @@ -180,3 +189,5 @@ the export of water level datasets is currently not available in GWHAT.
.. [#url_cddc] http://climate.weather.gc.ca/
.. [#url_rsesq] http://www.mddelcc.gouv.qc.ca/eau/piezo/
.. [#url_gin] http://gin.gw-info.net/service/api_ngwds:gin2/en/gin.html
.. |_| unicode:: 0020
83 changes: 56 additions & 27 deletions docs/plotting_hydrograph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ consists of a toolbar, the panel :guilabel:`Input data`
(documented in :numref:`chap_importing_data`), the panel
:guilabel:`Axes settings`, and a canvas where the hydrograph figure is shown.

A figure of the hydrograph is produced as soon as a water level and weather
dataset have been selected in the :guilabel:`Input data` panel.
A figure of the hydrograph is produced as soon as a water level dataset have
been selected in the :guilabel:`Input data` panel.
It is possible to zoom the figure canvas in or out by pressing the
|icon_zoom_in| or |icon_zoom_out| icon or by rotating the mouse wheel while
holdind the :kbd:`Ctrl` key.
Expand All @@ -52,12 +52,11 @@ Various parameters are available to customize the layout of the hydrograph:
where are displayed the yearly and monthly normals of the weather dataset.
This is covered in more details in :numref:`chap_weather_normals_viewer`.


The layout for the currently selected water level dataset can be saved by
clicking on the |icon_save_config| icon. The previously saved layout can be
loaded back for the currently selected water level dataset by clicking on the
|icon_load_config| icon. Finally, the hydrograph can be saved in a pdf or
svg format by clicking on the |icon_save| icon.
|icon_load_config| icon. Finally, the hydrograph can be saved in a :file:`pdf`,
:file:`svg` or :file:`png` format by clicking on the |icon_save| icon.

.. _fig_plot_hydrograph_annoted:
.. figure:: img/scs/plot_hydrograph_annoted.*
Expand All @@ -77,7 +76,7 @@ Components of the Hydrograph
Each of these are discussed in more details below.

.. _fig_hydrograph_components:
.. figure:: img/scs/hydrograph_components.*
.. figure:: img/scs/hydrograph_editor/hydrograph_components.*
:align: center
:width: 100%
:alt: hydrograph_components.svg
Expand All @@ -87,38 +86,49 @@ Each of these are discussed in more details below.

.. _subsec_water_level_component:

Groundwater levels
Observed water levels
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The groundwater levels are plotted on the bottom part of the hydrograph.
The observed water levels are plotted on the bottom part of the hydrograph.
By default, groundwater levels are represented by a continuous line that connects
to all available data.

It is possible to ensure that the continuous line is not drawn over periods of time
where data is missing by adding a nan value in the water levels time series before
importing it in GWHAT.
For example, in :numref:`fig_missing_water_level`, water level data
were missing for the whole of 2012. A ``nan`` was thus added in the data file
It is possible to ensure that the continuous line is not drawn over periods
where data is missing by marking the missing period in the water level time
series with at least one ``nan`` value before importing the water level dataset in GWHAT.
For example, in :numref:`fig_missing_water_level`, water levels were missing
for the whole of 2012. A ``nan`` was thus added in the time series
at one time during this period to avoid a line to be plotted between the
31/12/2011 and the 01/01/2013.

It is also possible to show the trend of the water level data with the option
:guilabel:`Water Level Trend` that is available in the :guilabel:`Page and Figure Setup`
window (see :numref:`subsec_page_and_fig_settings`). The actual data will then be
plotted below the trend line as a scatter plot as shown in the hydrograph of
:numref:`fig_hydrograph_components`. The trend line is computed using a
moving average window of 30 days.

.. _fig_missing_water_level:
.. figure:: img/scs/hydrograph_missing_period.*
.. figure:: img/scs/hydrograph_editor/hydrograph_missing_period.*
:align: center
:width: 100%
:alt: hydrograph_missing_period.png
:figclass: align-center

Example of an hydrogaph with an extended period of time for which data is
missing.


As shown in :numref:`fig_wl_trend`, it is also possible to show the trend of
the water level by setting the option :guilabel:`Water Level Trend` to
:guilabel:`On` in the :guilabel:`Page and Figure Setup` window
(see :numref:`subsec_page_and_fig_settings`).
The actual observed data are then plotted under the trend line as a scatter plot.
The trend line is computed using a moving average window of 30 days.

.. _fig_wl_trend:
.. figure:: img/scs/hydrograph_editor/hydrograph_wl_trend.*
:align: center
:width: 100%
:alt: hydrograph_wl_trend
:figclass: align-center

Example of a hydrograph where the trend of the water level is shown as a
continuous blue line along with the real observations plotted as a series
of light gray dots.

.. _subsec_weather_data_component:

Weather data
Expand All @@ -134,7 +144,12 @@ Cumulative precipitation, as rain and snow, is plotted in the bottom part of the
hydrograph along with the water level data. For a given day, precipitation is
assumed to fall as snow if the mean air temperature for that day is below 0ºC and
as rain otherwise. As for air temperature, cumulative precipitation can be plotted on
a daily, weekly, or monthly basis.
a daily, weekly, or monthly basis.

As shown in :numref:`fig_wl_trend`, it is possible to plot the water level data
alone, without the mean air temperature and cumulative precipitation, by setting
the :guilabel:`Weather Data` component to :guilabel:`Off` in the
:guilabel:`Page and Figure Setup` window.

Missing weather data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -150,7 +165,7 @@ weather records with the tool presented in :numref:`chap_gapfilling_weather_data
even if data are missing in the daily weather dataset.


Water levels manual measurements
Water level manual measurements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Water levels measured manually during field visits can also be plotted on the hydrograph.
Expand Down Expand Up @@ -180,19 +195,33 @@ the manual measurements, in metres below the ground surface.
than one file named :file:`water_level_measurements` exists in the folder
:file:`Water Levels`, but with different extension, GWHAT will always
read the data from the csv file by default.

Water level envelope predicted with GLUE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Water levels predicted by optimizing a quasi-two-dimensional hydrologic model
with the GLUE (Generalized Likelihood Uncertainty Estimation) methodology at
the 05/95 uncertainty level can be plotted on the hydrograph once groundwater
recharge have been evaluated with the tool presented in :numref:`chap_est_recharge`.

As for many other elements of the hydrograph, the plotting of the GLUE
predicted water level envelope can be turned on or off
in the :guilabel:`Page and Figure Setup` window.

.. _subsec_page_and_fig_settings:

Page and figure settings
-----------------------------------------------

Several options are available to customize the size and visibility of various
Several options are available to customize the size and visibility of the various
components of the hydrograph in the :guilabel:`Page and Figure Setup` window,
which is accessible by clicking on the |icon_page_setup| icon
(see :numref:`fig_plot_hydrograph_annoted`).
The :guilabel:`Page and Figure Setup` window is shown in
:numref:`fig_hydroprint_page_settings`, as well as the components of the
hydrograph for which the size or the visibility can be configured.
:numref:`fig_hydroprint_page_settings`, along with an annoted figure where are
presented the various components of the hydrograph layout that can be
configured from this dialog.


.. _fig_hydroprint_page_settings:
.. figure:: img/scs/hydroprint_page_setting.*
Expand Down

0 comments on commit c138588

Please sign in to comment.