EcoShard GIS data
This module is used to ecoshard sets of files.
python -m ecoshard \[original\_file\] --hashalg md5 --rename
(creates an ecoshard from original file with the md5 hash algorithm and renames the result rather than creating a new copy)
python -m ecoshard *.tif --compress --buildoverviews
(does a GIS compression of all *.tif files in the current directory and builds overviews for them and renames the result rather than making a new copy. Here if –rename had been passed an error would have been raised because rasters cannot be in-place compressed. The target output files will have the format [original_filename]_compressed_[hashalg]_[ecoshard][fileext])
python -m ecoshard *.tif --compress --buildoverviews --upload
(does the previous operation but also uploads the results to gs://ecoshard-root/working-shards and reports the target URLs to stdout)
python -m ecoshard *.tif ./outputs/*.tif --validate
(searches the .tif and ./outputs/.tif globs for ecoshard files and reports whether their hashes are valid or not)
- Fixed an issue that would cause the download rate to be under estimated.
- Fixing an issue in download_to_url where the file might not be flushed and the final log message is not printed.
Added a new command line mode â€“reduce_factor that reduces the number of pixels in a raster by that integer amount. Ex:
python -m ecoshard base.tif --reduce_factor 4 max target.tif
this call makes the size of the pixels in base.tif 4 times larger on the edge, thus reducing the total size of the image by 16 times, the convolution upsample is done with a “max” and the output file is target.tif. The modes “min”, “max”, “sum”, “average”, “mode” are available.
- Added a download_url function to ecoshard to fetch files via http(s).
- Developing Flask module to visualize ecoshards.
- Hotfix: gs to gsutil for copying to buckets.
- Added functionality to download a url.
- Added functionality to copy to a google bucket.
- Fixed an issue on functions that should write a token file but didn’t.
- Added a --force flag to the command line utility.
- Initial release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ecoshard-0.3.2-py3-none-any.whl (10.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size ecoshard-0.3.2.tar.gz (12.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|