Conversation
There was a problem hiding this comment.
What do you think is the maximum file size we should permit in this repo? The entire repo will be cloned every time a downstream repo runs tests. So far I've been trying to have file sizes in the range of up to 250kb
There was a problem hiding this comment.
250kb seems reasonable to me, I can do a crop on the source image to get it below that size.
There was a problem hiding this comment.
$ ls -alsh real_data/hot-oam/68077a72c46a9912474701ef*
8 -rw-r--r--@ 1 gadomski staff 2.1K Feb 5 07:44 real_data/hot-oam/68077a72c46a9912474701ef_info.md
8 -rw-r--r--@ 1 gadomski staff 479B Feb 5 07:46 real_data/hot-oam/68077a72c46a9912474701ef.md
456 -rw-r--r--@ 1 gadomski staff 171K Feb 5 07:46 real_data/hot-oam/68077a72c46a9912474701ef.tif| Cropped with: | ||
|
|
||
| ```shell | ||
| pixi run rio clip "https://oin-hotosm-temp.s3.us-east-1.amazonaws.com/68077a72c46a9912474701ee/0/68077a72c46a9912474701ef.tif" real_data/hot-oam/68077a72c46a9912474701ef.tif --bounds "246690 4309980 246740 4310030" |
There was a problem hiding this comment.
Wow that's nice; I didn't know rio clip was a thing 😅 although I guess you need to know the true bounds?
chatgpt had suggested srcwin:
There was a problem hiding this comment.
rio clip keeps all other aspects of the input dataset the same I assume?
There was a problem hiding this comment.
I guess one benefit of using gdal_translate with -of COG is that it auto-generates overviews
There was a problem hiding this comment.
Yeah, srcwin works in pixel domain, clip is projected bounds. rio clip has a -f to set COG if you want #gdalinatrenchccoat
No description provided.