Having a problem in R's raster package -
I can't crop a raster across the 180° meridian - I'm trying to create a bounding box with longitude 120°-230° East
Simple enough, but the following code:
cropbox2 <-c(120,230,70,90) crop2 <- crop(rt, cropbox2)
Doesn't return anything beyond 180E - it can't seem to cross the 180° meridian
Error in validityMethod(object) : invalid extent: xmin >= xmax
Surely this is a common problem people have run into? I'm only trying to crop the N Pacific!