Open deeplycloudy opened 3 years ago
Hi @deeplycloudy, a PR would be great! I'm not sure on where to add that yet, ill see if I can find a place for it
As a heads up, I think I'm going to tuck this in at the end of make_tracks
in tracks.py
. I discovered a few other coordinate and variable name things to clean up based on my understanding of the cf-tree idea. I'll add those to the same PR, since it's all metadata and coordinate cleanup.
When running the tracking example of the TINT theme, the cell mask variable in the tracked dataset is reversed from what I expected.
The input gridded NetCDF data look like this, with the usual
time, z, y, x
ordering, here fornc_grid.reflectivity
.Here's the
tracks
dataset. Note thatcell_mask = (time, x, y)
:Note also that the coordinate data for
x
andy
are not present.I can achieve my preferred behavior with:
I verified the above by naively plotting each dataset with xarray, verifying that zooming with
sharex=sharey=True
gave a view of the same storm cells.@rcjackson @zssherman Would you mind if I put together a PR with this change, and if so where in the tracking code would you suggest I make the change?