Skip to content

Commit

Permalink
Per #2115, tweak order of operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Mar 31, 2022
1 parent b25f8b8 commit 7a25606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions met/src/libcode/vx_data2d_nccf/nccf_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2432,10 +2432,10 @@ void NcCfFile::get_grid_mapping_rotated_latitude_longitude(const NcVar *grid_map

// Derive south pole location from the north pole:
// - Reverse the sign of the latitude
// - Switch longitude from degrees east to west and add 180
// - Add 180 to the longitude and switch from degrees east to west
data.true_lat_south_pole = -1.0 * get_att_value_double(grid_np_lat_att);
double np_lon = rescale_lon(get_att_value_double(grid_np_lon_att));
data.true_lon_south_pole = rescale_lon((-1.0 * np_lon) + 180.0);
data.true_lon_south_pole = rescale_lon(-1.0 * (np_lon + 180.0));

// Copied from the LatLon data structure
data.rot_lat_ll = ll_data.lat_ll;
Expand Down

0 comments on commit 7a25606

Please sign in to comment.