osmscigrid
=============
**osmscigrid** is a Python library to create a `SciGRID_gas dataset <https://www.gas.scigrid.de/downloads.html>`_ of the European gas transport
pipelines from OpenStreetMap (OSM). It is based on the **esy-osmfilter** library, which is another outcome of the
the SciGRID_gas project and further described in this linked `article <https://openresearchsoftware.metajnl.com/article/10.5334/jors.317>`_ .
Features
--------
What does it provide:
- A routine to create SciGRID_gas data from OSM pbf-files
- A routine to extract meta data from OSM tags
- A segmentation routine for pipelines which will remove some intermediate nodes and create short `PipeSegments`
- An option to remove short pipelines
- A routine to export the resulting dataset in the CSV or GeoJSON format
- A routine to read SciGRID_gas CSV files
- Creating country data from only one European OSM pbf-file
What does it not provide:
- Extraction of gas network components other than pipelines
- Visualization of the data
- OSM pbf-files
Installation
------------
**osmscigrid** depends on a Python version of 3.6 or above as well as the
following libraries:
- "matplotlib==3.3.3"
- "mplcursors>=0.3"
- "Unidecode==1.1.1"
- 'pandas>=0.25.3'
- "esy-osm-pbf>=0"
- "esy-osmfilter"
- "quantulum3==0.7.6"
- "PyShp"
- "geopy"
- "scipy"
- "numpy==1.19.4"
- "pathlib>=1.0.1"
- "descartes==1.1.0"
- "adjustText==0.7.3"
- "Shapely==1.7.1"
Use ``pip`` to install **osmscigrid**:
.. code:: bash
$ pip install osmscigrid
Installation qplot
------------------
We recommend, that you also install **qplot** to visualize the results.
You can use ``pip`` to install **qplot**:
.. code:: bash
$ pip install qplot
Once you have installed **qplot**, you can import the quickplot function via:
.. code:: bash
$ from qplot.qplot import quickplot
Download of WorldBorders
------------------------
In the next step you need to navigate to the webpage of `thematicmapping <https://thematicmapping.org/downloads/world_borders.php>`_
and download the TM_WORLD_BORDERS zip-file, which is required for the country classification
but also to visualize the country borders with **qplot**.
Documentation
-------------
For more details, jump to the
[documentation](https://dlr-ve-esy.gitlab.io/osmscigrid/).
Bugfixes:
---------
On some Windows machines, there might be some issues with the installation of "Shapely".
You can try to download the proper file from the `<https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely>`_
and install it via pip.
If this does not work, than you can add this two hidden options to your OSM.read *function* which will
deactivate the country classification.
* CreateCountryCodeForLines=False
* LoadCountryCodeForLines=False
License
-------
**osmscigrid** is licensed under the `GNU General Public License version
3.0 <https://www.gnu.org/licenses/gpl-3.0.html>`_.
Data-License
------------
Please remember that all data extracted from OSM.pbf files is still under the
`Open Database License (ODbL)
<https://opendatacommons.org/licenses/odbl>`_.
The Team
--------
**osmscigrid** is developed at the
`DLR <https://www.dlr.de/EN/Home/home_node.html>`_ Institute of
`Networked Energy Systems
<https://www.dlr.de/ve/en/desktopdefault.aspx/tabid-12472/21440_read-49440/>`_
in the department for `Energy Systems Analysis (ESY)
<https://www.dlr.de/ve/en/desktopdefault.aspx/tabid-12471/21741_read-49802/>`_.
Metadata
Release files for osmscigrid 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osmscigrid-1.1.0.tar.gz | 43.7 kB | Without provenance | Details for osmscigrid-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osmscigrid-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for osmscigrid-1.1.0-py3-none-any.whl |
Total release size: 91.9 kB
Release files / osmscigrid-1.1.0.tar.gz
| Download URL | osmscigrid-1.1.0.tar.gz |
|---|---|
| Size | 43.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
090db2b194e4e2627581915f41085f51ccfbe26d3ccb59ea2921602b74a82842
|
|
BLAKE2b-256 checksum How to use checksums |
02306c66da6060b89e16f9ff3918f2ab9e08020eb13a19096a15c7fa954766f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / osmscigrid-1.1.0-py3-none-any.whl
| Download URL | osmscigrid-1.1.0-py3-none-any.whl |
|---|---|
| Size | 48.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06675a859951126e5d078cbf0733f1752ad2fe2cb8f3ab9090f56c727ae86eed
|
|
BLAKE2b-256 checksum How to use checksums |
8f8c19e174673b0175204ea888379096df50dd4dedf8ea55f1c3ae407649f630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for osmscigrid 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.