Project

General

Profile

cdo sellonlatbox (Abort): Unsupported grid type!

Added by Daniela Faggiani Dias over 7 years ago

Hello everyone,

I am trying to select a region using the command sellonlatbox, for the HadISST data (http://www.metoffice.gov.uk/hadobs/hadisst/data/download.html). However, when I give the command, there is the following error message

cdo sellonlatbox,-90,-25,22,66 HadISST_sst.nc output.nc

cdo sellonlatbox: Unsupported grid type: generic
cdo sellonlatbox (Abort): Unsupported grid type!

Analyzing the grid by "cdo griddes HadISST_sst.nc", I verify that there are two grids in my file:

  1. gridID 1 #
    gridtype = generic
    gridsize = 2
    xsize = 2 #
  2. gridID 2 #
    gridtype = lonlat
    gridsize = 64800
    xname = lon
    xlongname = longitude
    xunits = degrees_east
    yname = lat
    ylongname = latitude
    yunits = degrees_north
    xsize = 360
    ysize = 180
    xfirst = -179.5
    xinc = 1
    yfirst = 89.5
    yinc = -1

As you can see, the first one is the generic that the command dont recognize and the grid 2 is the regular lonlat, that the command would recognize and cut the data for my region. I don't know for what is this first grid...I tried to use the command setgrid and nothing changed (I tried to invert the order, putting grid 2 as grid 1 and I also tried to remove the grid 1, but no changes).
Any idea of what I could do to be able to select the region I want with this kind of grid?

Thanks! :)