[gradsusr] netcdf files with different order of variables

Andrew Friedman andfried at gmail.com
Tue Feb 6 04:38:56 EST 2018


Hi Senya,

You can use the NCO utility ncpdq “permute dimensions quickly” to change the order of netcdf variables:
http://nco.sourceforge.net/nco.html#ncpdq-netCDF-Permute-Dimensions-Quickly

-Andrew

> On Feb 6, 2018, at 4:13 AM, Semyon Grodsky <senya at umd.edu> wrote:
> 
> Dear GRADS community,
> 
> I face a bit unusual problem. I have data in netcdf fromat, but a portion of files has different order of variables. For an example, some files has the following order of variables u,v,T.S while other files - T,S, u,v.
> 
> Is there a way to use all these data in GRADS?
> 
> Alternatively, could smb suggest a simple (utility based) way to unify the order of variables (say change T,S, u,v => u,v,T.S)?
> 
> Thanks,
> 
> --Senya
> 
> -- 
> -----------------------------------------------
> Semyon Grodsky
> University of Maryland
> Department of Atmospheric and Oceanic Science
> Room 2409, Atlantic Building (224)
> 4254 Stadium Dr.
> College Park, MD 20742
> 
> Phone:  301-405-5330
> Fax:    301-314-9482
> E-mail: senya at atmos.umd.edu
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr




More information about the gradsusr mailing list