K-NET Binary Format


The K-NET Binary format is defined as part of the Kyoshin-WIN32 format defined by National Research Institute for Earth Science and Disaster Resilience (NIED) . The Kyoshin-WIN32 format is an extension of the WIN32 format to facilitate the distribution of strong-motion data.

The Kyoshin-WIN32 format defines a data structure called an information block that can contain information other than seismic waveform data. By deleting this information block, theKyoshin-WIN32 format can be converted to the WIN32 format.

* The WIN32 format is a data format defined by NIED based on the WIN format established by the Earthquake Research Institute, University of Tokyo.

WIN32 format image
WIN32 header (4 bytes)
Seconds block (variable length)
The following is a repeated sequence of second blocks.
Kyoshin-WIN32 format image
Kyoshin-WIN32 header (4 bytes)
Seconds block or information block (variable length)

The following is a repeated sequence of second blocks or information blocks.

* Second block is common to both Kyoshin-WIN32 and WIN32 formats.

For K-NET
For KiK-net
Item No. Item Name Size Data Attribute Item Description
Kyoshin-WIN32 Header Block
1 Format ID 8bit - 0x0A
2 Format sub ID 8bit - 0x02
3 Reserved 8bit - 0x00
4 Reserved 8bit - 0x00
Information block
Information block header
5 Identification ID 8bit - 0x0C
6 Header type 8bit - Reserved: 0x00
7 Reserved 8bit - 0x00
8 Reserved 8bit - 0x00
9 Organization ID 8bit - National Research Institute for Earth Science and Resilience: 0x01
10 Observation network ID 8bit - K-NET: 0x10
11 Seismograph number 16bit unsigned integer Seismograph identification number
12 Data block length 32bit unsigned integer Total size of the following information data blocks
(Unit: byte)
Information data block (1) Station information (3 component surface stations)
13 Information type 16bit - Staion information (3-component surface stations) : 0xE000
14 Information data size 16bit unsigned integer Size of the following information data (Unit: byte)
Station information
15 Latitude 32bit - Station latitude *1
16 Longitude 32bit - Station longitude *2
17 Elevation 32bit - Station elevation *3
18 Station code 96bit - Station code *4
19 Data start time 64bit BCD Data start time: year, month, date, hour, minute, second and tenth of a second
YYYYMMDDhhmmssxx format
20 Data time 32bit unsigned integer Data time length (Unit: 0.1 second)
21 Last calibration time 64bit BCD Last calibration time: year, month, date, hour, minute, second, and tenth of a second
YYYYMMDDhhmmssxx format
22 Calibration method 8bit - Method of time calibration method
Unset: 0x00, GPS: 0x01, Radio: 0x02, NTP: 0x03
23 Geodetic system 8bit - Geodetic system of station latitude and longitude
Unset: 0x00, Japan geodetic system: 0x01, World geodetic system: 0x02
24 Seismograph model code 16bit - Seismograph model code *5
25 Sampling rate 16bit unsigned integer Sampling rate
For 100Hz: 100 For 200Hz: 200
26 Number of components 8bit unsigned integer Number of components For 3 components: 3
27 Relocation flag 8bit unsigned integer Value of relocation count plus 1 Value is 0 if not set
Information on North-South component (NS)
28 Organization ID 8bit - National Research Institute for Earth Science and Disaster Resilience: 0x01
29 Observation network ID 8bit - K-NET: 0x10
30 Channel number 16bit - Channel identification number *6
31 Scale factor numerator 16bit signed integer Information on scale factor *7
32 Gain 8bit unsigned integer Information on scale factor *7
33 Units 8bit - Information on scale factor *7
34 Scale factor denominator 32bit signed integer Information on scale factor *7
35 Offset 32bit signed integer Information on scale factor *7
36 Measurement range 32bit signed integer Information on scale factor *7
Information on East-West component (EW)
37 Organization ID 8bit - Same as North-South component
38 Observation network ID 8bit -
39 Channel number 16bit -
40 Scale factor numerator 16bit signed integer
41 Gain 8bit unsigned integer
42 Units 8bit -
43 Scale factor denominator 32bit signed integer
44 Offset 32bit signed integer
45 Measuring range 32bit signed integer
Information on Up-Down components (UD)
46 Organization ID 8bit - Same as North-South component
47 Observation network ID 8bit -
48 Channel number 16bit -
49 Scale factor numerator 16bit signed integer
50 Gain 8bit unsigned integer
51 Units 8bit -
52 Scale factor denominator 32bit signed integer
53 Offset 32bit signed integer
54 Measuring range 32bit signed integer
Information Data Block (2) Source Information
55 Information type 16bit - Source information: 0xE020
56 Information data size 16bit unsigned integer Size of following information data (Unit: byte)
Information on the epicenter
57 Earthquake occurrence time 64bit BCD Earthquake occurrence time: year, month, date, minute, second and tenth of a second
YYYYMMDDhhmmssxx format
58 Latitude 32bit - Hypocenter latitude *8
59 Longitude 32bit - Hypocenter longitude *9
60 Depth 32bit - Hypocenter depth *10
61 Magnitude 8bit - Earthquake magnitude *11
62 Geodetic system 8bit - Geodetic system of hypocenter latitude and longitude
Unset: 0x00, Japan geodetic system: 0x01, World geodetic system: 0x02
63 Hypocenter type 8bit - Hypocenter type
Unset: 0x00, Earthquake information published by JMA just after a large earthquake: 0x01, JMA Monthly Report on Earthquakes and Volcanoes in Japan: 0x02
64 Reserved 8bit - Reserved: 0x00
Second block
Second block header
65 Sampling start time 64bit BCD Time of the first data in this second block: year, month, date, minute, second
and tenths of a second
YYYYMMDDhhmmssxx format
66 Frame time length 32bit unsigned integer Time duration covered by this second block (Unit: 0.1 second)
67 Data block length 32bit unsigned integer Total size of the following channel data blocks
(Unit: byte)
Channel data block 1st channel (NS)
68 Organization ID 8bit - National Research Institute for Earth Science and Disaster Resilience: 0x01
69 Observation network ID 8bit - K-NET: 0x10
70 Channel number 16bit - Channel identification number
71 Compressed data variable length - Variable length compressed data compliant with WIN format *12
Channel data block 2nd channel (EW)
72 Organization ID 8bit - Same as 1st channel
73 Observation network ID 8bit -
74 Channel number 16bit -
75 Compressed data variable length -
Channel data block 3rd channel (UD)
76 Organization ID 8bit - Same as 1st channel
77 Observation network ID 8bit -
78 Channel number 16bit -
79 Compressed data variable length -
The following i a repeated sequence of second blocks.
Item No. Item Name Size Data Attribute Item Description
Kyoshin-WIN32 Header Block
1 Format ID 8bit - 0x0A
2 Format sub ID 8bit - 0x02
3 Reserved 8bit - 0x00
4 Reserved 8bit - 0x00
Information block
Information block header
5 Identification ID 8bit - 0x0C
6 Header type 8bit - Reserved: 0x00
7 Reserved 8bit - 0x00
8 Reserved 8bit - 0x00
9 Organization ID 8bit - National Research Institute for Earth Science and Disaster Resilience: 0x01
10 Observation network ID 8bit - KiK-net:0x11
11 Seismograph number 16bit unsigned integer Seismograph identification number
12 Data block length 32bit unsigned integer Total size of the following information data blocks
(Unit: byte)
Information data block (1) Station information (6-component vertical array stations)
13 Information type 16bit - Station information (6-component vertical array stations) : 0xE001
14 Information data size 16bit unsigned integer Size of the following information data (Unit: byte)
Station Information
15 Latitude 32bit - Station latitude    *1
16 Longitude 32bit - Station longitude    *2
17 Elevation 32bit - Station elevation    *3
18 Downhole sensor elevation 32bit - Downhole sensor elevation *3
19 Station code 96bit - Station code   *4
20 Data start time 64bit BCD Data start time: year, month, date, hour, minute, second and tenth of a second
YYYYMMDDhhmmssxx format
21 Data time length 32bit unsigned integer Data time length (Unit: 0.1 second)
22 Last Calibration Time 64bit BCD Last calibration time: year, month, date, hour, minute, second and tenth of a second
YYYYMMDDhhmmssxx format
23 Calibration method 8bit - Method of time calibration
Unset: 0x00, GPS: 0x01, Radio: 0x02, NTP: 0x03
24 Geodetic system 8bit - Geodetic system of station latitude and longitude
Unset: 0x00, Japan geodetic system: 0x01, World geodetic system: 0x02
25 Seismograph model code 16bit - Seismograph model code *5
26 Sampling rate 16bit unsigned integer Sampling rate
For 100Hz: 100 For 200Hz: 200
27 Number of components 8bit unsigned integer Number of components For 6 components: 6
28 Relocation flag 8bit unsigned integer Value of relocation count plus 1 Value 0 if not set
Information on North-South component of downhole sensor (NS1)
29 Organization ID 8bit - National Research Institute for Earth Science and Disaster Resilience: 0x01
30 Observation network ID 8bit - KiK-net:0x11
31 Channel number 16bit - Channel identification number      *6
32 Scale factor numerator 16bit signed integer Information on scale factor *7
33 Gain 8bit unsigned integer Information on scale factor *7
34 Units 8bit - Information on scale factor *7
35 Scale factor denominator 32bit signed integer Information on scale factor *7
36 Offset 32bit signed integer Information on scale factor *7
37 Measurement range 32bit signed integer Information on scale factor *7
Information on East-West component (EW1)
38 Organization ID 8bit - Same as North-South component
39 Observation network ID 8bit -
40 Channel number 16bit -
41 Scale factor numerator 16bit signed integer
42 Gain 8bit unsigned integer
43 Units 8bit -
44 Scale factor denominator 32bit signed integer
45 Offset 32bit signed integer
46 Measurement range 32bit signed integer
Information on the Up-Down component of downhole sensor (UD1)
47 Organization ID 8bit - Same as North-South component
48 Observation network ID 8bit -
49 Channel number 16bit -
50 Scale factor numerator 16bit signed integer
51 Gain 8bit unsigned integer
52 Units 8bit -
53 Scale factor denominator 32bit signed integer
54 Offset 32bit signed integer
55 Measurement range 32bit signed integer
Information on North-South component of surface sensor (NS2)
56 Organization ID 8bit - Same as North-South component
57 Observation network ID 8bit -
58 Channel number 16bit -
59 Scale factor numerator 16bit signed integer
60 Gain 8bit unsigned integer
61 Units 8bit -
62 Scale factor denominator 32bit signed integer
63 Offset 32bit signed integer
64 Measurement range 32bit signed integer
Information on East-West component of surface sensor (EW2)
65 Organization ID 8bit - Same as north-south component
66 Observation network ID 8bit -
67 Channel number 16bit -
68 Scale factor numerator 16bit signed integer
69 Gain 8bit unsigned integer
70 Units 8bit -
71 Scale factor denominator 32bit signed integer
72 Offset 32bit signed integer
73 Measurement range 32bit signed integer
Information on the vertical component of surface sensor (UD2)
74 Organization ID 8bit - Same as North-South component
75 Observation network ID 8bit -
76 Channel number 16bit -
77 Scale factor numerator 16bit signed integer
78 Gain 8bit unsigned integer
79 Units 8bit -
80 Scale factor denominator 32bit signed integer
81 Offset 32bit signed integer
82 Measurement range 32bit signed integer
Information Data Block (2) Source Information
83 Information type 16bit - Source information: 0xE020
84 Information data size 16bit unsigned integer Size of the following information data (Unit: byte)
Information on the epicenter
85 Earthquake occurrence time 64bit BCD Earthquake occurrence time: year, month, date, minute, second and tenth of a second
YYYYMMDDhhmmssxx format
86 Latitude 32bit - Hypocenter latitude *8
87 Longitude 32bit - Hypocenter longitude *9
88 Depth 32bit - Hypocenter depth *10
89 Magnitudee 8bit - Earthquake magnitude Supplemental*11
90 Geodetic system 8bit - Geodetic system of hypocenter latitude and longitude
Unset: 0x00, Japan geodetic system: 0x01, World geodetic system: 0x02
91 Hypocenter type 8bit - Hypocenter type
Unset: 0x00, Earthquake information published by JMA just after a large earthqauke: 0x01, JMA Monthly Report on Earthquakes and Volcanoes in Japan: 0x02
92 Reserved 8bit - Reserved: 0x00
Second block
Second block header
93 Sampling start time 64bit BCD Time of the first data in this second block: Year, month, date, minute, second
and tenths of a second
YYYYMMDDhhmmssxx format
94 Frame time length 32bit unsigned integer Time duration covered by this second block (unit: 0.1 second)
95 Data block length 32bit unsigned integer Total size of the following channel data blocks
(Unit: byte)
Channel data block 1st channel (NS1)
96 Organization ID 8bit - National Research Institute for Earth Science and Disaster Resilience: 0x01
97 Observation network ID 8bit - KiK-net:0x11
98 Channel number 16bit - Channel identification number
99 Compressed data variable length - Variable length compressed data compliant with WIN format *12
Channel data block 2rd channel (EW1)
100 Organization ID 8bit - Same as 1st channel
101 Observation network ID 8bit -
102 Channel number 16bit -
103 Compressed data variable length -
Channel data block 3rd channel (UD1)
104 Organization ID 8bit - Same as 1st channel
105 Observation network ID 8bit -
106 Channel number 16bit -
107 Compressed data variable length -
Channel data block, 4th channel (NS2)
108 Organization ID 8bit - Same as 1st channel
109 Observation network ID 8bit -
110 Channel number 16bit -
111 Compressed data variable length -
Channel data block 5th channel (EW2)
112 Organization ID 8bit - Same as 1st channel
113 Observation network ID 8bit -
114 Channel number 16bit -
115 Compressed data variable length -
Channel data block 6th channel (UD2)
116 Organization ID 8bit - Same as 1st channel
117 Observation network ID 8bit -
118 Channel number 16bit -
119 Compressed data variable length -
The following i a repeated sequence of second blocks.


