From 1f1d2fff0f8b822b142ad19f98192c6aa9de9c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Tavon?= <34774759+remtav@users.noreply.github.com> Date: Thu, 6 Jul 2023 13:22:46 -0400 Subject: [PATCH] geoutils.py: force BIGTIFF (#526) * geoutils.py: force BIGTIFF * adding total to tqdm * add the template * add doc * Mikhail fix * Mikhail change * freeze the env * fix freezed the env * update the env * remove change in the env * Fix gh actions (#530) * an update to handle uint16 data * a fix for handling the OGR geometry type "GEOMETRYCOLLECTION" * added to gha.yml: conda config --set channel_priority strict * removed to gha.yml: conda config --set channel_priority strict * python 3.9 to 3.10 in gha.yml: * python 3.9 to 3.10 in gha.yml: * python 3.9 to 3.10 in gha.yml: * python 3.9 to 3.10 in gha.yml: deleted pytorch-cpu * python 3.9 to 3.10 in gha.yml: conda set priority * python 3.9 in env.yml * dependencies review * dependencies review * dependencies review * initial but 3.9 in env.yml * p3.9, no docker-py * p3.9, updated versions * p3.9, recreated requirements. * p3.9, recreated requirements. * p3.9, recreated requirements, all in pip * p3.10, recreated requirements, all in pip, update conda * p3.10, recreated requirements, all in pip, update conda + coverage * p3.10, recreated requirements, all in pip, update conda + coverage * p3.10, recreated requirements, all in pip, update conda + coverage + pip * p3.10, recreated requirements, all in pip, update conda + coverage + pip * p3.10, recreated requirements, all in pip, update conda + coverage + pip + gdal + ptl * p3.10, recreated requirements, all in pip * p3.10, recreated requirements, all in pip * p3.10, recreated requirements, all in pip * p3.10, recreated requirements, all in pip, no pytorch-cpu * p3.10, recreated requirements, all in pip, torch-cu * p3.10, recreated requirements, all in pip, torch-cpu url * p3.10, recreated requirements, all in pip, torch-conda * p3.10, recreated requirements, all in pip, torch-conda * p3.10, recreated requirements, updated * p3.10, recreated requirements, updated2 * p3.10, final version * p3.10, final version no-cpu * p3.10, final version no-cpu v2 * removed commented rows * level to the new gh action * geoutils.py: force BIGTIFF * geoutils.py: force BIGTIFF * adding total to tqdm * Mikhail change --------- Co-authored-by: rtavon Co-authored-by: CharlesAuthier Co-authored-by: Mikhail Sokolov <54916039+ms888ekb@users.noreply.github.com> --- utils/geoutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/geoutils.py b/utils/geoutils.py index f656496d..c1d4cd85 100644 --- a/utils/geoutils.py +++ b/utils/geoutils.py @@ -65,6 +65,10 @@ def create_new_raster_from_base(input_raster, output_raster, write_array, dtype crs=src.crs, dtype=dtype, transform=src.transform, + tiled=True, + blockxsize=256, + blockysize=256, + BIGTIFF='YES', compress='lzw') as dst: dst.write(write_array) # add tag to transmit more information