[python #PXA-368178]: pcolormesh and contours are offset by half a grid cell?
- Subject: [python #PXA-368178]: pcolormesh and contours are offset by half a grid cell?
- Date: Tue, 27 Feb 2018 13:09:36 -0700
Subtracting 0.5 gives you corners on one end, but you still have the problem
that you don't have the "last" corners for the last row and column of data.
You'll need to use something like numpy.hstack, numpy.vstask or
numpy.concatenate to add an additional row/column of lat and lons to have
corners around all of the grid boxes.
> Thanks, Ryan.
> Yes we essentially do âpass the cornersâ of the grid cells by subtracting
> 0.5 (times the 1 degree grid scale in this case). I just hadnât found the
> documentation reason for it.
> I wonder if the dicarded column problem explains our latest longitude
> headacheâ this time in Python instead of IDVâ (screenshot)
> Well, the answer is in the documentation. Thanks for the confidence building
> of pointing us there.
> Case closed (from your prespective).
Ticket ID: PXA-368178
Department: Support Python
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.