I have daily sea surface temperature and air temperature data from 1980 to 2018. How do I extract values for multiple (up to 100) specific locations at different dates in one go to csv. Right now I can only extract one location at a time.

How can it be done in bulk in R?

1 Answer 1


Here is some example code for R. I think there are many examples out there.

b <- brick("climfile.nc")
points <- shapefile("ptsfile.shp") 
d <- extract(b, points)
write.csv(d, "file.csv", rownames=FALSE)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.