*1: Station latitude

Station latitude (in degrees) is expressed in BCD with 8 digits to the fifth decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

For southern latitude, add 90 to make the value range between 0 and 180

If undefined, 0xBBBBBBBB.

Example)

36.1251 north latitude → 0x0361251E

36.1251 south latitude → 0x1261251E

*2: Station longitude

Station latitude (in degrees) is expressed in BCD with 8 digits to the fifth decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

For west longitude, add 180 to make the value range between 0 and 360

If undefined, 0xBBBBBBBB.

Example)

East longitude 140.0903 → 0x1400903E

West longitude 140.0903 → 0x3200903E

*3: Station elevation and ground sensor elevation

Elevation (in meters) is expressed in BCD format with 8 digits to the second decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

The first digit represents the sign: 0xC for positive and zero, 0xD for negative.

If undefined, 0xBBBBBBBB.

Example)

23.4m → 0xC000234E

-2197m → 0xD02197EE

*4: Station code

Station code is expressed in 12-character ASCII format.

Store starting from the beginning, and set the unused areas to 0x00.

If undefined, all 12 bytes are set to 0x00

Example)

IBR011 → 0x4942523031310000000000000000

*5: Seismograph model code

Code indicating the seismograph model

0x0000 : Not set

0x0001 : K-NET95

