Skip to content

Importing Netcdf files, but losing spatial reference data

2 messages · Wall, Wade A ERDC-RDE-CERL-IL, Michael Sumner

#
Hi all,

I am importing netcdf4 files using brick() from the raster package, but am losing the spatial reference data.

Example code.

tmpBrick <- brick("SomeNetcdfFile.nc")

Am I doing something wrong here? I would prefer not to use open.ncdf(), but if I have to do so and then convert to a brick object, then I guess I can do it.

Thanks for any information,

Wade
#
We really need at least the print suumary of tmpBrick and a description of
the file, please include the output of open.ncdf() or other ncdump -h
equivalent.

Cheers, Mike

On Fri, May 8, 2015, 07:15 Wall, Wade A ERDC-RDE-CERL-IL <
Wade.A.Wall at usace.army.mil> wrote: