NDK (.ndk)

NDK seismologic file format.
Commonly used for storage and exchange of earthquake data.
Stores geographical information and wave measurements for individual seismological events.
ASCII format.
  • Import fully supports the NDK format.

Import and ExportImport and Export

  • Import["file.ndk"] imports an NDK file, returning all data as an array.
  • Import["file.ndk", elem] imports the specified element from a NDK file.
  • Import["file.ndk", {{elem1, elem2, ...}}] imports multiple elements.
  • The import format can be specified with Import["file", "NDK"] or Import["file", {"NDK", elem, ...}].
  • See the reference pages for full general information on Import.
  • ImportString supports the NDK format.


  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties and settings
  • Data representation elements:
  • "LabeledData"data given as a list of rules
    "Labels"data record labels
    "Data"list of records
  • Import uses the element by default.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Import the file and show the first record:

Click for copyable input

Import all records as a list of rules:

Click for copyable input

Read all magnitude values from the file:

Click for copyable input
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »