Raúl,

You are not doing anything wrong. The function does not work for the few
countries for which the rasters have been split in multiple files. It is
has been fixed for the next release or 'raster'.

Thanks, Robert

On Tue, May 15, 2012 at 12:58 AM, Raúl Jiménez Rosenberg <
raul.jimenez.rosenberg@gmail.com> wrote:

> Hi all,
>
> I got problems with Raster getData() for elevation data, for USA (maybe for
> other countries too).
>
> The zip file http://diva-gis.org/data/msk_alt/USA_msk_alt.zip comes with
> four Golden Software Binary Grid files, one for continental USA (non
> Alaska), Alaska, etc. Called USA1..., USA2..., respectively.
>
> However, getData() based on source code getData.R builds the filename using
> the country code, path and mask, then:
>
> getData('alt', country = 'USA')
>
> Builds after getting the file and unzip it, a raster(filename), where
> filename is USA_msk_alt.grd which does not exist in the zip file.
>
> I download the file and read it directly with raster("USA1_msk_alt.grd"),
> no problems, I only want to know if I'm doing something wrong.
>
> getData('alt', country = 'MEX') works just fine.
>
> Thanks raul
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

