Skip to content

Commit

Permalink
#2842, switch from degrees east to west right when the longitudes are…
Browse files Browse the repository at this point in the history
… read
  • Loading branch information
Howard Soh committed Apr 24, 2024
1 parent f620206 commit f25dd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcode/vx_data2d_ugrid/ugrid_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ void UGridFile::read_netcdf_grid()
}

// Convert longitude from degrees east to west
for (int idx=0; idx<face_count; idx++) _lon[idx] = -1.0*rescale_deg(_lon[idx]);
for (int idx=0; idx<face_count; idx++) _lon[idx] = -1.0*rescale_deg(_lon[idx], -180, 180);

grid_data.set_points(face_count, _lon, _lat);
grid_data.max_distance_km = max_distance_km;
Expand Down

0 comments on commit f25dd19

Please sign in to comment.