datazoompuc/datazoom.amazonia

Error in load_climate

Closed this issue · 2 comments

The error:" 'curl' call had nonzero exit status " can be solved by installing or upgrading libressl, openssl, curl and restarting the computer (this is important).

I haven't tested everything, but it seems to be working. The data is heavy though, so connection issues could cause problems.

datazoom.amazonia::load_climate("max_temperature", time_period = 1999)
#> Downloading TerraClimate data
#> Downloading Brazilian map data
#> Simple feature collection with 4900620 features and 9 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -73.99045 ymin: -33.75118 xmax: -28.84784 ymax: 5.271841
#> Geodetic CRS:  SIRGAS 2000
#> # A tibble: 4,900,620 × 10
#>    municipality_code municipality        state_code state name_state code_region
#>                <dbl> <chr>                    <dbl> <chr> <chr>            <dbl>
#>  1           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  2           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  3           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  4           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  5           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  6           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  7           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  8           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#>  9           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#> 10           1100015 Alta Floresta D'oe…         11 RO    Rondônia             1
#> # ℹ 4,900,610 more rows
#> # ℹ 4 more variables: name_region <chr>, geometry <MULTIPOLYGON [°]>,
#> #   date <date>, max_temperature <dbl>

Created on 2023-11-07 with reprex v2.0.2

It worked for me too.