0x0002 : SMAC-MDU

0x0004 : K-NET02

0x0005 : K-NET02A

0x0006 : K-NET11

0x0007 : K-NET11A

0x0008 : K-NET11B

0x0009 : K-NET11C

0x000A : K-NET18

0x000B : SMAC-K/MDK

0x000D : KiK-net06a

0x000E : KiK-net06

0x000F : KiK-net11

0x0010 : KiK-net11A

0x0011 : KiK-net11B

0x0012 : KiK-net11C

0x0013 : KiK-net18

*6: Channel number

・K-NET

Seismograph number x 10 + 1: NS component

Seismograph number x 10 + 2: EW component

Seismograph number x 10 + 3: UD component


  • The ocean-bottom cable-type seismographs KNG201, KNG202, KNG203, KNG204, KNG205, and KNG206 installed on the ocean-bottom of Sagami Bay have file extensions NS, EW, and UD, which represent the following data:
    NS: Channel 1 of th
    NS: Channel 1 (oriented in the direction corresponding to the N-S axis rotated by the installation azimuth angle in a clockwise direction)
    EW: Channel 2 (oriented in the direction corresponding to the axis of Channel 1 rotated by 90 degrees in a clockwise direction)
    UD: Channel 3 (U-D component)

    Their installation azimuth angles are as follows:
    KNG201 KNG202 KNG203 KNG204 KNG205 KNG206
    Installation azimuth angle (degree) 336 360 294 165 270 359

  • For details on the Sagami-Bay Sea Bottom Earthquake Observatory, please refer to the following link.

