Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first post - question about file format

OK, James. I will pass that on to the group in Bilbao (or perhaps that has been done already by this post) recommending that they use the #\#Cif_2.0 tag.

On Thu, Dec 1, 2016 at 6:26 PM, James Hester <jamesrhester@gmail.com> wrote:
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.

all the best,
James.


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:

loop_
  _parent_propagation_vector.id
  _parent_propagation_vector.kxkykz
  k1 [-0.75 0.75 -0.75]

To all accounts, this looks to me like CIF 2.0 format.

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

_______________________________________________
cif-developers mailing list
cif-developers@iucr.org
http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers




--
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

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Council for Science (admitted 1947). Member of CODATA, the ICSU Committee on Data. Member of ICSTI, the International Council for Scientific and Technical Information. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

ICSU Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.