scientific 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #------------------------------------------------------------------------------
  2. # $File: scientific,v 1.8 2014/01/06 17:46:23 rrt Exp $
  3. # scientific: file(1) magic for scientific formats
  4. #
  5. # From: Joe Krahn <krahn@niehs.nih.gov>
  6. ########################################################
  7. # CCP4 data and plot files:
  8. 0 string MTZ\040 MTZ reflection file
  9. 92 string PLOT%%84 Plot84 plotting file
  10. >52 byte 1 , Little-endian
  11. >55 byte 1 , Big-endian
  12. ########################################################
  13. # Electron density MAP/MASK formats
  14. 0 string EZD_MAP NEWEZD Electron Density Map
  15. 109 string MAP\040( Old EZD Electron Density Map
  16. 0 string/c :-)\040Origin BRIX Electron Density Map
  17. >170 string >0 , Sigma:%.12s
  18. #>4 string >0 %.178s
  19. #>4 addr x %.178s
  20. 7 string 18\040!NTITLE XPLOR ASCII Electron Density Map
  21. 9 string \040!NTITLE\012\040REMARK CNS ASCII electron density map
  22. 208 string MAP\040 CCP4 Electron Density Map
  23. # Assumes same stamp for float and double (normal case)
  24. >212 byte 17 \b, Big-endian
  25. >212 byte 34 \b, VAX format
  26. >212 byte 68 \b, Little-endian
  27. >212 byte 85 \b, Convex native
  28. ############################################################
  29. # X-Ray Area Detector images
  30. 0 string R-AXIS4\ \ \ R-Axis Area Detector Image:
  31. >796 lelong <20 Little-endian, IP #%d,
  32. >>768 lelong >0 Size=%dx
  33. >>772 lelong >0 \b%d
  34. >796 belong <20 Big-endian, IP #%d,
  35. >>768 belong >0 Size=%dx
  36. >>772 belong >0 \b%d
  37. 0 string RAXIS\ \ \ \ \ R-Axis Area Detector Image, Win32:
  38. >796 lelong <20 Little-endian, IP #%d,
  39. >>768 lelong >0 Size=%dx
  40. >>772 lelong >0 \b%d
  41. >796 belong <20 Big-endian, IP #%d,
  42. >>768 belong >0 Size=%dx
  43. >>772 belong >0 \b%d
  44. 1028 string MMX\000\000\000\000\000\000\000\000\000\000\000\000\000 MAR Area Detector Image,
  45. >1072 ulong >1 Compressed(%d),
  46. >1100 ulong >1 %d headers,
  47. >1104 ulong >0 %d x
  48. >1108 ulong >0 %d,
  49. >1120 ulong >0 %d bits/pixel
  50. # Type: GEDCOM genealogical (family history) data
  51. # From: Giuseppe Bilotta
  52. 0 search/1/c 0\ HEAD GEDCOM genealogy text
  53. >&0 search 1\ GEDC
  54. >>&0 search 2\ VERS version
  55. >>>&1 string >\0 %s
  56. # From: Phil Endecott <phil05@chezphil.org>
  57. 0 string \000\060\000\040\000\110\000\105\000\101\000\104 GEDCOM data
  58. 0 string \060\000\040\000\110\000\105\000\101\000\104\000 GEDCOM data
  59. 0 string \376\377\000\060\000\040\000\110\000\105\000\101\000\104 GEDCOM data
  60. 0 string \377\376\060\000\040\000\110\000\105\000\101\000\104\000 GEDCOM data
  61. # PDB: Protein Data Bank files
  62. # Adam Buchbinder <adam.buchbinder@gmail.com>
  63. #
  64. # http://www.wwpdb.org/documentation/format32/sect2.html
  65. # http://www.ch.ic.ac.uk/chemime/
  66. #
  67. # The PDB file format is fixed-field, 80 columns. From the spec:
  68. #
  69. # COLS DATA
  70. # 1 - 6 "HEADER"
  71. # 11 - 50 String(40)
  72. # 51 - 59 Date
  73. # 63 - 66 IDcode
  74. #
  75. # Thus, positions 7-10, 60-62 and 67-80 are spaces. The Date must be in the
  76. # format DD-MMM-YY, e.g., 01-JAN-70, and the IDcode consists of numbers and
  77. # uppercase letters. However, examples have been seen without the date string,
  78. # e.g., the example on the chemime site.
  79. 0 string HEADER\ \ \ \
  80. >&0 regex/1l \^.{40}
  81. >>&0 regex/1l [0-9]{2}-[A-Z]{3}-[0-9]{2}\ {3}
  82. >>>&0 regex/1ls [A-Z0-9]{4}.{14}$
  83. >>>>&0 regex/1l [A-Z0-9]{4} Protein Data Bank data, ID Code %s
  84. !:mime chemical/x-pdb
  85. >>>>0 regex/1l [0-9]{2}-[A-Z]{3}-[0-9]{2} \b, %s
  86. # Type: GDSII Stream file
  87. 0 belong 0x00060002 GDSII Stream file
  88. >4 byte 0x00
  89. >>5 byte x version %d.0
  90. >4 byte >0x00 version %d
  91. >>5 byte x \b.%d