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 or let the Pipeline
class
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()
)
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)
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
vyperdatum-0.3.2.tar.gz
(39.9 kB
view hashes)
Built Distribution
Close
Hashes for vyperdatum-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3faac3777fefff894995b23b7b0df1d3eb7a71af6f471d182fe7d9f82c1c9b2c |
|
MD5 | 2850aaa95f82e558ec4b81dcbaca6dc1 |
|
BLAKE2b-256 | 4a59ef8f5edec6652572d319fc5b26a58b139a3dc1474a62b39a54fbaea0ef93 |