New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Compositor extra dims using composite_dims #407
Conversation
@mpu-creare Another option instead of autodetecting the composite dims would just be to only remove extra dimensions if the |
Yes, that was exactly my intent. YOu should be able to autodetect 90% of the time, but for cases like TerrainTiles you can just drop the extra dimenions... or perhaps TerrainTiles is a special case that should just be handled there? |
I don't think TerrainTiles is a necessarily a special case. It is an example of a dataset that does not have a time dimension, of which there may be many. |
But yes - agree that auto-detecting makes a lot of sense! @jmilloy thanks for getting right on it - let me know if you want me to help test / writes tests if you don't have time to work on this |
…osite_dims --> dims. Fixing unit tests.
I'm a little hesitant about the autodetection because of all the circular reference we run into whenever we have a default set from Just needs tests then I'm happy to merge. |
Note The obvious way to remove extra dimensions would be something like this:
But if the compositor dims are
It is also implemented this way in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few comments suggestions, but happy to merge.
I just commented this out for testing.
…mbda functions work out-of-the-box with the dev version of PODPAC.
…ain tiles to enable interpolation. NOTE: I had to lightly round the coordinates of the terrain tiles because coordinate values used to index values in TileCompositor.get_data() were having float problems. The Coordinates.intersect() method was return coordinate values that were *slightly* different than the original coordinates, so the then when we tried to assign values in `output.loc[index] = source_data.values` xarray would fail to find the index. There is no way to realign here because `output` is a superset of `source_data`.
…rk with APIGateway Lambda functions out of the box.
Adds
composite_dims
trait and removes extra dimensions from the evaluation coordinates.composite_dims
are not provided?Autodetection could look like this at its simplest: