[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #PXA-368178]: pcolormesh and contours are offset by half a grid cell?



Brian,

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.

Ryan

> 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 Details
===================
Ticket ID: PXA-368178
Department: Support Python
Priority: Low
Status: Closed
===================
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.