Skip to content

Commit

Permalink
return data.frame for composit data; #659
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jan 5, 2024
1 parent 0483462 commit a863546
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/mdim.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ read_mdim = function(filename, variable = character(0), ..., options = character

stopifnot(is.character(filename), is.character(variable), is.character(options))
ret = gdal_read_mdim(filename, variable, options, rev(offset), rev(count), rev(step), proxy, debug)

if (length(ret$dimensions) == 1 && length(ret$array_list) == 1 && is.data.frame(ret$array_list[[1]]))
return(ret$array_list[[1]]) ## composite data: RETURNS

ret = recreate_geometry(ret)
if (isTRUE(bounds) || is.character(bounds))
ret$dimensions = mdim_use_bounds(ret$dimensions, filename, bounds)
Expand Down

0 comments on commit a863546

Please sign in to comment.