Project

General

Profile

Merge NC files change Lat long axis

Added by naeem saddique over 4 years ago

Hello everyone,
I have two netcdf files, when i merged two files using (cat) command then order of lon and lat change, lon shift toward y-axis and lat toward x-axis.
please let me know, how i can get the right axis direction.
cdo cat file1 file2 combine.nc


Replies (1)

RE: Merge NC files change Lat long axis - Added by Ralf Mueller over 4 years ago

you time variable is non-CF-conform

    int timestp(tstep) ;
                timestp:title = "time steps" ;
                timestp:units = "time steps (days) since 1980-01-01 00:00:00" ;
                timestp:long_name = "time steps (days) since start of month" ;

   float Rainf(tstep, lat, lon) ;

use the same name for dimension and variable ('Time') and a correct unit ('days since 1980-01-01'). Then cdo cat should work

hth
ralf

    (1-1/1)