credf: credf

Description Usage Arguments Value Note Author(s) See Also Examples

Description

This function converts the object returned by readosisaf to a data.frame that can be used in ggplot2 plot methods. Data are unpacked and the header information is used to create position information using UCS (Northings and Eastings) as provided by the proj4 package. If geographical positions are required use ucs2latlon and append columns to the data.frame.

Usage

1
    credf(mydata,layer=1)

Arguments

mydata

A data object as returned by readosisaf

layer

The layer of the data object to convert

Value

data.frame containing x (Eastings in km), y (Northings in km) and the actual product. Origo for the UCS is at the North Pole.

Note

Input data are currently not well defined and updates of this function is to be expected.

Author(s)

Øystein Godøy (o.godoy@met.no)

See Also

readosisaf

Examples

1
2
3
    tmp <- readosisaf("osisaf-prod.hdf5")
    tmp2 <- credf(tmp)
    ggplot()+geom_tile(data=tmp2,aes(x=x,y=y,fill=SSI)+geom_path(data=northatlantic,aes(x=x,y=y,group=group)+coord_equal(xlim=range(tmp2$x),ylim=range(tmp2$y))+scale_fill_gradientn(colours=mycolours(256))

steingod/R-osisaf documentation built on May 30, 2019, 2:32 p.m.