jhardenberg / smmregrid

A compact regridder using sparse matrix multiplication
Apache License 2.0
8 stars 0 forks source link

Configurable dimensions for regridding #3

Closed oloapinivad closed 1 year ago

oloapinivad commented 1 year ago

So far, the regrid operation works on a series of dimension which are kept fo the analysis.

    nd = sum([(d not in ['i', 'j', 'x', 'y', 'lon', 'lat', 'longitude', 'latitude',
                         'cell', 'cells', 'ncells', 'values', 'value']) for d in source_data.dims])

    kept_shape = list(source_data.shape[0:nd])
    kept_dims = list(source_data.dims[0:nd])

If dimensions are not met, this leads to weird results. We should add this as a configurable option and also produce a warning if this does not happen

oloapinivad commented 1 year ago

An error is introduced n #4

oloapinivad commented 1 year ago

Closed in #4