Skip to content
Prev 9963 / 29559 Next

Projection question...

On Thu, Nov 11, 2010 at 10:20 PM, Jonathan Greenberg
<greenberg at ucdavis.edu> wrote:
What do you mean by the raster losing data north of 46.6379 degrees?
And what are you using to reproject? (Because a raster normally needs
transforming to a new grid in the new CRS, spTransform wont do it).

 I see no problems doing an spTransform on a set of points in the
range of your raster summary:

pts=data.frame(x=seq(-16231.49,11313351,len=30),y=seq(-16231.5,8976020,len=30),z=1:30)
coordinates(pts)=~x+y
proj4string(pts)="+proj=lcc +lat_1=50 +lat_2=50 +lat_0=50 +lon_0=-107
+x_0=5632642 +y_0=4612546 +ellps=WGS84"
spTransform(pts,CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
+towgs84=0,0,0"))

gives me 30 points with no NA's or anything unexpected...

Barry