Skip to content
Snippets Groups Projects
Commit 45fbe2f1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

setgrid: error handling for parameter lonlat

parent 6aee6027
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ and all timesteps are sorted by date and time.
@BeginEnvironment
@Item = SKIP_SAME_TIME
If set to 1, skips all timesteps with a double entry of the same timestamp.
If set to 1, skips all consecutive timesteps with a double entry of the same timestamp.
@EndEnvironment
......
......@@ -283,7 +283,17 @@ void *Setgrid(void *argument)
else if ( gridtype == GRID_LONLAT && gridInqType(gridID1) == GRID_CURVILINEAR )
{
gridID2 = gridCurvilinearToRegular(gridID1);
if ( gridID2 == -1 ) cdoAbort("No regular grid found!");
if ( gridID2 == -1 ) cdoWarning("Conversion of curvilinear grid to regular grid failed!");
}
else if ( gridtype == GRID_LONLAT && gridInqType(gridID1) == GRID_UNSTRUCTURED )
{
gridID2 = -1;
if ( gridID2 == -1 ) cdoWarning("Conversion of unstructured grid to regular grid failed!");
}
else if ( gridtype == GRID_LONLAT && gridInqType(gridID1) == GRID_GENERIC )
{
gridID2 = -1;
if ( gridID2 == -1 ) cdoWarning("Conversion of generic grid to regular grid failed!");
}
else if ( gridtype == GRID_LONLAT && gridInqType(gridID1) == GRID_LONLAT )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment