Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
7ed22484
Commit
7ed22484
authored
Aug 12, 2015
by
Uwe Schulzweida
Browse files
remap_define_grid: abort if grid cell center coordinates missing
parent
f56bfde5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/remaplib.c
View file @
7ed22484
...
...
@@ -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
(
gridInq
Y
bounds
(
gridID
,
NULL
)
&&
gridInq
X
bounds
(
gridID
,
NULL
)
)
if
(
gridInq
X
bounds
(
gridID
,
NULL
)
&&
gridInq
Y
bounds
(
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 c
orner
missing!"
);
cdoAbort
(
"Grid c
ell corner coordinates
missing!"
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment