AFNI Message Board

History of AFNI updates  

|
March 19, 2021 03:14PM
Pawel-

Just to note some 3dcalc-isms that might help in your merging (though I reiterate that I am not recommending going down this route):

This would merge 2 dsets, DSET1 and DSET2, giving DSET1 "preference in the merging---that is, take DSET1's values, and in places where DSET1 is zero, fill in with DSET2's values:
3dcalc \
    -a DSET1 \
    -b DSET2 \
    -expr 'a+ not(a)*b' \
    -prefix DSET_MERGED

This would do the same thing, offsetting DSET2's values by some constant like 500, with that chosen under the assumption that the max of DSET1 is less than 500 (which could be found with, say, "3dinfo"):
3dcalc \
    -a DSET1 \
    -b DSET2 \
    -expr 'a+ not(a)*(500+b)' \
    -prefix DSET_MERGED

--pt
Subject Author Posted

@Atlasize labels messed up

Pawel March 18, 2021 06:59PM

Re: @Atlasize labels messed up

Pawel March 19, 2021 12:17PM

Re: @Atlasize labels messed up

ptaylor March 19, 2021 12:50PM

Re: @Atlasize labels messed up

Pawel March 19, 2021 02:09PM

Re: @Atlasize labels messed up

ptaylor March 19, 2021 03:14PM

Re: @Atlasize labels messed up

Pawel March 19, 2021 03:20PM

Re: @Atlasize labels messed up

Daniel Glen March 22, 2021 12:36PM

Re: @Atlasize labels messed up

Pawel March 23, 2021 11:41AM

Re: @Atlasize labels messed up

Daniel Glen April 05, 2021 06:39PM

Re: @Atlasize labels messed up

ptaylor April 06, 2021 09:21AM

Re: @Atlasize labels messed up

Pawel April 06, 2021 01:00PM



Sorry, only registered users may post in this forum.

Click here to login