Skip to content

Commit

Permalink
Fix longitude-latitude grid in cmultiscale.
Browse files Browse the repository at this point in the history
  • Loading branch information
lars2015 committed Sep 16, 2024
1 parent e768c82 commit 5491396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void compress_cms(
for (size_t ix = 0; ix < nx; ix++)
lon[ix] = 360. * (double) ix / ((double) nx - 1.);
for (size_t iy = 0; iy < ny; iy++)
lat[iy] = 180. * (double) iy / ((double) ny - 1.) - 90;
lat[iy] = -(180. * (double) iy / ((double) ny - 1.) - 90);

/* Set multiscale parameters... */
const char domain[] = "[0.0, 360.0]x[-90.0, 90.0]";
Expand Down

0 comments on commit 5491396

Please sign in to comment.