⚲
Project
Overview
Activity
News
Wiki
Forums
Files
Documentation
General
Home
Projects
Imprint + Privacy Policy
Help
Profile
Sign in
Register
Search
:
CDO
All Projects
CDO
Download (330 Bytes)
remapping an unstructured grid
» plot_unstructured.R
script to plot unstructured data -
Rolf Zentek
, 2015-01-15 12:49
library
(
ncdf
)
# load data
filedata
=
"world_10degree_167nn_FOUR.nc"
nc
<-
open.ncdf
(
filedata
)
data
<-
get.var.ncdf
(
nc
,
"FR_LAND"
)
lon
<-
get.var.ncdf
(
nc
,
"lon"
)
lat
<-
get.var.ncdf
(
nc
,
"lat"
)
# plot
rbPal
<-
colorRampPalette
(
c
(
'blue'
,
'red'
))
COL
<-
rbPal
(
10
)[
as.numeric
(
cut
(
data
,
breaks
=
10
))]
plot
(
lon
,
lat
,
col
=
COL
,
pch
=
15
,
cex
=
4
)
« Previous
1
2
3
4
5
…
7
Next »
(3-3/7)
Loading...