Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

My mother is a fish. -- William Faulkner


devel / comp.protocols.dicom / Issue with dump2dcm and StudyInstanceUID, incorrect value specification

SubjectAuthor
* Issue with dump2dcm and StudyInstanceUID, incorrect value specificationStephen Douglas Scotti
`* Re: Issue with dump2dcm and StudyInstanceUID, incorrect value specificationStephen Douglas Scotti
 `- Re: Issue with dump2dcm and StudyInstanceUID, incorrect value specificationJörg Riesmeier

1
Issue with dump2dcm and StudyInstanceUID, incorrect value specification

<337deed7-d053-46a6-9bd3-df93eec1deb2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=143&group=comp.protocols.dicom#143

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:ad4:50cd:: with SMTP id e13mr22624589qvq.42.1624318270611;
Mon, 21 Jun 2021 16:31:10 -0700 (PDT)
X-Received: by 2002:a37:4096:: with SMTP id n144mr1208413qka.271.1624318270414;
Mon, 21 Jun 2021 16:31:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 21 Jun 2021 16:31:10 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=66.253.168.52; posting-account=YFi_UAoAAACTPXmZqt1QuJHF4fLwCPfF
NNTP-Posting-Host: 66.253.168.52
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <337deed7-d053-46a6-9bd3-df93eec1deb2n@googlegroups.com>
Subject: Issue with dump2dcm and StudyInstanceUID, incorrect value specification
From: stephen.d.scotti@gmail.com (Stephen Douglas Scotti)
Injection-Date: Mon, 21 Jun 2021 23:31:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Stephen Douglas Scot - Mon, 21 Jun 2021 23:31 UTC

I am converting a .txt file version of a MWL file to a .wl file. It actually was all working until just recently, and not sure what broke the procedure. I am generating the .txt template in a python script and then converting the .txt file to a .wl file using dcmtk. It looks like the issue is related to the packing null byte at the end of the StudyinstanceUID.

Looks like I cannot attach a file, so I'm just pasting the offending tag in:

# Dicom-Data-Set
(0020,000d) UI [1.3.6.1.4.1.56016.0.1.1.44.1624317536] # StudyInstanceUID

vs.

# Dicom-Data-Set
(0020,000d) UI [1.3.6.1.4.1.56016.0.1.1.44.1624317536] # StudyInstanceUID

There should be a null byte at the end of the StudyInstanceUID in the first item.

If I execute:

dcmdump file.txt file.wl with the first set I get the incorrect value specification error, but no error, or just an assuming --write-xfer-little warning with the second. Not sure really what has changed.

Re: Issue with dump2dcm and StudyInstanceUID, incorrect value specification

<c61137c9-b93a-4ed2-8472-5562cf9805f6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=144&group=comp.protocols.dicom#144

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:ac8:7207:: with SMTP id a7mr1043791qtp.32.1624318630390; Mon, 21 Jun 2021 16:37:10 -0700 (PDT)
X-Received: by 2002:ae9:f818:: with SMTP id x24mr1236220qkh.267.1624318630269; Mon, 21 Jun 2021 16:37:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder5.feed.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 21 Jun 2021 16:37:10 -0700 (PDT)
In-Reply-To: <337deed7-d053-46a6-9bd3-df93eec1deb2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=66.253.168.52; posting-account=YFi_UAoAAACTPXmZqt1QuJHF4fLwCPfF
NNTP-Posting-Host: 66.253.168.52
References: <337deed7-d053-46a6-9bd3-df93eec1deb2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c61137c9-b93a-4ed2-8472-5562cf9805f6n@googlegroups.com>
Subject: Re: Issue with dump2dcm and StudyInstanceUID, incorrect value specification
From: stephen.d.scotti@gmail.com (Stephen Douglas Scotti)
Injection-Date: Mon, 21 Jun 2021 23:37:10 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Stephen Douglas Scot - Mon, 21 Jun 2021 23:37 UTC

Actually, looks like maybe dcmtk dump2dcm adds the null byte automatically if it needs to ?

Re: Issue with dump2dcm and StudyInstanceUID, incorrect value specification

<bef0ab4e-aa03-4118-b5fd-186c79326b12n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=145&group=comp.protocols.dicom#145

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:622a:454:: with SMTP id o20mr224584qtx.14.1624387587872;
Tue, 22 Jun 2021 11:46:27 -0700 (PDT)
X-Received: by 2002:a05:622a:34a:: with SMTP id r10mr218585qtw.94.1624387587713;
Tue, 22 Jun 2021 11:46:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!ecngs!feeder2.ecngs.de!178.20.174.213.MISMATCH!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Tue, 22 Jun 2021 11:46:27 -0700 (PDT)
In-Reply-To: <c61137c9-b93a-4ed2-8472-5562cf9805f6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.16.187.154; posting-account=P9OsJAoAAABf_UoLgO-4Y0jtck08GqVx
NNTP-Posting-Host: 85.16.187.154
References: <337deed7-d053-46a6-9bd3-df93eec1deb2n@googlegroups.com> <c61137c9-b93a-4ed2-8472-5562cf9805f6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bef0ab4e-aa03-4118-b5fd-186c79326b12n@googlegroups.com>
Subject: Re: Issue with dump2dcm and StudyInstanceUID, incorrect value specification
From: dicom@jriesmeier.com (Jörg Riesmeier)
Injection-Date: Tue, 22 Jun 2021 18:46:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1677
 by: Jörg Riesmeier - Tue, 22 Jun 2021 18:46 UTC

> Actually, looks like maybe dcmtk dump2dcm adds the null byte automatically if it needs to ?

Correct. dump2dcm adds a padding byte if needed. If you want to see the null byte, you could call dcmdump with option -dc (--disable-correction) and +Qo (--quote-as-octal). The latter is needed because a null byte is usually not displayed (invisible character).

Regards,
Jörg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor