-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from antarctica/1.1.6
1.1.6
- Loading branch information
Showing
172 changed files
with
21,605 additions
and
2,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: e1bbf1467da075d11c4c3dc808fb152e | ||
config: 30f730049513b06b62ef00a8243579cc | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+32.5 KB
docs/html/.doctrees/sections/Configuration/Configuration_overview.doctree
Binary file not shown.
Binary file added
BIN
+57.2 KB
docs/html/.doctrees/sections/Configuration/Mesh_construction_config.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.91 KB
docs/html/.doctrees/sections/Dataloaders/lut/implemented/Density.doctree
Binary file not shown.
Binary file added
BIN
+10.2 KB
docs/html/.doctrees/sections/Dataloaders/lut/implemented/LutCSV.doctree
Binary file not shown.
Binary file added
BIN
+13.8 KB
docs/html/.doctrees/sections/Dataloaders/lut/implemented/LutGeoJSON.doctree
Binary file not shown.
Binary file added
BIN
+10.3 KB
docs/html/.doctrees/sections/Dataloaders/lut/implemented/Scotland_NCMPA.doctree
Binary file not shown.
Binary file added
BIN
+19 KB
docs/html/.doctrees/sections/Dataloaders/lut/implemented/Thickness.doctree
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-10 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/Density.doctree
Binary file not shown.
Binary file added
BIN
+11.6 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ECMWFSigWaveHeight.doctree
Binary file not shown.
Binary file added
BIN
+11.9 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ERA5MaxWaveHeight.doctree
Binary file not shown.
Binary file added
BIN
+12 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ERA5SigWaveHeight.doctree
Binary file not shown.
Binary file added
BIN
+12 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ERA5WaveDirection.doctree
Binary file not shown.
Binary file added
BIN
+11.8 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ERA5WavePeriod.doctree
Binary file not shown.
Binary file added
BIN
+11.7 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ERA5WindDirection.doctree
Binary file not shown.
Binary file added
BIN
+11.7 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/ERA5WindMagnitude.doctree
Binary file not shown.
Binary file removed
BIN
-9.86 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/Thickness.doctree
Binary file not shown.
Binary file added
BIN
+17.8 KB
docs/html/.doctrees/sections/Dataloaders/scalar/implemented/visual_iced.doctree
Binary file not shown.
Binary file modified
BIN
+131 Bytes
(100%)
docs/html/.doctrees/sections/Dataloaders/scalar/index.doctree
Binary file not shown.
Binary file added
BIN
+13.2 KB
docs/html/.doctrees/sections/Dataloaders/vector/implemented/DUACS.doctree
Binary file not shown.
Binary file added
BIN
+12.7 KB
docs/html/.doctrees/sections/Dataloaders/vector/implemented/ERA5WaveDirection.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+192 KB
docs/html/.doctrees/sections/Mesh_Construction/Mesh_construction_classes.doctree
Binary file not shown.
Binary file added
BIN
+9.01 KB
docs/html/.doctrees/sections/Mesh_Construction/Mesh_construction_overview.doctree
Binary file not shown.
Binary file added
BIN
+34.1 KB
docs/html/.doctrees/sections/Mesh_Construction/Mesh_validation.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
********** | ||
Background | ||
********** | ||
|
||
|
||
Code Structure | ||
############## | ||
The outline of this manual is to provide the user with all the tools that they need to run the software for a set of examples. We also hope that the background information supplied for each section allows the user to understand the methods used throughout this toolkit. | ||
|
||
The separate stages of the codebase can be broken down into: | ||
|
||
1. :ref:`Dataloaders <dataloaders-overview>` - Reading in different datasets of differing types. Throughout this section we will outline the form that the input datasets should take and useful tips for pre-processing your data. | ||
2. :ref:`Mesh Construction <mesh_construction_overview>` - Generating a Digital Twin of the environmental conditions. In this section we outline the different Python classes that are used to construct a discretised representation across the user defined datasets, giving a coding background to the dynamic splitting of the mesh to finer resolution in regions of datasets that are spatially varying. | ||
|
||
Each stage of this pipeline makes use of a configuration file, found in the :ref:`Configuration Overview` section of the documentation | ||
and produces an output file, the form of which can be found in the :ref:`outputs` section of this document. | ||
|
||
In addition to the main section of the codebase we have also developed a series of plotting classes that allows the user to generate interactive maps and static figures for the Mesh Features. These can be found in the `Plotting` section later in the manual. |
143 changes: 143 additions & 0 deletions
143
docs/html/_sources/sections/Command_line_interface.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
############################### | ||
Command Line Interface | ||
############################### | ||
|
||
The MeshiPhi package provides CLI entry points, used to build a digital environment from a hetrogeneous collection of source data. | ||
This digital environment file (mesh) may then be exported to a variety of file formats for use in other systems, such as GIS software. | ||
The produced mesh file also interfaces directly with PolarRoute, BAS's route planning software to provide optinal routes through mesh. | ||
|
||
^^^^^^^^^^^ | ||
create_mesh | ||
^^^^^^^^^^^ | ||
|
||
The *create_mesh* entry point builds a digital environment file from a collection of source data, which can then be used | ||
by the vessel performance modeller and route planner. | ||
|
||
:: | ||
|
||
create_mesh <config.json> | ||
|
||
positional arguments: | ||
|
||
:: | ||
|
||
config : A configuration file detailing how to build the digital environment. JSON parsable | ||
|
||
The format of the required *<config.json>* file can be found in the :ref:`configuration - mesh construction` section of the documentation. | ||
There are also example configuration files available in the directory :code:`examples/environment_config/grf_example.config.json` | ||
|
||
optional arguments: | ||
|
||
:: | ||
|
||
-v (verbose logging) | ||
-o <output location> (set output location for mesh) | ||
|
||
|
||
The format of the returned mesh.json file is explain in :ref:`the mesh.json file` section of the documentation. | ||
|
||
|
||
|
||
^^^^^^^^^^^ | ||
export_mesh | ||
^^^^^^^^^^^ | ||
Once a mesh has been built using the :ref:`create_mesh` command, it can be exported other file types for | ||
use in other systems (such as GIS software) using the the *export_mesh* command. | ||
|
||
:: | ||
|
||
export_mesh <mesh.json> <output_location> <output_format> | ||
|
||
positional arguments: | ||
|
||
:: | ||
|
||
mesh : A digital environment file. | ||
output_location : The location to save the exported mesh. | ||
output_format : The format to export the mesh to. | ||
|
||
|
||
supported output formats are: | ||
* .json (default) [JSON] | ||
* geo.json (collection of polygons for each cell in the mesh) [GEOJSON] | ||
* .tif (rasterised mesh) [TIF] | ||
* .png [PNG] | ||
|
||
optional arguments: | ||
|
||
:: | ||
|
||
-v : verbose logging | ||
-o : output location | ||
-format_conf: configuration file for output format (required for TIF export, optional for GEOJSON) | ||
|
||
the format of the *<format_conf.json>* file required for .tif export is as follows: | ||
|
||
:: | ||
|
||
{ | ||
"data_name": "elevation", | ||
"sampling_resolution": [ | ||
150, | ||
150 | ||
], | ||
"projection": "3031", | ||
"color_conf": "path to/color_conf.txt" | ||
} | ||
|
||
where the variables are as follows: | ||
* **data_name** : The name of the data to be exported. This is the name of the data layer in the mesh. | ||
* **sampling_resolution** : The resolution of the exported mesh. This is a list of two values, the first being the x resolution and the second being the y resolution. | ||
* **projection** : The projection of the exported mesh. This is a string of the EPSG code of the projection. | ||
* **color_conf** : The path to the color configuration file. This is a text file containing the color scheme to be used when exporting the mesh. The format of this file is as follows: | ||
|
||
:: | ||
|
||
0 240 250 160 | ||
30 230 220 170 | ||
60 220 220 220 | ||
100 250 250 250 | ||
|
||
The color_conf.txt contains 4 columns per line: the data_name value and the | ||
corresponding red, green, blue value between 0 and 255. | ||
|
||
When using the *-format_conf* option for GEOJSON output the only variable required is the **data_name**. This specifies which of the data layers you want to export as a single GEOJSON file. | ||
|
||
^^^^^^^^^^^^ | ||
rebuild_mesh | ||
^^^^^^^^^^^^ | ||
|
||
Once a mesh has been built using the :ref:`create_mesh` command the *rebuild_mesh* command allows a user to rebuild it based on the | ||
original configs stored within the mesh file. This is primarily useful for debugging or to update old meshes produced with an older version | ||
of the package. Running this command will also reapply any vessel performance simulations, if these were run on the original mesh. | ||
|
||
:: | ||
|
||
rebuild_mesh <mesh.json> | ||
|
||
optional arguments: | ||
|
||
:: | ||
|
||
-v : verbose logging | ||
-o : output location | ||
|
||
|
||
^^^^^^^^^^^^^^^^^^^^^ | ||
plot_mesh (GeoPlot) | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
Meshes produced at any stage in the route planning process can be visualised using the GeoPlot | ||
library found at the relevant `GitHub page <https://github.com/antarctica/GeoPlot>`_. Meshes and routes can also be | ||
plotted in other GIS software such as QGIS by exporting the mesh to a common format such as .geojson or .tif using | ||
the :ref:`export_mesh` command. | ||
|
||
:: | ||
|
||
plot_mesh <mesh.json> | ||
|
||
optional arguments: | ||
|
||
:: | ||
|
||
-v : verbose logging | ||
-o : output location |
34 changes: 34 additions & 0 deletions
34
docs/html/_sources/sections/Configuration/Configuration_overview.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
###################################### | ||
Configuration Overview | ||
###################################### | ||
|
||
In this section we will outline the standard structure for a configuration file used in | ||
all portions of the PolarRoute software package. | ||
|
||
Each stage of the route-planning process is configured by a separate configuration file. | ||
The configuration files are written in JSON, and are passed to each stage of the | ||
route-planning process as command-line arguments or through a Python script. | ||
|
||
Example configuration files are provided in the `config` directory. | ||
|
||
Descriptions of the configuration options for the Mesh Construction can be found in | ||
the :ref:`Configuration - Mesh Construction` section of the documentation. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
./Mesh_construction_config | ||
|
||
|
||
Config Validation | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
At each major stage of the code (mesh construction, vessel performance modelling, | ||
and route planning), the configs supplied are validated using a template JSON Schema. | ||
These schema check that the correct keywords and datatypes are provided in the config | ||
JSON's, as well as the waypoints CSV file. They also perform rudimentary checks on the | ||
values to ensure that they make sense (e.g. startTime is before endTime). | ||
|
||
.. automodule:: meshiphi.config_validation.config_validator | ||
:members: |
Oops, something went wrong.