Re: Making a subset netcdf file

From: Daniel Packman <pack_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 18 2014 - 06:47:21 MDT

On Mar 18, 2014, at 2:29 AM, Tabish Ansari <tabishumaransari@gmail.com> wrote:

> Hello
>
> I wish to retain only a few variables (mostly 4d and 3d) out of my wrf output (wrfout.nc) netcdf file. Originally is carries a lot of variables which I do not need.
>
> I know that there is a way to recompile WRF to output fewer variables but my requirements change with every simulation. So I need a methodology wherein, once the full netcdf file has been written out, I can create a subset nc file with only the variables of my interest so that it doesn't occupy too much space on disk. Currently one file is 200GB!
>
> Apart from the variables, I would also like to retain the global attributes (the metadata) of the original nc file.
>
> Is there a way to achieve this in NCL or otherwise?

Check out the netcdf operators, nco
http://nco.sourceforge.net

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 18 06:47:31 2014

This archive was generated by hypermail 2.1.8 : Fri Mar 21 2014 - 15:49:21 MDT