[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
all the best,
James.
--
Reply to: [list | sender only]
Re: first post - question about file format
- Subject: Re: first post - question about file format
- From: James Hester <jamesrhester@xxxxxxxxx>
- Date: Fri, 2 Dec 2016 11:26:30 +1100
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;h=mime-version:in-reply-to:references:from:date:message-id:subject:to;bh=xDAqnWqsN7qiXVfX2VSI+2AswsNSJ7ExBcdn93gEP3E=;b=N4X862vtcVkWD3rck3/8Fk9+fnWW/Fv6kn5DPITfaJHzbOhIQ8UwXf7lnvKixzZtzekrBGHNaNN/lWdqtCut2CRtqSzUD+hPtz6gVbwWZKTfFsLaP3ueACmEVjXzTUs3McDSzny9jKKNUG2EuurQarL2orh3pX3bzNmTjMpXCWZyTEV52rblERJxyLwcKBCmArAR6jqkPps9mJUeHIuhT9lYmHSYyfIMb1SU2KO2Nw3NnAR4BWk/x5GmRBNunHiZTmca+2y2Zv6kogLyY/scrkXKZfaFbtBgopo3cBsiibukVoVVVXxcNEWfq89kwCL/AUI3Cu5alOvxbn4QS4xh7g==
- In-Reply-To: <CAF_YUvUmW80jpiP2eyJeGgb7=5G+GEDCVWeCnUFa2WozX1hmmA@mail.gmail.com>
- References: <CAF_YUvUmW80jpiP2eyJeGgb7=5G+GEDCVWeCnUFa2WozX1hmmA@mail.gmail.com>
Hi Bob,
The magCIF dictionary does define a few datanames that use CIF2 vector syntax (datavalues enclosed by square brackets), and the square bracket at the start of a dataname is indeed not allowed in CIF1 format. The first characters of the file that you are reading in should state that it is CIF2.0 syntax ("#\#CIF_2.0") if it uses this square bracket syntax. The exclusion of square bracket at the start of a CIF1 data value
is briefly discussed on p26 of VolG, section 2.2.7.1.4 paragraph 11.
(link http://it.iucr.org/Ga/ch2o2v0001/sec2o2o7/)There is some CIF2 information at cif2.iucr.org, and the recent CIF2 paper is pretty comprehensive (https://doi.org/10.1107/S1600576715021871). Note that the paper following the CIF2 paper describes a robust C library that reads both CIF1 and CIF2 syntaxes, which is perhaps not so useful for Java but might be useful to others reading this list.
I'm keen to hear any feedback on what resources for CIF2 are needed, so feel free to comment here or privately.
On 2 December 2016 at 10:32, Robert Hanson <hansonr@stolaf.edu> wrote:
When upgrading Jmol to handle the new magCIF format, I spotted something I was not expecting - a syntax that broke Jmol's CIF reader:To all accounts, this looks to me like CIF 2.0 format.
loop_
_parent_propagation_vector.id
_parent_propagation_vector.kxkykz
k1 [-0.75 0.75 -0.75]
I'm pretty sure I saw in the CIF 1.0 specs that "[" at the beginning of an unquoted string is reserved -- I suppose just for this -- but I can't seem to find where this would be in the specs.Can someone explain?Bob Hanson
--Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
_______________________________________________
cif-developers mailing list
cif-developers@iucr.org
http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif- developers
--
T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
F +61 (02) 9717 3145
M +61 (04) 0249 4148
_______________________________________________ cif-developers mailing list cif-developers@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- Re: first post - question about file format (Robert Hanson)
- References:
- first post - question about file format (Robert Hanson)
- Prev by Date: first post - question about file format
- Next by Date: Re: first post - question about file format
- Prev by thread: first post - question about file format
- Next by thread: Re: first post - question about file format
- Index(es):