NDK (.ndk)
- Import fully supports the NDK format.
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
- 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 following reference pages for full general information:
-
Import import from a file CloudImport import from a cloud object ImportString import from a string ImportByteArray import from a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements:
-
"Data" list of records "EventSeries" table data as an EventSeries "LabeledData" data given as a list of rules "Labels" data record labels "Tabular" table data as a Tabular object "TimeSeries" table data as a TimeSeries - Import uses the "Data" element by default.
Examples
open all close allBasic Examples (4)
Import the file and show the first record:
Import["ExampleData/sample.ndk"]//FirstImport summary of an NDK file:
Import["ExampleData/sample.ndk", "Summary"]Import the data as a Tabular object:
Import["ExampleData/sample.ndk", "Tabular"]Read all magnitude values from the file:
Import[ "ExampleData/sample.ndk", {"LabeledData", "BodyWaveMagnitude"}]Scope (6)
Import[ "ExampleData/sample.ndk", "Elements"]Import[ "ExampleData/sample.ndk", "Labels"]Import all records as a list of rules:
Import[ "ExampleData/sample.ndk", "LabeledData"]Import all records as a Tabular object:
Import[ "ExampleData/sample.ndk", "Tabular"]Import all records as an EventSeries object:
Import[ "ExampleData/sample.ndk", "EventSeries"]Import all records as a TimeSeries object:
Import[ "ExampleData/sample.ndk", "TimeSeries"]Import Options (1)
"TimeColumn" (1)
By default, the time column is selected automatically for "TimeSeries" and "EventSeries" elements:
Import[ "ExampleData/sample.ndk", "TimeSeries"]Use the "TimeColumn" option to specify the time column:
Import[ "ExampleData/sample.ndk", "TimeSeries", "TimeColumn" -> "TimeStamp"]History
Introduced in 2010 (8.0) | Updated in 2025 (14.3) ▪ 2026 (15.0)