Commit 7ed22484 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

remap_define_grid: abort if grid cell center coordinates missing

parent f56bfde5
......@@ -720,6 +720,8 @@ void remap_define_grid(int map_type, int gridID, remapgrid_t *grid)
if ( remap_write_remap == FALSE && grid->remap_grid_type == REMAP_GRID_TYPE_REG2D ) return;
if ( !(gridInqXvals(gridID, NULL) && gridInqYvals(gridID, NULL)) )
cdoAbort("Grid cell center coordinates missing!");
gridInqXvals(gridID, grid->cell_center_lon);
gridInqYvals(gridID, grid->cell_center_lat);
......@@ -730,7 +732,7 @@ void remap_define_grid(int map_type, int gridID, remapgrid_t *grid)
if ( grid->lneed_cell_corners )
{
if ( gridInqYbounds(gridID, NULL) && gridInqXbounds(gridID, NULL) )
if ( gridInqXbounds(gridID, NULL) && gridInqYbounds(gridID, NULL) )
{
gridInqXbounds(gridID, grid->cell_corner_lon);
gridInqYbounds(gridID, grid->cell_corner_lat);
......@@ -742,7 +744,7 @@ void remap_define_grid(int map_type, int gridID, remapgrid_t *grid)
}
else
{
cdoAbort("Grid corner missing!");
cdoAbort("Grid cell corner coordinates missing!");
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment