I would like to use the rasterVis
package to plot contours of spatial data (e.g. using levelplot as in this example). However, the dataset comes from a NetCDF
file with an irregular grid, as below:
lon(y,x) lat(y,x) var(y,x)
and there is no implication to the projection implied by lon/lat.
Is there a method to plot directly the dataset as raster data as in these figures without interpolation?
The headers of raster data include an extension of the grid and projection specification, which does not fit with my problem. Two-dimensional lon/lat arrays are not recognized by raster as coordinate systems.
Code and plots as in this example but with netcdf
file as:
float lat(y, x) ;
lat:standard_name = "latitude" ;
lat:long_name = "Latitude" ;
lat:units = "degrees_north" ;
lat:nav_model = "grid_T" ;
float lon(y, x) ;
lon:standard_name = "longitude" ;
lon:long_name = "Longitude" ;
lon:units = "degrees_east" ;
lon:nav_model = "grid_T" ;
float icethic(time_centered, y, x) ;
icethic:standard_name = "sea_ice_thickness" ;
icethic:long_name = "Ice thickness (cell average)" ;
icethic:units = "m" ;
icethic:online_operation = "average" ;
icethic:_FillValue = 1.e+20f ;
icethic:missing_value = 1.e+20f ;
icethic:coordinates = "time_centered nav_lon nav_lat" ;