Thank you Robert.

Indeed, they are in different coordinate systems.

bio1 is in long/lat

ai is in CRTM05

bio1 one is one of the bioclim layer for region 23 is a continental layer
and ai a region of Costa Rica.

What will be the best way to handle this, at the end I will be working with
all the bioclim layers (19) in ai on CRTM05.

Do I need to "reproject" ai to lon/lat and "reproject" again to CRTM05 with
the 19 bioclim layers?

Best,

Manuel

2011/4/11 Robert Hijmans <r.hijmans@gmail.com>

>
> Manuel,
>
> > bio1ai <- crop(bio1, ai)
> > Error in intersectExtent(x, y) : Invalid extent
>
> This somewhat cryptic error message means that the extent of y does not
> overlap with the extent of x. Hence y cannot be used to crop x.
>
> extent(bio1)
> extent(ai)
>
> Perhaps this happens because bio1 is in lon/lat while ai is in UTM or
> another projection.
>
> Robert
>
>
>
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/Shapefile-to-raster-and-crop-a-raster-error-tp6262811p6263823.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
mspinola10@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

