Ich habe einenWie kann ich die Dimensionen einer netCDF-Datei austauschen?
dimensions:
time = 1000 ;
xr = 100 ;
variables:
int time(time) ;
time:long_name = "time since time reference (instant)" ;
time:units = "hours since 2010-05-01" ;
double v1(xr, time) ;
v1:long_name = "V1" ;
averageInstantRunoff:units = "m s-1" ;
double v1(time, xr) ;
v1:long_name = "V1" ;
averageInstantRunoff:units = "m s-1" ;
int xr(xr) ;
xr:long_name = "xr index" ;
xr:units = "-" ;
Hier möchte ich Variable v1
machen haben Dimensionen (Zeit, xr) anstelle von (xr, Zeit).
Ich tue dies mit:
ncpdq -v v1 -a time,xr test.nc test2.nc
Aber natürlich ist es nicht v2 kopieren. Ich mache es über große Dateien mit einer großen Anzahl von Variablen und ich möchte es nur für eine einzelne Variable tun.
Wie kann ich das tun?