・KiK-net

Seismograph number x 10 + 1: NS1 component

Seismograph number x 10 + 2: EW1 component

Seismograph number x 10 + 3: UD1 component

Seismograph number x 10 + 4: NS2 component

Seismograph number x 10 + 5: EW2 component

Seismograph number x 10 + 6: UD2 component

  • NS1, EW1, and UD1 correspond to underground sensors, while NS2, EW2, and UD2 correspond to surface sensors. The NS1 and EW1 sensors installed underground are oriented in the north-south (NS) and east-west (EW) directions, but there may be errors in the installation orientation due to the difficulty of adjusting the installation orientation. For the installation orientation of the underground seismographs, please refer to the values estimated from the waveform data of Hi-net's high-sensitivity seismographs, which are installed in the same pressure-resistant container as KiK-net's underground seismographs.

*7: Information on scale factor

  • Digital value of seismic waveform data can be converted to physical quantity using the following conversion formula:

Geophysical quantity = (scale factor numerator / scale factor denominator) x (digital value - offset) / gain

  • Measurement range can be converted to physical quantity measurement range using the following conversion formula:

Physically quantity measurement range = (scale factor numerator / scale factor denominator) x (measurement range - offset) / gain

  • Units represent the units of the converted physical quantity according to the following:

Upper 4 bits Exponent of unit Exponent N in 10^-N is represented by an unsigned integer (0 to 15)

