rspatial / geodata

download geographic data
GNU General Public License v3.0
147 stars 15 forks source link

`cmip6_tile()` ignores `res` argument #57

Closed AMBarbosa closed 9 months ago

AMBarbosa commented 9 months ago

When running cmip6_tile(), no matter what you provide as the resargument (even values that supposedly aren't allowed), it downloads the layers at 0.5 arc-min resolution:

wc.fut <- geodata::cmip6_tile('MRI-ESM2-0',
                              '585',
                              '2061-2080',
                              var = 'bioc',
                              res = 2.5,  # but tried also res=10, res=115, etc.
                              path = tempdir(),
                              lon = 80.69787,
                              lat = 7.621672)

res(wc.fut)
# [1] 0.008333333 0.008333333

A fix would be greatly appreciated, especially because the download at this resolution takes a looong time :) Regards!

AMBarbosa commented 9 months ago

Oops, I now see that res is not an argument for cmip6_tile() (although it is for cmip6_world(), which is in the same help file), because the files at geodata.ucdavis.edu don't include different resolutions for tiles. I'll close this issue and submit a pull request to make the help file a bit more explicit.