Skip to content

Reading nc files

2 messages · Magdalena Lucini, David Winsemius

#
Dear all,

I have to open and read several netCDF (.nc) files. I installed the
ncdf package and everything works fine.

The problem is that I also have several netCDF files that are also
ziped. These files are in the form,:

nc_file.gz

I tried different ways (within R) to unzip and read them, but they did not work.

I'll appreciate any suggestion on how to do that.

Thanks,

Magdalena Lucini
#
You need to use a utility program to unpack the .gz file type and that  
would be specific to your OS.