Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

st_dimensions<-.stars_proxy changes class of object? #494

Closed
dblodgett-usgs opened this issue Dec 28, 2021 · 0 comments
Closed

st_dimensions<-.stars_proxy changes class of object? #494

dblodgett-usgs opened this issue Dec 28, 2021 · 0 comments

Comments

@dblodgett-usgs
Copy link
Contributor

library(stars)
#> Loading required package: abind
#> Loading required package: sf
#> Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1

f <- system.file("nc/reduced.nc", package = "stars")
nc <- read_stars(f, proxy = TRUE)
#> Warning in CPL_read_gdal(as.character(x), as.character(options),
#> as.character(driver), : GDAL Message 1: Recode from UTF-8 to CP_ACP failed with
#> the error: "Invalid argument".
#> sst,
#> Warning in CPL_read_gdal(as.character(x), as.character(options),
#> as.character(driver), : GDAL Message 1: Recode from UTF-8 to CP_ACP failed with
#> the error: "Invalid argument".
#> anom,
#> Warning in CPL_read_gdal(as.character(x), as.character(options),
#> as.character(driver), : GDAL Message 1: Recode from UTF-8 to CP_ACP failed with
#> the error: "Invalid argument".
#> err,
#> Warning in CPL_read_gdal(as.character(x), as.character(options),
#> as.character(driver), : GDAL Message 1: Recode from UTF-8 to CP_ACP failed with
#> the error: "Invalid argument".
#> ice,
#> Warning in CPL_read_gdal(as.character(x), as.character(options),
#> as.character(driver), : GDAL Message 1: Recode from UTF-8 to CP_ACP failed with
#> the error: "Invalid argument".
class(nc)
#> [1] "stars_proxy" "stars"
st_dimensions(nc) <- st_dimensions(nc)
class(nc)
#> [1] "stars"

nc
#> Error in dim.stars(x): length(d) == length(dim(x[[1]])) is not TRUE

Created on 2021-12-27 by the reprex package (v2.0.0)

@edzer edzer closed this as completed in f9fa511 Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant