NDK (.ndk)

Background & Context

    • 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["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.

Import Elements

  • 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 "Data" element by default.


Basic Examples  (3)

Import the file and show the first record:

Import all records as a list of rules:

Read all magnitude values from the file: