schema.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author Alexander Rose <alexander.rose@weirdbyte.de>
  5. */
  6. export interface Dsn6Header {
  7. /** the origin of the map in grid units, along X, Y, Z */
  8. xStart: number
  9. yStart: number
  10. zStart: number
  11. /** the extent (size) of the map, along X, Y, Z, in grid units */
  12. xExtent: number
  13. yExtent: number
  14. zExtent: number
  15. /** number of grid points along the whole unit cell, along X, Y, Z */
  16. xRate: number
  17. yRate: number
  18. zRate: number
  19. /** Unit cell parameters */
  20. xlen: number
  21. ylen: number
  22. zlen: number
  23. alpha: number
  24. beta: number
  25. gamma: number
  26. /**
  27. * Constants that bring the electron density from byte to normal scale.
  28. * They are calculated like this: prod = 255.0/(rhomax-rhomin), plus = -rhomin*prod.
  29. */
  30. divisor: number
  31. summand: number
  32. /** Rms deviation of electron density map (only given in BRIX but not in DSN6) */
  33. sigma: number | undefined
  34. }
  35. /**
  36. * DSN6 http://www.uoxray.uoregon.edu/tnt/manual/node104.html
  37. * BRIX http://svn.cgl.ucsf.edu/svn/chimera/trunk/libs/VolumeData/dsn6/brix-1.html
  38. */
  39. export interface Dsn6File {
  40. header: Dsn6Header
  41. values: Float32Array
  42. }