You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does it make sense / logical to let different dggs(s) implement their decoding method? Or do you have other suggestions on my case?
For my example, there are two possible cases on the input xarray dataset; one is already converted, and the drop_index method works fine; it just re-instantiates the DGGSIndex.
The second one is in 2D ( with x and y coordinates), which I must flatten for conversion. Currently, I am using the stack method as the conversion entry point, like the following :
We'll probably have to discuss this in one of the meetings, but xdggs is very much centered on the assumption that cell ids are 1D (especially since the multi-index coordinate is at the beginning of a deprecation cycle, in the future pandas.MultiIndex will be just another index). As such, I'm somewhat hesitant to add support for something like that.
Sure, maybe during the meeting next Monday. Probably, I misunderstand the purpose of the decode function? The purpose of it is aim to re-instantiate the cell_ids column with xdggs , instead of conversion?
I will provide a simple use case for the discussion :
The user has a xarray with x,y coordinates as shown below :
To convert the xarray coordinate from x,y to xdggs, the user has to perform raster_data.stack(cell_ids={x,y}) then xdggs.decode(raster_data).
But the problem is that after the stack, the cell_ids column will be convert to pandas.multiIndex as follow :
Heya @keewis ,
Does it make sense / logical to let different dggs(s) implement their decoding method? Or do you have other suggestions on my case?
For my example, there are two possible cases on the input xarray dataset; one is already converted, and the drop_index method works fine; it just re-instantiates the DGGSIndex.
The second one is in 2D ( with x and y coordinates), which I must flatten for conversion. Currently, I am using the stack method as the conversion entry point, like the following :
Thx ~
Happy Holiday ~
Tik
The text was updated successfully, but these errors were encountered: