Limit to number of files that can be merged with merge_arrays
?
#478
Unanswered
JamesSample
asked this question in
Q&A
Replies: 1 comment 3 replies
-
This is what currently happens: Line 38 in 033668f What probably needs to occur is one of these 2 options:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a limit to the number of data arrays that can be merged by
merge_arrays
?I'm trying to merge 146 DEM tiles that all have the same cell size and CRS:
This produces the following output:
And then gives this error:
However, if I modify the last line of the code to only consider the first 50 datasets in the list, everything works OK:
rds = merge_arrays(srcs[:50])
6403_1_10m_z32.tif
is the first raster in the list, so it shouldn't be closed (and it isn't when I just process the first 50 items).My system has plenty of resources available (total memory consumption peaks at around 4% based on the output from
top
). The followingrasterio
code also works successfully:but I'm producing a notebook for relative beginners and the
rioxarray
code is much nicer/more accessible.I'm on Linux with
rioxarray=0.10.1
installed from conda-forge.Thanks in advance for any help or advice! :)
Beta Was this translation helpful? Give feedback.
All reactions