Project

General

Profile

How can I do cdo remapbil

Added by Sara nz107 over 4 years ago

Hi dears
Can anyone help me?

I am trying to use this command to interpolate my netcdf data into my wrfinput_d01 . I have used this:

cdo remapbil,NEW_GRID_DEF old-file.nc new-file.nc

but I receive this massage:

[****Warning (cdf_scan_var_attr) : Time must be the first dimension!
Unsupported array structure, skipped variable wetland_CH4_emissions!
Warning (cdf_set_var) : Inconsistent variable definition for wetland_CH4_emissions!
cdo remapbil (Abort): No remappable grid found!***]1*

thank you very much in deed


Replies (1)

RE: How can I do cdo remapbil - Added by Ralf Mueller over 4 years ago

hi Sara!

the usage of model (dimension + variable) in your file is not CF-conform. but we can trick around this with

  1. reorder the dimensions of variable wetland_CH4_emissions so that Time is the first one
    ncpdq -v wetland_CH4_emissions -a time,model oldfile.nc newfile.nc
  2. rename model to level pretending this would be something vertical:
    ncrename -v model,level -d model,level newfile.nc

After these steps the remapping works:

cdo remapbil,NEW_GRID_DEF newfile.nc remapped_newfile.nc 

    (1-1/1)