You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attribute false_northing (of grid projection/mapping variable) and the standard name projection_y_coordinate (of a coordinate) are checked. The user output mentions false_easting and projection_y_coordinate. It is a copy-&-paste error from the previous check a few lines above.
Instead of
} else if (strcmp(name, "false_northing") == 0) {
j = -1;
for (i = 0; i < cmor_grids[grid_id].ndims; i++) {
cmor_get_axis_attribute(cmor_grids[grid_id].axes_ids[i],
"standard_name", 'c', &ctmp[0]);
if (strcmp(ctmp, "projection_y_coordinate") == 0)
j = i;
}
if (j == -1) {
snprintf(ctmp, CMOR_MAX_STRING,
"grid mapping attribute: 'false easting' must be set in conjunction with a 'projection_x_coordinate' axis, I could not find such an axis on your grid, we will not set this attribute");
cmor_handle_error(ctmp, CMOR_NORMAL);
cmor_pop_traceback();
return (1);
}
cmor_get_axis_attribute(cmor_grids[grid_id].axes_ids[j], "units",
'c', &ctmp[0]);
cmor_convert_value(units, ctmp, &tmp);
}
it should be
} else if (strcmp(name, "false_northing") == 0) {
j = -1;
for (i = 0; i < cmor_grids[grid_id].ndims; i++) {
cmor_get_axis_attribute(cmor_grids[grid_id].axes_ids[i],
"standard_name", 'c', &ctmp[0]);
if (strcmp(ctmp, "projection_y_coordinate") == 0)
j = i;
}
if (j == -1) {
snprintf(ctmp, CMOR_MAX_STRING,
"grid mapping attribute: 'false northing' must be set in conjunction with a 'projection_y_coordinate' axis, I could not find such an axis on your grid, we will not set this attribute");
cmor_handle_error(ctmp, CMOR_NORMAL);
cmor_pop_traceback();
return (1);
}
cmor_get_axis_attribute(cmor_grids[grid_id].axes_ids[j], "units",
'c', &ctmp[0]);
cmor_convert_value(units, ctmp, &tmp);
}
A pull request is on the way.
The text was updated successfully, but these errors were encountered:
Starting in line 215 in file cmor_grids.c
The attribute
false_northing
(of grid projection/mapping variable) and the standard nameprojection_y_coordinate
(of a coordinate) are checked. The user output mentionsfalse_easting
andprojection_y_coordinate
. It is a copy-&-paste error from the previous check a few lines above.Instead of
it should be
A pull request is on the way.
The text was updated successfully, but these errors were encountered: