Content
- Current release
- Future release
- Installation
- Quick tutorial
- Command line Use
- Running the tests
- Authors
- License
rsgis
A python package for basic to Advanced GIS operations.
Current_Release
- Metadata support module for landsat
- Landsat module for landsat bands extraction and manipulation
Future_Release
- Metadata support for other file formats(sentinel,NetCDF etc)
- A one liner for basic to advanced GIS operations
- NDVI,NDWI,NDBI
- Image subsetting/clipping support
Installation
The package is available on the python package index(Pypi),to install use the command below;
Python version 3.0 +
pip install rsgis
Quick_Tutorial
Using the landsat module
#import the module
from rsgis import landsat
#Extract all files
data = landsat.extract(path/to/landsat/dataset)
#To check path to extracted data
data.path
#Extract specific bands
#Here we will extract the metadata = 0, band1 = 1 and band2 = 2
data = landsat.extract(path/to/landsat/dataset, bands = [0, 1, 2])
#Get metadata path
data.get_metadata()
#Get path(s) to specific band(s)
#In this example, we will be getting band4 and band5
data.get_bands(4, 5)
Using the Metadata module with the Landsat Module
#import the class
from rsgis import Metadata,landsat
data = landsat.extract(path/to/landsat/dataset)
meta_path=data.get_metadata()
mtd=Metadata(meta_path)
#usage
mtd.get('SUN') #to get a single parameter. Might return a list of dict if found multiple match. Be specific to avoid this.
mtd.get_all() #returns a dict of all available parameters in the metadata file
mtd.get_some(['sun','path','row']) #To get multiple parameters. Returns a list of values.
Command_Line_Use
Change directory into the rsgis folder to run
python main.py --dir_path [path/to/metadata/file] --get [parametr to get]
#This command returns the result of the --get query
Running_The_Tests
Paste a metadata file in the data dir(delete old one) in tests and cd into the test dir then run in terminal
python metadata_test.py
If no error,then you can go ahead to do some magic.
Contributing
PRs and issues are welcomed and not limited to the following:
- Code documentation
- Refactoring
- Adding support for other metadata file types etc
Authors
Jolaiya Emmanuel - Twitter, Email
Oke Matthew - Email
License
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details
Metadata
Release files for rsgis 0.0.3
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 |
|---|---|---|---|---|
| rsgis-0.0.3.tar.gz | 7.3 kB | Without provenance | Details for rsgis-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rsgis-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for rsgis-0.0.3-py3-none-any.whl |
Total release size: 19.1 kB
Release files / rsgis-0.0.3.tar.gz
| Download URL | rsgis-0.0.3.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a64f32e79eb3f1abe7d145e981bb61c360e6f2a7129009d927768de810c0251
|
|
BLAKE2b-256 checksum How to use checksums |
2cee0422195ef8e6e38ab7f36b9d9c205eec1595a927d3c26749c4d74fd4ec24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1
|
Release files / rsgis-0.0.3-py3-none-any.whl
| Download URL | rsgis-0.0.3-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f6cd513808015a991fc82f2f461b3dea1bece581de676590ddf511c23694c76
|
|
BLAKE2b-256 checksum How to use checksums |
29234dd124d82530caacdf41db035a5a0e3d9f1fec2bbc2bdc09507be1a292be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1
|
Security for rsgis 0.0.3
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.