Open painter1 opened 8 years ago
There's a caution with this. Namely, closing this gap will make it appear that there is data filling the gap when there may not be any data.
@mcenerney1 , that's a good point. The present code (amwg.py, plot set 7, method plan_computation) expands longitude to the range 0:360 regardless of the original range. Maybe the solution is to see whether a slight expansion (maybe 1 cell width on each side, width is the average from the first 10 and last 10 cells respectively) in longitude would extend the longitude bounds to overlap. Expand longitude only then.
there is data. It's a vcs "features" it draws data from node to node, reading data from (0,360) actually leaves a gap in nodes e.g. for a 5 degree grid first point is 2.5 and last 357.5 hence the white space. now reading the data with an extended point (which cdms2 actually allows us to do) will give us data from 2.5 to 362.5 and no gap will be shown.
Polar plots (plot set 7) still may have a gap for low resolution data, e.g. a 2 degree mesh, and some obs sets may have such a grid. We need to wrap around more in order to make the plots prettier.