Home > Uncategorized > HADISST NA error

HADISST NA error

hadisst  NetCDF file has a metadata error. They set the missing data number to 1e+30 in the metadata

BUT, in the data its -1e+30. That was fixed by just rewriting the metadata.Open the file for writing and set the missing value CORRECTLY to -1e+30

So now,

# read the data into a raster “brick”

b<-brick(seafile,varname=’sst’)

plot(b,col=rainbow(100))

gets you this

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: