Closed alpha-beta-soup closed 1 year ago
Yes, looks like it happens after the band_as_variable: https://github.com/corteva/rioxarray/blob/33a1be6f1bc3e30cb6d8c1a002d04f439dfb510f/rioxarray/_io.py#L1134
I can work around it by doing a table pivot on the band column; but this does make it more awkward to label bands after their descriptions rather than as integers (which is important for my case).
In contast, the same code with
band_as_variable=False
gives:The latter has correctly respected the WarpedVRT transformation to EPSG:4326, but the former has retained coordinates in my input projection and seems to ignore the VRT CRS. This is a problem because I need to transform to 4326 prior to performing an H3 index on cell data for later system integration.
Environment Information
Linux-5.15.0-41-generic-x86_64-with-glibc2.35
Installed with poetry (pyenv).