Skip to content
Prev 28873 / 29559 Next

Mapping Pacific centered map for Spatial analysis

Hi:


I've prepared an alternative to your code, with some ideas that might 
help. Following Roger's comment, I transformed the spatial layers to 
EPSG:3460. The code is attached.


I also have a few comments. Inline, below:
On 13/03/2022 11:26, sownal chand wrote:
First, you're using some older packages (rgdal and rgeos). Today it 
makes sense to switch to the newer sf without those dependencies.
This data file is in "wide" format. In the example I show how to make it 
"tidy" for further plotting and analysis.
Next, you have data from only a few, widely spaced stations, and IDW 
might not be the best interpolation method. But that's for you to decide.
With gstat you can now use a stars object as target grid. See my example.
Final comment. You mentioned a time series analysis to follow climate 
change. You'll have to decide how you want to go about this. Are you 
going to prepare interpolations for each year, then do a pixel by pixel 
change detection? In my example I show a simple time series plot of 
temperature data, by station.


HTH

Regards, Micha