[gradsusr] ncpdq issue of a netcdf file ....

Andrew Friedman andfried at berkeley.edu
Wed Mar 27 14:17:52 EDT 2013


Hi Kishore,

If you have another file with the proper time dimension, you can copy the time dimension from it using ncks: http://nco.sourceforge.net/nco.html#ncks-netCDF-Kitchen-Sink
for example: ncks --append -F -d time,1,END_TIME_VALUE -v time infile.nc outfile.nc

I don't know to generate new time dimension values using NCO however - you may be get help on the NCO forum: http://sourceforge.net/projects/nco/forums/forum/9830

Andrew

On Mar 27, 2013, at 3:58 AM, Kishore Babu <kishoreragi at gmail.com> wrote:

> Dear grads users,
> 
> I know this is not a grads issue, but I hope I am helped by grads users...
> 
> When I packed nc with file with ncpdq , (command: ncpdq infile.nc outfile.nc) it is changing the time dimension as below ...
> 
> 0.25, 0.5, 0.75 ,1,1.25,1.5 ...... to 0,0,0,0,1,1,1,1,2,2,2,2 .... 
> 
> But, I need to change time dimension  to 0,1,2,3,4 ..... 
> 
> Could anyone please let me know how to change the dimension values... 
> 
> Thank you in advance,
> 
> Regards,
> 
> Kishore
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr





More information about the gradsusr mailing list