My question has been previously asked here (R How to multiply the values of the raster pixels with the true surfaces of these pixels?), I have to multiply the precipitation value of each cell by the area corresponding to each of these pixels under R. Except that I am working with the EPSG: 102024, Africa-Lambert-Conformal-Conic Coordinate system. Is it then an unprojected raster? In ther words, do I also have to use the function raster(r)? If not, how can I get the area corresponding to each of these pixels of my raster in R?

  • I cant find that EPSG code on the epsg-registry web site - can you post the output of summary on your raster so we can see the projection string and the other parameters? – Spacedman Oct 25 '18 at 19:30
  • Okay I guess you mean ESRI 102024 - spatialreference.org/ref/esri/102024 - a proprietary code rather than EPSG. – Spacedman Oct 25 '18 at 19:31
  • If your data is in a raster with that projection string correctly set then the linked question applies - calling area(r) will return a raster with values equal to the area of your pixels. – Spacedman Oct 25 '18 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.