Page 1 of 1

Uploading data from source cube to target cube with the source cube bigger in dimensionality

Posted: Sun Jan 15, 2023 6:23 pm
by i.iescone
Hello everyone!

I am a starter in TI processes and I am now stuck :(
The goal is to copy data in two unique cubes that differ in two dimensions.
Aftern running the process, the message that occurs is: 'Wrong Number of Dimension Elements'.

What I think might be the problem is this difference in dimensionality, however after researching, I do not have the solution yet.
Is there anything which allows to skip the read of certain dimensions in the data source? Or in general what is the logic to follow in this cases?

However the problem can be something else! I'd be glad to get in touch with more experienced people :)

Re: Uploading data from source cube to target cube with the source cube bigger in dimensionality

Posted: Mon Jan 16, 2023 1:24 am
by Wim Gielis
Please post your code.

In the Data tab of the process, consider using the CellIncrementN function. Like that, you can accumulate data in the target cube with its 2 dimensions less.

Re: Uploading data from source cube to target cube with the source cube bigger in dimensionality

Posted: Mon Jan 16, 2023 6:32 am
by Elessar
If you are using the Architect TI process constructor and not writing code from scratch, you should select "Element" role only for the variables matching your target cube's elements + Data. The other variables (which are in source cube and are not in target cube) should be "Other". Also make sure you've selected "Accumulate values".

Re: Uploading data from source cube to target cube with the source cube bigger in dimensionality

Posted: Mon Jan 16, 2023 1:38 pm
by lotsaram
There is a bedrock process which can do this task without writing any code. }bedrock.cube.data.copy.intercube