https://vyperdatum.readthedocs.io/en/latest/
Project description
Vyperdatum
Vyperdatum [definition]
Installation
Vyperdatum requires GDAL
which can be installed from the conda's conda-forge channel. Below, we first create a conda environment, install GDAL
and Vperdatum.
conda create -n vd python=3.11
conda activate vd
conda install -c conda-forge gdal=3.8.4
pip install vyperdatum
Usage
Vyperdatum offers a Transformer
class to handle the transformation of point and raster data. The Transformer
class applies transformation from crs_from
to crs_to
coordinate reference systems. The transformation steps can be prescribed manually or let the Pipeline
class to infer:
from vyperdatum.transformer import Transformer
from vyperdatum.pipeline import Pipeline
crs_from = "EPSG:6346"
crs_to = "EPSG:6346+NOAA:5224"
tf = Transformer(crs_from=crs_from,
crs_to=crs_to,
steps=["EPSG:6346", "EPSG:6319", "EPSG:6318+NOAA:5224", "EPSG:6346+NOAA:5224"]
# steps=Pipeline(crs_from=crs_from, crs_to=crs_to).linear_steps()
# steps=Pipeline(crs_from=crs_from, crs_to=crs_to).graph_steps()
)
Once an instance of the Transformer
class is created, raster or point transformation methods can be called.
raster transform
tf.transform_raster(input_file=<PATH_TO_INPUT_RASTER_FILE>,
output_file=<PATH_TO_OUTPUT_RASTER_FILE>
)
point transform
# random values
x, y, z = 278881.198, 2719890.433, 0
xt, yt, zt = tf.transform_points(x, y, z, always_xy=True, allow_ballpark=False)
Vyperdatum Transformer
class offers a few methods to support file formats that are not supported by GDAL, such as Variable Resolution BAG, and LAZ point cloud data.
VRBAG Transform
input_file = "PATH_TO_INPUT_VRBAG.bag"
output_file = "PATH_TO_OUTPUT_VRBAG.bag"
tf.transform_vrbag(input_file=input_file, output_file=output_file)
LAZ Transform
input_file = "PATH_TO_INPUT_LAZ.laz"
output_file = "PATH_TO_OUTPUT_LAZ.laz"
tf.transform_laz(input_file=input_file, output_file=output_file)
Documentation
For a quick start, more detailed descriptions or search through the API, see Vyperdatums's documentation at: https://vyperdatum.readthedocs.io.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vyperdatum-0.3.4.tar.gz
.
File metadata
- Download URL: vyperdatum-0.3.4.tar.gz
- Upload date:
- Size: 54.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5df1489e61d8a557c897bc53458afaf3928c5b69a40fce6c38bfc1dc9a7c28d |
|
MD5 | d2a04166a078f8c74fcc39b04046f5a8 |
|
BLAKE2b-256 | 3f07252031e64c191c62cf4e8a8d99ff0e4148054f2a7e8664635d0a671868b6 |
File details
Details for the file vyperdatum-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: vyperdatum-0.3.4-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bfe922cf787a6934a5ff75a3ecf70b0a751dfef8a94b8afeea0955ed02c85c0 |
|
MD5 | d29c70f27d44e7f630b26887d0dacac1 |
|
BLAKE2b-256 | d942d04d07e812475c6f4e2aa809920fb34934fdb5dd5461c625a35c1151706e |