# "dcminfo -tag" broken?

**URL:** <https://community.mrtrix.org/t/dcminfo-tag-broken/1986>\
**Category:** Development\
**Created:** [October 19, 2018, 8:04am UTC](https://community.mrtrix.org/t/dcminfo-tag-broken/1986 "2018-10-19T08:04:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![treanus](https://community.mrtrix.org/user_avatar/community.mrtrix.org/treanus/32/3146_2.png) [@treanus](https://community.mrtrix.org/u/treanus)\
**Post date:** [October 19, 2018, 8:04am UTC](https://community.mrtrix.org/t/dcminfo-tag-broken/1986/1 "2018-10-19T08:04:53Z")

</div>

Is this correct behaviour of dcminfo -tag ?

```auto
dcminfo IM-0007-0208.dcm -all | grep WaterFatShift
[DCM] 2001 1022 FL 4 5644 WaterFatShift [1.00077]
dcminfo IM-0007-0208.dcm -tag 2001 1022
A??

```

but

```auto
dcminfo IM-0007-0208.dcm -all | grep Leuven
[DCM] 0008 0080 LO 8 778 InstitutionName [UZLeuven]
dcminfo IM-0007-0208.dcm -tag 0008 0080
UZLeuven

```

Seems as if dcminfo -all gets floats correct, but dcminfo -tag does not.  
Is there a bug in dcminfo -tag for FL?

Thx, for any advice.

Stefan

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [October 19, 2018, 3:14pm UTC](https://community.mrtrix.org/t/dcminfo-tag-broken/1986/2 "2018-10-19T15:14:46Z")

</div>

Yes, it’s fair to say that option is not working as it should… I’ll fix that ASAP.

---

<div class="post-metadata">

**Author:** ![treanus](https://community.mrtrix.org/user_avatar/community.mrtrix.org/treanus/32/3146_2.png) [@treanus](https://community.mrtrix.org/u/treanus)\
**Post date:** [October 19, 2018, 3:50pm UTC](https://community.mrtrix.org/t/dcminfo-tag-broken/1986/3 "2018-10-19T15:50:15Z")

</div>

Hi Donald,

A temporary workaround in bash:

`local waterfatshift=$(dcminfo "$dcm_file" -all | grep WaterFatShift | awk '{print $(NF-1)}')`

I use the wfs, fieldstrength, epifactor, etc… to calculate effective echo spacing and total readout time to be used later in the topup step of dwipreproc. Some vendors don’t provide ees/trt and that can be a hassle (in a multicenter study with _many_ different dicom formats). Any function that does this in mrtrix3 for _all major_ vendors? 🕶

Best regards,  
Stefan.

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [October 21, 2018, 8:21am UTC](https://community.mrtrix.org/t/dcminfo-tag-broken/1986/4 "2018-10-21T08:21:07Z")

</div>

OK, fix for the original issue is now available on `master`. You can upgrade with:

```auto
git pull
./build

```

Let me know if that works for you.

> [@treanus](#):
>
> I use the wfs, fieldstrength, epifactor, etc… to calculate effective echo spacing and total readout time to be used later in the topup step of dwipreproc. Some vendors don’t provide ees/trt and that can be a hassle (in a multicenter study with _many_ different dicom formats). Any function that does this in mrtrix3 for _all major_ vendors? 🕶

Not yet… But if you have a formula that works across vendors, we can certainly think about implementing it! 😁

---

<div class="post-metadata">

**Author:** ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)\
**Post date:** [November 25, 2018, 4:25am UTC](https://community.mrtrix.org/t/dcminfo-tag-broken/1986/5 "2018-11-25T04:25:56Z")

</div>

> … if you have a formula that works across vendors, we can certainly think about implementing it!

Have had a lot of requests but no solutions. @treanus If you can provide details / references on what you’re using, I’m sure a lot of other users would be very grateful.
