Hi Angel,
First I must ask why you want to use the grid of dataset 1 rather than
that of dataset 2. Dataset 2 seems to have reasonable extents that
put 0,0,0 within the dataset (though near the most inferior part).
Dataset 1 has 0,0,0 at a corner, meaning it was probably made without
any proper location in space. So the extents of dataset 1 are basically
useless.
---
Whichever way you go, 3dresample is not what you want here. Because
3dresample assumes the data coordinates are both valid, and resamples
the data onto a new grid.
That is not what you want. You want to treat one of your datasets as
having invalid coordinates (origin, really), and adjust them.
So try '3drefit -duporigin'. e.g.
3drefit -duporigin good_grid+orig bad_grid+orig
Again, I suggest using dataset 2 as the good_grid dataset, but that
is up to you.
- rick