Methods
(async) WDataMseed(fp, optopt) → {Promise}
- Description:
讀取miniSEED檔案,只能用於Windows作業系統
- Source:
Example
import wds from './src/WDataMseed.mjs'
async function test() {
//fp
let fp = './g.mseed'
//wds
let r = await wds(fp)
console.log(r)
// [
// {
// name: 'SE.RST01.00.HNE.D.2020-09-17T013552.000000.csv',
// path: null,
// data: { heads: [Object], records: [Array] }
// },
// {
// name: 'SE.RST01.00.HNN.D.2020-09-17T013552.000000.csv',
// path: null,
// data: { heads: [Object], records: [Array] }
// },
// {
// name: 'SE.RST01.00.HNZ.D.2020-09-17T013552.000000.csv',
// path: null,
// data: { heads: [Object], records: [Array] }
// }
// ]
}
test()
.catch((err) => {
console.log('catch', err)
})
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fp |
String | 輸入檔案路徑字串 |
||||||||||||
opt |
Object |
<optional> |
{}
|
輸入設定物件,預設{} Properties
|
Returns:
回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息
- Type
- Promise