A package that has a core fcx data processing module and a module to visualize the processed data in python interactive notebook environment (playground).
Project description
Documentation
Steps to Use
1. Installation:
pip install fcx-playground
2. Usage:
- To use data processing steps for NAV:
from fcx_playground.fcx_dataprocess.czml_nav import NavCZMLDataProcess
obj = NavCZMLDataProcess()
data = obj.ingest("<path_to_input>")
pre_processed_data = obj.preprocess(data)
czml_str = obj.prep_visualization(pre_processed_data)
- To use data processing steps for CRS rad-range:
from fcx_playground.fcx_dataprocess.tiles_rad_range import RadRangeTilesPointCloudDataProcess
obj = RadRangeTilesPointCloudDataProcess()
data = obj.ingest("<path_to_input>")
pre_processed_data = obj.preprocess(data)
point_clouds_tileset = obj.prep_visualization(pre_processed_data)
- To visualize NAV CZML:
from fcx_playground.fcx_cesium_viz.czml_viz import CZMLViz
czml_viz_obj = CZMLViz()
nav_czml_cesium_html = czml_viz_obj.generate_html("<path_to_saved_czml>")
# use the nav_czml_cesium_html in IPython.display.HTML to render it.
- To visualize CRS rad-range 3DTiles:
from fcx_playground.fcx_cesium_viz.tiles_viz import TilesViz
tileset_viz_obj = TilesViz()
point_clouds_tileset_html = tileset_viz_obj.generate_html("<path_to_saved_point_clouds_tileset>")
# use the point_clouds_tileset_html in IPython.display.HTML to render it.
Note:
ingest, preprocess, prep_visualization methods are inherited from DataProcess Abstract Class.
As per need, we can override or write custom methods for ingest, preprocess, prep_visualization, by maintaining consistency on the return type of the overrides.
Steps to use fcx playground from Source Code
Pre-requisites
1. General direction:
- Install
python - Install
conda(optional but recommended) - Use either
piporcondato install dependencies mentioned inrequirements.txt - Data are ingested from AWS S3. So, Setup AWS credentials
aws configurePreferred. This deployment configuration is assumed to be used.- Need
aws_access_key_id and aws_secret_access_keykey values; inside~/.aws/credentials
2. Using Docker
- Install Docker
- Data are ingested from AWS S3. So, Setup AWS credentials
aws configurePreferred. This deployment configuration is assumed to be used.- Need
aws_access_key_id and aws_secret_access_keykey values; inside~/.aws/credentials
- Run
docker compose build(will take few minutes) - Run
docker compose up, and note down thetoken_id - Use
localhost:8888/tree?token=<token_id>to run Jupyter Notebook.
Usage:
notebooksdir contains all the interactive python notebooks to get started with various visualization file generations.srcdir contains modules that enables the visualization file generation.- Abstact classes defines the highlevel process on which the raw data are manupulated.
- The concrete classes are implemented from abstract classes for detailed 3d visualization file generation processes.
- There are utilities that help the visualization file generation.
Devloper guidelines:
- Clear Notebook
outputsbefore commiting any changes to git; for clean changes tracking.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fcx_playground-1.0.2.tar.gz.
File metadata
- Download URL: fcx_playground-1.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38aae866645db2ad1693f657ba9e11129721dae6be043a1dede63926d4eadf3c
|
|
| MD5 |
9880b6ec03f86626b99b69b2542b9c2b
|
|
| BLAKE2b-256 |
c636cafed77f741ac79a8cd84d07ef0d9c306c13c8f838a9566ed844344dd9df
|
File details
Details for the file fcx_playground-1.0.2-py3-none-any.whl.
File metadata
- Download URL: fcx_playground-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
953399d321553d2cf735bf2ca068d6576830c233037d760ebe374d7fc0bc9a09
|
|
| MD5 |
dd3c8d7837856c7f4442d53b52eae1c8
|
|
| BLAKE2b-256 |
0f6312e65e60ce0a20c0a875eef79128576cc23c2610d881a4ded16c9d9c5a35
|