Lower 4 bits Unit type 0x0: Reserved, 0x1: m, 0x2: m/s, 0x3: m/s/s

Example)

If the unit is gal (cm/s/s), the value is 0x23 since gal=10^-2 m/s/s

  • Polarity corresponds to positive values in the North direction for the North-South component, East direction for the East-West component, and Up direction for the Up-Down component.

*8: Hypocenter latitude

Hypocenter latitude (in degrees) is expressed in BCD format with 8 digits to the fifth decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

For southern latitude, add 90 to make the value range between 0 and 180

If undefined, 0xBBBBBBBB.

Example)

36.1251 north latitude → 0x0361251E

36.1251 south latitude → 0x1261251E

*9: Hypocenter longitude

Hypocenter longitude (in degrees) is expressed in BCD format with 8 digits to the fifth decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

For west longitude, add 180 to make the value range between 0 and 360.

If undefined, 0xBBBBBBBB.

Example)

East longitude 140.0903 → 0x1400903E

West longitude 140.0903 → 0x3200903E

*10: Hypocenter depth

Hypocenter depth (in km) expressed in BCD format with 8 digits to the third decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

The first digit represents the sign: 0xC for positive and zero, 0xD for negative..

If undefined, 0xBBBBBBBB.

Example)

23.4 km → 0xC00234EE

-1km → 0xD0001EEE

*11: Earthquake magnitude

Earthquake magnitude is expressed in BCD format with 2 digits to the first decimal place.

Digits of non-significant figures are set to 0xE.

The integer part is padded with 0.

If undefined, 0xBB shall be used.

Example)

M3.5 → 0x35

M4 → 0x4E

*12: Compressed data (compressed data compliant with WIN format)
Item No. Item Name Size Data Attribute Item Description
1 Sample size 4bit unsigned integer

The bit length of difference data is represented.

 0:   4bit (0.5byte)
 1:   8bit (1byte)
 2:  16bit (2byte)
 3:  24bit (3byte)
 4:  32bit (4byte)
2 Number of samples 12bit unsigned integer Number of samples of following data
The number of difference data is set to the number of samples - 1
3 1st sample value 32bit Signed integer Non-difference data (first sample value itself)
4 2nd difference sample value Variable length signed integer Difference data (difference between the second sample value and the first sample value)

(Abbreviations)


5 Last difference sample value Variable length signed integer Difference data (difference between the last sample value and the previous sample value)
6 Boundary adjustment data Variable length -
4bit length: The case where the bit length of the difference data is 4 bits and the number of samples is an even number (value 0x0)
0 bit length: Other than the above (no boundary adjustment data)

  • Click here for K-NET ASCII format.
  • Click here for K-NET CSV format.