[ncl-talk] nc file creation

Karin Meier-Fleischer meier-fleischer at dkrz.de
Mon Nov 2 07:08:58 MST 2015


Hi Aditya,

you may have a look at the examples 'output netcdf' method 2:

http://ncl.ucar.edu/Applications/method_2.shtml

Bye,
Karin

Am 02.11.15 um 14:45 schrieb Aditya Nalam:
> I have copied all the variables in the available nc file obtained from 
> CESM and then created another nc file with some modifications.
>
> When i apply ncdump -h command over the original and modified nc 
> files, i made sure all the variables were copied. But the global 
> attributes of the original nc file were not copied to the modified nc 
> file. May i know how to transfer them?
>
>
> The following is the global attribute section of the original nc file 
> upon ncdump -h command (NetCDF)
>
> // global attributes:
>         :Conventions = "CF-1.0" ;
>         :source = "CAM" ;
>         :case = "ar5_cam_1850-2000_03" ;
>         :title = "" ;
>         :logname = "lamar" ;
>         :host = "be0207en.ucar.ed" ;
>         :Version = "$Name$" ;
>         :revision_Id = "$Id$" ;
>         :initial_file = 
> "/ptmp/lamar/cam-inputs/ar5_cam_1850_06.cam2.i.1860-01-01-00000.nc 
> <http://ar5_cam_1850_06.cam2.i.1860-01-01-00000.nc>" ;
>         :topography_file = 
> "/fs/cgd/csm/inputdata/atm/cam/topo/USGS-gtopo30_1.9x2.5_remap_c050602.nc 
> <http://USGS-gtopo30_1.9x2.5_remap_c050602.nc>" ;
>         :history = "Tue Nov 17 10:49:34 2009: ncks --append -v 
> date,time date_time_1850clim.nc <http://date_time_1850clim.nc> 
> aero_1.9x2.5_L26_1850clim_c091112.nc 
> <http://aero_1.9x2.5_L26_1850clim_c091112.nc>\n",
>             "\n",
>             "11/17/09 10:28:32 eaton:be1105en.ucar.ed:interpic -e T -p 
> 4 -t 
> /fis/cgd/cseg/csm/inputdata/atm/cam/inic/fv/camchemi_0012-01-01_1.9x2.5_L26_c081104.nc 
> <http://camchemi_0012-01-01_1.9x2.5_L26_c081104.nc> 
> /ptmp/lamar/IPCC_AR5/Climatologies_20091110/aero_1.9x2.5_L26_1850-1859.nc 
> <http://aero_1.9x2.5_L26_1850-1859.nc> 
> aero_1.9x2.5_L26_1850-1859.r4.nc 
> <http://aero_1.9x2.5_L26_1850-1859.r4.nc>" ;
> }
>
>
>
>
> Thank you very much
>
> -- 
> Regards
> Adithya Nalam
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151102/cad9de67/attachment.html 


More information about the ncl-talk mailing list