ETL tools for Tree Aid
Project description
Readme
Tree Aid Utilities
Simply call:
''' python3 -m tree_aid.placettes '''
In the directory with the tree and plot data (.json), will output a CSV with processed data.
Alternativly, use in a script / jupyter notebook..
''' from tree_aid.placettes import add_data_to_df, get_clean_tree_df, get_dictionary_from_json #from tree_aid.placettes import add_data_to_df, get_clean_tree_df, get_dictionary_from_json %load_ext autoreload %autoreload 2
config = { 'name_scientific': 'name_scientific', 'small_trees': 'small_circle/repeat_small_tree_circle', 'large_trees': 'group_large_tree/repeat_large_tree', 'geolocation': '_geolocation', 'large_tree_stems' : 'group_large_tree/repeat_large_tree/grp_tree_stand_shoots/repeat_circumference_stem', 'large_tree_circumfrence': 'group_large_tree/repeat_large_tree/grp_tree_stand_shoots/repeat_circumference_stem/grp_circumference_stem/circumference_measure' }
tree_data_loc = './test/Mali_PMP_TREE_Survey_FINAL-2021-10-11-15-15-46.json' plot_data_loc = './test/Mali_PMP_PLOT_Survey_FINAL-2021-10-11-15-16-08.json' output_data_loc = './output.csv'
tree_data = get_dictionary_from_json(tree_data_loc) plot_data = get_dictionary_from_json(plot_data_loc)
tree_plot_df = get_clean_tree_df(tree_data,plot_data, config) output_df = add_data_to_df(tree_plot_df, config) #output_df.to_csv(output_data_loc) '''
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 tree_aid-0.0.3.tar.gz.
File metadata
- Download URL: tree_aid-0.0.3.tar.gz
- Upload date:
- Size: 31.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6394545c21c659431057552ebebe058d02b64db30558accd5d0a13224cf58b60
|
|
| MD5 |
261d1777f075c87388e02e8c6f9ad65d
|
|
| BLAKE2b-256 |
fb9c5e818df53af99dd6837a3084337cc9684aa672501b2b9ef6bba4265708c6
|
File details
Details for the file tree_aid-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tree_aid-0.0.3-py3-none-any.whl
- Upload date:
- Size: 31.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ee1c8e57b90ddfcffb5983ac37d959740391868f16aa450d655f440e41ad02
|
|
| MD5 |
d9db0d4095d7a23c03380f3a5a6ca06b
|
|
| BLAKE2b-256 |
731f2da0e89591674b9bbf63e154487b1842605533dccbb01a20bc96de6d253b
|