Project

General

Profile

conversion of level axis to time axis

Added by Ankur Kumar almost 6 years ago

I have a nc file in which ONLY one variable [created from matlab] is stored whose dimension is 50*70*7[I have attached this file as sample.nc]
First two are the longitudes and latitudes. Third is the time axis.

After using setgrid and settaxis, cdo sifov displays third dimension as levels instead of timeaxis.
What should I do?

What if I store 4 D matrix. First two are the latitudes and longitudes. How to set third as level axis and fourth as time axis? [attached as 4axis.nc]


Replies (1)

RE: conversion of level axis to time axis - Added by Uwe Schulzweida almost 6 years ago

CDO is not a general purpose NetCDF reader. Only NetCDF files which follow the CF convention are supported (http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html). Your NetCDF file doesn't have any attributes. In this case it is very difficult to identify the correct axis type.

    (1-1/1)