50 files added
1 files modified
New file |
| | |
| | | { |
| | | "presets": [ |
| | | ["env", { |
| | | "modules": false, |
| | | "targets": { |
| | | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] |
| | | } |
| | | }], |
| | | "stage-2" |
| | | ], |
| | | "plugins": ["transform-vue-jsx", "transform-runtime","transform-object-assign"], |
| | | "env": { |
| | | "test": { |
| | | "presets": ["env", "stage-2"], |
| | | "plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"] |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | root = true |
| | | |
| | | [*] |
| | | charset = utf-8 |
| | | indent_style = space |
| | | indent_size = 2 |
| | | end_of_line = lf |
| | | insert_final_newline = true |
| | | trim_trailing_whitespace = true |
New file |
| | |
| | | /build/ |
| | | /config/ |
| | | /dist/ |
| | | /*.js |
| | | /test/unit/coverage/ |
New file |
| | |
| | | // https://eslint.org/docs/user-guide/configuring |
| | | |
| | | module.exports = { |
| | | root: true, |
| | | parserOptions: { |
| | | parser: 'babel-eslint' |
| | | }, |
| | | env: { |
| | | browser: true, |
| | | }, |
| | | extends: [ |
| | | // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention |
| | | // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. |
| | | 'plugin:vue/essential', |
| | | // https://github.com/standard/standard/blob/master/docs/RULES-en.md |
| | | 'standard' |
| | | ], |
| | | // required to lint *.vue files |
| | | plugins: [ |
| | | 'vue' |
| | | ], |
| | | // add your custom rules here |
| | | rules: { |
| | | // allow async-await |
| | | 'generator-star-spacing': 'off', |
| | | // allow debugger during development |
| | | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' |
| | | } |
| | | } |
New file |
| | |
| | | .DS_Store |
| | | node_modules/ |
| | | /dist/ |
| | | npm-debug.log* |
| | | yarn-debug.log* |
| | | yarn-error.log* |
| | | /test/unit/coverage/ |
| | | /test/e2e/reports/ |
| | | selenium-debug.log |
| | | |
| | | # Editor directories and files |
| | | .idea |
| | | .vscode |
| | | *.suo |
| | | *.ntvs* |
| | | *.njsproj |
| | | *.sln |
New file |
| | |
| | | // https://github.com/michael-ciniawsky/postcss-load-config |
| | | |
| | | module.exports = { |
| | | "plugins": { |
| | | "postcss-import": {}, |
| | | "postcss-url": {}, |
| | | // to edit target browsers: use "browserslist" field in package.json |
| | | "autoprefixer": {} |
| | | } |
| | | } |
| | |
| | | ## wind2 |
| | | # windy2 |
| | | |
| | | > A Vue.js project |
| | | |
| | | ## Build Setup |
| | | |
| | | ``` bash |
| | | # install dependencies |
| | | npm install |
| | | |
| | | # serve with hot reload at localhost:8080 |
| | | npm run dev |
| | | |
| | | # build for production with minification |
| | | npm run build |
| | | |
| | | # build for production and view the bundle analyzer report |
| | | npm run build --report |
| | | |
| | | # run unit tests |
| | | npm run unit |
| | | |
| | | # run e2e tests |
| | | npm run e2e |
| | | |
| | | # run all tests |
| | | npm test |
| | | ``` |
| | | |
| | | For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). |
New file |
| | |
| | | 'use strict' |
| | | require('./check-versions')() |
| | | |
| | | process.env.NODE_ENV = 'production' |
| | | |
| | | const ora = require('ora') |
| | | const rm = require('rimraf') |
| | | const path = require('path') |
| | | const chalk = require('chalk') |
| | | const webpack = require('webpack') |
| | | const config = require('../config') |
| | | const webpackConfig = require('./webpack.prod.conf') |
| | | |
| | | const spinner = ora('building for production...') |
| | | spinner.start() |
| | | |
| | | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { |
| | | if (err) throw err |
| | | webpack(webpackConfig, (err, stats) => { |
| | | spinner.stop() |
| | | if (err) throw err |
| | | process.stdout.write(stats.toString({ |
| | | colors: true, |
| | | modules: false, |
| | | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. |
| | | chunks: false, |
| | | chunkModules: false |
| | | }) + '\n\n') |
| | | |
| | | if (stats.hasErrors()) { |
| | | console.log(chalk.red(' Build failed with errors.\n')) |
| | | process.exit(1) |
| | | } |
| | | |
| | | console.log(chalk.cyan(' Build complete.\n')) |
| | | console.log(chalk.yellow( |
| | | ' Tip: built files are meant to be served over an HTTP server.\n' + |
| | | ' Opening index.html over file:// won\'t work.\n' |
| | | )) |
| | | }) |
| | | }) |
New file |
| | |
| | | 'use strict' |
| | | const chalk = require('chalk') |
| | | const semver = require('semver') |
| | | const packageConfig = require('../package.json') |
| | | const shell = require('shelljs') |
| | | |
| | | function exec (cmd) { |
| | | return require('child_process').execSync(cmd).toString().trim() |
| | | } |
| | | |
| | | const versionRequirements = [ |
| | | { |
| | | name: 'node', |
| | | currentVersion: semver.clean(process.version), |
| | | versionRequirement: packageConfig.engines.node |
| | | } |
| | | ] |
| | | |
| | | if (shell.which('npm')) { |
| | | versionRequirements.push({ |
| | | name: 'npm', |
| | | currentVersion: exec('npm --version'), |
| | | versionRequirement: packageConfig.engines.npm |
| | | }) |
| | | } |
| | | |
| | | module.exports = function () { |
| | | const warnings = [] |
| | | |
| | | for (let i = 0; i < versionRequirements.length; i++) { |
| | | const mod = versionRequirements[i] |
| | | |
| | | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { |
| | | warnings.push(mod.name + ': ' + |
| | | chalk.red(mod.currentVersion) + ' should be ' + |
| | | chalk.green(mod.versionRequirement) |
| | | ) |
| | | } |
| | | } |
| | | |
| | | if (warnings.length) { |
| | | console.log('') |
| | | console.log(chalk.yellow('To use this template, you must update following to modules:')) |
| | | console.log() |
| | | |
| | | for (let i = 0; i < warnings.length; i++) { |
| | | const warning = warnings[i] |
| | | console.log(' ' + warning) |
| | | } |
| | | |
| | | console.log() |
| | | process.exit(1) |
| | | } |
| | | } |
New file |
| | |
| | | 'use strict' |
| | | const path = require('path') |
| | | const config = require('../config') |
| | | const ExtractTextPlugin = require('extract-text-webpack-plugin') |
| | | const packageConfig = require('../package.json') |
| | | |
| | | exports.assetsPath = function (_path) { |
| | | const assetsSubDirectory = process.env.NODE_ENV === 'production' |
| | | ? config.build.assetsSubDirectory |
| | | : config.dev.assetsSubDirectory |
| | | |
| | | return path.posix.join(assetsSubDirectory, _path) |
| | | } |
| | | |
| | | exports.cssLoaders = function (options) { |
| | | options = options || {} |
| | | |
| | | const cssLoader = { |
| | | loader: 'css-loader', |
| | | options: { |
| | | sourceMap: options.sourceMap |
| | | } |
| | | } |
| | | |
| | | const postcssLoader = { |
| | | loader: 'postcss-loader', |
| | | options: { |
| | | sourceMap: options.sourceMap |
| | | } |
| | | } |
| | | |
| | | // generate loader string to be used with extract text plugin |
| | | function generateLoaders (loader, loaderOptions) { |
| | | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] |
| | | |
| | | if (loader) { |
| | | loaders.push({ |
| | | loader: loader + '-loader', |
| | | options: Object.assign({}, loaderOptions, { |
| | | sourceMap: options.sourceMap |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | // Extract CSS when that option is specified |
| | | // (which is the case during production build) |
| | | if (options.extract) { |
| | | return ExtractTextPlugin.extract({ |
| | | use: loaders, |
| | | fallback: 'vue-style-loader' |
| | | }) |
| | | } else { |
| | | return ['vue-style-loader'].concat(loaders) |
| | | } |
| | | } |
| | | |
| | | // https://vue-loader.vuejs.org/en/configurations/extract-css.html |
| | | return { |
| | | css: generateLoaders(), |
| | | postcss: generateLoaders(), |
| | | less: generateLoaders('less'), |
| | | sass: generateLoaders('sass', { indentedSyntax: true }), |
| | | scss: generateLoaders('sass'), |
| | | stylus: generateLoaders('stylus'), |
| | | styl: generateLoaders('stylus') |
| | | } |
| | | } |
| | | |
| | | // Generate loaders for standalone style files (outside of .vue) |
| | | exports.styleLoaders = function (options) { |
| | | const output = [] |
| | | const loaders = exports.cssLoaders(options) |
| | | |
| | | for (const extension in loaders) { |
| | | const loader = loaders[extension] |
| | | output.push({ |
| | | test: new RegExp('\\.' + extension + '$'), |
| | | use: loader |
| | | }) |
| | | } |
| | | |
| | | return output |
| | | } |
| | | |
| | | exports.createNotifierCallback = () => { |
| | | const notifier = require('node-notifier') |
| | | |
| | | return (severity, errors) => { |
| | | if (severity !== 'error') return |
| | | |
| | | const error = errors[0] |
| | | const filename = error.file && error.file.split('!').pop() |
| | | |
| | | notifier.notify({ |
| | | title: packageConfig.name, |
| | | message: severity + ': ' + error.name, |
| | | subtitle: filename || '', |
| | | icon: path.join(__dirname, 'logo.png') |
| | | }) |
| | | } |
| | | } |
New file |
| | |
| | | 'use strict' |
| | | const utils = require('./utils') |
| | | const config = require('../config') |
| | | const isProduction = process.env.NODE_ENV === 'production' |
| | | const sourceMapEnabled = isProduction |
| | | ? config.build.productionSourceMap |
| | | : config.dev.cssSourceMap |
| | | |
| | | module.exports = { |
| | | loaders: utils.cssLoaders({ |
| | | sourceMap: sourceMapEnabled, |
| | | extract: isProduction |
| | | }), |
| | | cssSourceMap: sourceMapEnabled, |
| | | cacheBusting: config.dev.cacheBusting, |
| | | transformToRequire: { |
| | | video: ['src', 'poster'], |
| | | source: 'src', |
| | | img: 'src', |
| | | image: 'xlink:href' |
| | | } |
| | | } |
New file |
| | |
| | | 'use strict' |
| | | const path = require('path') |
| | | const utils = require('./utils') |
| | | const config = require('../config') |
| | | const vueLoaderConfig = require('./vue-loader.conf') |
| | | const webpack = require('webpack') |
| | | |
| | | function resolve (dir) { |
| | | return path.join(__dirname, '..', dir) |
| | | } |
| | | |
| | | const createLintingRule = () => ({ |
| | | test: /\.(js|vue)$/, |
| | | loader: 'eslint-loader', |
| | | enforce: 'pre', |
| | | include: [resolve('src'), resolve('test')], |
| | | options: { |
| | | formatter: require('eslint-friendly-formatter'), |
| | | emitWarning: !config.dev.showEslintErrorsInOverlay |
| | | } |
| | | }) |
| | | |
| | | module.exports = { |
| | | context: path.resolve(__dirname, '../'), |
| | | entry: { |
| | | app: './src/main.js' |
| | | }, |
| | | output: { |
| | | path: config.build.assetsRoot, |
| | | filename: '[name].js', |
| | | publicPath: process.env.NODE_ENV === 'production' |
| | | ? config.build.assetsPublicPath |
| | | : config.dev.assetsPublicPath |
| | | }, |
| | | resolve: { |
| | | extensions: ['.js', '.vue', '.json'], |
| | | alias: { |
| | | 'vue$': 'vue/dist/vue.esm.js', |
| | | '@': resolve('src'), |
| | | 'jquery': 'jquery', |
| | | '/static': resolve('static') |
| | | } |
| | | }, |
| | | module: { |
| | | rules: [ |
| | | ...(config.dev.useEslint ? [createLintingRule()] : []), |
| | | { |
| | | test: /\.vue$/, |
| | | loader: 'vue-loader', |
| | | options: vueLoaderConfig |
| | | }, |
| | | { |
| | | test: /\.js$/, |
| | | loader: 'babel-loader', |
| | | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] |
| | | }, |
| | | { |
| | | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, |
| | | loader: 'url-loader', |
| | | options: { |
| | | limit: 10000, |
| | | name: utils.assetsPath('img/[name].[hash:7].[ext]') |
| | | } |
| | | }, |
| | | { |
| | | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, |
| | | loader: 'url-loader', |
| | | options: { |
| | | limit: 10000, |
| | | name: utils.assetsPath('media/[name].[hash:7].[ext]') |
| | | } |
| | | }, |
| | | { |
| | | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, |
| | | loader: 'url-loader', |
| | | options: { |
| | | limit: 10000, |
| | | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | node: { |
| | | // prevent webpack from injecting useless setImmediate polyfill because Vue |
| | | // source contains it (although only uses it if it's native). |
| | | setImmediate: false, |
| | | // prevent webpack from injecting mocks to Node native modules |
| | | // that does not make sense for the client |
| | | dgram: 'empty', |
| | | fs: 'empty', |
| | | net: 'empty', |
| | | tls: 'empty', |
| | | child_process: 'empty' |
| | | }, |
| | | plugins: [ |
| | | new webpack.ProvidePlugin({ |
| | | $: "jquery", |
| | | jQuery: "jquery" |
| | | }) |
| | | ], |
| | | } |
New file |
| | |
| | | 'use strict' |
| | | const utils = require('./utils') |
| | | const webpack = require('webpack') |
| | | const config = require('../config') |
| | | const merge = require('webpack-merge') |
| | | const path = require('path') |
| | | const baseWebpackConfig = require('./webpack.base.conf') |
| | | const CopyWebpackPlugin = require('copy-webpack-plugin') |
| | | const HtmlWebpackPlugin = require('html-webpack-plugin') |
| | | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') |
| | | const portfinder = require('portfinder') |
| | | |
| | | const HOST = process.env.HOST |
| | | const PORT = process.env.PORT && Number(process.env.PORT) |
| | | |
| | | const devWebpackConfig = merge(baseWebpackConfig, { |
| | | module: { |
| | | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) |
| | | }, |
| | | // cheap-module-eval-source-map is faster for development |
| | | devtool: config.dev.devtool, |
| | | |
| | | // these devServer options should be customized in /config/index.js |
| | | devServer: { |
| | | clientLogLevel: 'warning', |
| | | historyApiFallback: { |
| | | rewrites: [ |
| | | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, |
| | | ], |
| | | }, |
| | | hot: true, |
| | | contentBase: false, // since we use CopyWebpackPlugin. |
| | | compress: true, |
| | | host: HOST || config.dev.host, |
| | | port: PORT || config.dev.port, |
| | | open: config.dev.autoOpenBrowser, |
| | | overlay: config.dev.errorOverlay |
| | | ? { warnings: false, errors: true } |
| | | : false, |
| | | publicPath: config.dev.assetsPublicPath, |
| | | proxy: config.dev.proxyTable, |
| | | quiet: true, // necessary for FriendlyErrorsPlugin |
| | | watchOptions: { |
| | | poll: config.dev.poll, |
| | | } |
| | | }, |
| | | plugins: [ |
| | | new webpack.DefinePlugin({ |
| | | 'process.env': require('../config/dev.env') |
| | | }), |
| | | new webpack.HotModuleReplacementPlugin(), |
| | | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. |
| | | new webpack.NoEmitOnErrorsPlugin(), |
| | | // https://github.com/ampedandwired/html-webpack-plugin |
| | | new HtmlWebpackPlugin({ |
| | | filename: 'index.html', |
| | | template: 'index.html', |
| | | inject: true |
| | | }), |
| | | // copy custom static assets |
| | | new CopyWebpackPlugin([ |
| | | { |
| | | from: path.resolve(__dirname, '../static'), |
| | | to: config.dev.assetsSubDirectory, |
| | | ignore: ['.*'] |
| | | } |
| | | ]) |
| | | ] |
| | | }) |
| | | |
| | | module.exports = new Promise((resolve, reject) => { |
| | | portfinder.basePort = process.env.PORT || config.dev.port |
| | | portfinder.getPort((err, port) => { |
| | | if (err) { |
| | | reject(err) |
| | | } else { |
| | | // publish the new Port, necessary for e2e tests |
| | | process.env.PORT = port |
| | | // add port to devServer config |
| | | devWebpackConfig.devServer.port = port |
| | | |
| | | // Add FriendlyErrorsPlugin |
| | | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ |
| | | compilationSuccessInfo: { |
| | | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], |
| | | }, |
| | | onErrors: config.dev.notifyOnErrors |
| | | ? utils.createNotifierCallback() |
| | | : undefined |
| | | })) |
| | | |
| | | resolve(devWebpackConfig) |
| | | } |
| | | }) |
| | | }) |
New file |
| | |
| | | 'use strict' |
| | | const path = require('path') |
| | | const utils = require('./utils') |
| | | const webpack = require('webpack') |
| | | const config = require('../config') |
| | | const merge = require('webpack-merge') |
| | | const baseWebpackConfig = require('./webpack.base.conf') |
| | | const CopyWebpackPlugin = require('copy-webpack-plugin') |
| | | const HtmlWebpackPlugin = require('html-webpack-plugin') |
| | | const ExtractTextPlugin = require('extract-text-webpack-plugin') |
| | | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') |
| | | const UglifyJsPlugin = require('uglifyjs-webpack-plugin') |
| | | |
| | | const env = process.env.NODE_ENV === 'testing' |
| | | ? require('../config/test.env') |
| | | : require('../config/prod.env') |
| | | |
| | | const webpackConfig = merge(baseWebpackConfig, { |
| | | module: { |
| | | rules: utils.styleLoaders({ |
| | | sourceMap: config.build.productionSourceMap, |
| | | extract: true, |
| | | usePostCSS: true |
| | | }) |
| | | }, |
| | | devtool: config.build.productionSourceMap ? config.build.devtool : false, |
| | | output: { |
| | | path: config.build.assetsRoot, |
| | | filename: utils.assetsPath('js/[name].[chunkhash].js'), |
| | | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') |
| | | }, |
| | | plugins: [ |
| | | // http://vuejs.github.io/vue-loader/en/workflow/production.html |
| | | new webpack.DefinePlugin({ |
| | | 'process.env': env |
| | | }), |
| | | new UglifyJsPlugin({ |
| | | uglifyOptions: { |
| | | compress: { |
| | | warnings: false |
| | | } |
| | | }, |
| | | sourceMap: config.build.productionSourceMap, |
| | | parallel: true |
| | | }), |
| | | // extract css into its own file |
| | | new ExtractTextPlugin({ |
| | | filename: utils.assetsPath('css/[name].[contenthash].css'), |
| | | // Setting the following option to `false` will not extract CSS from codesplit chunks. |
| | | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. |
| | | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, |
| | | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 |
| | | allChunks: true, |
| | | }), |
| | | // Compress extracted CSS. We are using this plugin so that possible |
| | | // duplicated CSS from different components can be deduped. |
| | | new OptimizeCSSPlugin({ |
| | | cssProcessorOptions: config.build.productionSourceMap |
| | | ? { safe: true, map: { inline: false } } |
| | | : { safe: true } |
| | | }), |
| | | // generate dist index.html with correct asset hash for caching. |
| | | // you can customize output by editing /index.html |
| | | // see https://github.com/ampedandwired/html-webpack-plugin |
| | | new HtmlWebpackPlugin({ |
| | | filename: process.env.NODE_ENV === 'testing' |
| | | ? 'index.html' |
| | | : config.build.index, |
| | | template: 'index.html', |
| | | inject: true, |
| | | minify: { |
| | | removeComments: true, |
| | | collapseWhitespace: true, |
| | | removeAttributeQuotes: true |
| | | // more options: |
| | | // https://github.com/kangax/html-minifier#options-quick-reference |
| | | }, |
| | | // necessary to consistently work with multiple chunks via CommonsChunkPlugin |
| | | chunksSortMode: 'dependency' |
| | | }), |
| | | // keep module.id stable when vendor modules does not change |
| | | new webpack.HashedModuleIdsPlugin(), |
| | | // enable scope hoisting |
| | | new webpack.optimize.ModuleConcatenationPlugin(), |
| | | // split vendor js into its own file |
| | | new webpack.optimize.CommonsChunkPlugin({ |
| | | name: 'vendor', |
| | | minChunks (module) { |
| | | // any required modules inside node_modules are extracted to vendor |
| | | return ( |
| | | module.resource && |
| | | /\.js$/.test(module.resource) && |
| | | module.resource.indexOf( |
| | | path.join(__dirname, '../node_modules') |
| | | ) === 0 |
| | | ) |
| | | } |
| | | }), |
| | | // extract webpack runtime and module manifest to its own file in order to |
| | | // prevent vendor hash from being updated whenever app bundle is updated |
| | | new webpack.optimize.CommonsChunkPlugin({ |
| | | name: 'manifest', |
| | | minChunks: Infinity |
| | | }), |
| | | // This instance extracts shared chunks from code splitted chunks and bundles them |
| | | // in a separate chunk, similar to the vendor chunk |
| | | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk |
| | | new webpack.optimize.CommonsChunkPlugin({ |
| | | name: 'app', |
| | | async: 'vendor-async', |
| | | children: true, |
| | | minChunks: 3 |
| | | }), |
| | | |
| | | // copy custom static assets |
| | | new CopyWebpackPlugin([ |
| | | { |
| | | from: path.resolve(__dirname, '../static'), |
| | | to: config.build.assetsSubDirectory, |
| | | ignore: ['.*'] |
| | | } |
| | | ]) |
| | | ] |
| | | }) |
| | | |
| | | if (config.build.productionGzip) { |
| | | const CompressionWebpackPlugin = require('compression-webpack-plugin') |
| | | |
| | | webpackConfig.plugins.push( |
| | | new CompressionWebpackPlugin({ |
| | | asset: '[path].gz[query]', |
| | | algorithm: 'gzip', |
| | | test: new RegExp( |
| | | '\\.(' + |
| | | config.build.productionGzipExtensions.join('|') + |
| | | ')$' |
| | | ), |
| | | threshold: 10240, |
| | | minRatio: 0.8 |
| | | }) |
| | | ) |
| | | } |
| | | |
| | | if (config.build.bundleAnalyzerReport) { |
| | | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin |
| | | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) |
| | | } |
| | | |
| | | module.exports = webpackConfig |
New file |
| | |
| | | 'use strict' |
| | | const merge = require('webpack-merge') |
| | | const prodEnv = require('./prod.env') |
| | | |
| | | module.exports = merge(prodEnv, { |
| | | NODE_ENV: '"development"' |
| | | }) |
New file |
| | |
| | | 'use strict' |
| | | // Template version: 1.3.1 |
| | | // see http://vuejs-templates.github.io/webpack for documentation. |
| | | |
| | | const path = require('path') |
| | | |
| | | module.exports = { |
| | | dev: { |
| | | |
| | | // Paths |
| | | assetsSubDirectory: 'static', |
| | | assetsPublicPath: '/', |
| | | proxyTable: {}, |
| | | |
| | | // Various Dev Server settings |
| | | host: 'localhost', // can be overwritten by process.env.HOST |
| | | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
| | | autoOpenBrowser: false, |
| | | errorOverlay: true, |
| | | notifyOnErrors: true, |
| | | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- |
| | | |
| | | // Use Eslint Loader? |
| | | // If true, your code will be linted during bundling and |
| | | // linting errors and warnings will be shown in the console. |
| | | useEslint: true, |
| | | // If true, eslint errors and warnings will also be shown in the error overlay |
| | | // in the browser. |
| | | showEslintErrorsInOverlay: false, |
| | | |
| | | /** |
| | | * Source Maps |
| | | */ |
| | | |
| | | // https://webpack.js.org/configuration/devtool/#development |
| | | devtool: 'cheap-module-eval-source-map', |
| | | |
| | | // If you have problems debugging vue-files in devtools, |
| | | // set this to false - it *may* help |
| | | // https://vue-loader.vuejs.org/en/options.html#cachebusting |
| | | cacheBusting: true, |
| | | |
| | | cssSourceMap: true |
| | | }, |
| | | |
| | | build: { |
| | | // Template for index.html |
| | | index: path.resolve(__dirname, '../dist/index.html'), |
| | | |
| | | // Paths |
| | | assetsRoot: path.resolve(__dirname, '../dist'), |
| | | assetsSubDirectory: 'static', |
| | | assetsPublicPath: '/', |
| | | |
| | | /** |
| | | * Source Maps |
| | | */ |
| | | |
| | | productionSourceMap: true, |
| | | // https://webpack.js.org/configuration/devtool/#production |
| | | devtool: '#source-map', |
| | | |
| | | // Gzip off by default as many popular static hosts such as |
| | | // Surge or Netlify already gzip all static assets for you. |
| | | // Before setting to `true`, make sure to: |
| | | // npm install --save-dev compression-webpack-plugin |
| | | productionGzip: false, |
| | | productionGzipExtensions: ['js', 'css'], |
| | | |
| | | // Run the build command with an extra argument to |
| | | // View the bundle analyzer report after build finishes: |
| | | // `npm run build --report` |
| | | // Set to `true` or `false` to always turn it on or off |
| | | bundleAnalyzerReport: process.env.npm_config_report |
| | | } |
| | | } |
New file |
| | |
| | | 'use strict' |
| | | module.exports = { |
| | | NODE_ENV: '"production"' |
| | | } |
New file |
| | |
| | | 'use strict' |
| | | const merge = require('webpack-merge') |
| | | const devEnv = require('./dev.env') |
| | | |
| | | module.exports = merge(devEnv, { |
| | | NODE_ENV: '"testing"' |
| | | }) |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
| | | <title>windy2</title> |
| | | <!-- <script src="https://unpkg.com/axios/dist/axios.min.js"></script> --> |
| | | </head> |
| | | <body style="margin: 0;"> |
| | | <div id="app"></div> |
| | | <!-- built files will be auto injected --> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | { |
| | | "name": "windy2", |
| | | "version": "1.0.0", |
| | | "description": "A Vue.js project", |
| | | "author": "", |
| | | "private": true, |
| | | "scripts": { |
| | | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", |
| | | "start": "npm run dev", |
| | | "unit": "jest --config test/unit/jest.conf.js --coverage", |
| | | "e2e": "node test/e2e/runner.js", |
| | | "test": "npm run unit && npm run e2e", |
| | | "lint": "eslint --ext .js,.vue src test/unit test/e2e/specs", |
| | | "build": "node build/build.js" |
| | | }, |
| | | "dependencies": { |
| | | "jquery": "^3.5.1", |
| | | "leaflet": "^1.6.0", |
| | | "leaflet-velocity": "^1.7.0", |
| | | "vue": "^2.5.2", |
| | | "vue-router": "^3.0.1", |
| | | "vue-websocket": "^0.2.3" |
| | | }, |
| | | "devDependencies": { |
| | | "autoprefixer": "^7.1.2", |
| | | "babel-core": "^6.22.1", |
| | | "babel-eslint": "^8.2.1", |
| | | "babel-helper-vue-jsx-merge-props": "^2.0.3", |
| | | "babel-jest": "^21.0.2", |
| | | "babel-loader": "^7.1.1", |
| | | "babel-plugin-dynamic-import-node": "^1.2.0", |
| | | "babel-plugin-syntax-jsx": "^6.18.0", |
| | | "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", |
| | | "babel-plugin-transform-object-assign": "^6.22.0", |
| | | "babel-plugin-transform-runtime": "^6.22.0", |
| | | "babel-plugin-transform-vue-jsx": "^3.5.0", |
| | | "babel-preset-env": "^1.3.2", |
| | | "babel-preset-stage-2": "^6.22.0", |
| | | "babel-register": "^6.22.0", |
| | | "chalk": "^2.0.1", |
| | | "chromedriver": "^2.27.2", |
| | | "copy-webpack-plugin": "^4.0.1", |
| | | "cross-spawn": "^5.0.1", |
| | | "css-loader": "^0.28.0", |
| | | "eslint": "^4.15.0", |
| | | "eslint-config-standard": "^10.2.1", |
| | | "eslint-friendly-formatter": "^3.0.0", |
| | | "eslint-loader": "^1.7.1", |
| | | "eslint-plugin-import": "^2.7.0", |
| | | "eslint-plugin-node": "^5.2.0", |
| | | "eslint-plugin-promise": "^3.4.0", |
| | | "eslint-plugin-standard": "^3.0.1", |
| | | "eslint-plugin-vue": "^4.0.0", |
| | | "extract-text-webpack-plugin": "^3.0.0", |
| | | "file-loader": "^1.1.4", |
| | | "friendly-errors-webpack-plugin": "^1.6.1", |
| | | "html-webpack-plugin": "^2.30.1", |
| | | "jest": "^22.0.4", |
| | | "jest-serializer-vue": "^0.3.0", |
| | | "nightwatch": "^0.9.12", |
| | | "node-notifier": "^5.1.2", |
| | | "optimize-css-assets-webpack-plugin": "^3.2.0", |
| | | "ora": "^1.2.0", |
| | | "portfinder": "^1.0.13", |
| | | "postcss-import": "^11.0.0", |
| | | "postcss-loader": "^2.0.8", |
| | | "postcss-url": "^7.2.1", |
| | | "rimraf": "^2.6.0", |
| | | "selenium-server": "^3.0.1", |
| | | "semver": "^5.3.0", |
| | | "shelljs": "^0.7.6", |
| | | "uglifyjs-webpack-plugin": "^1.1.1", |
| | | "url-loader": "^0.5.8", |
| | | "vue-jest": "^1.0.2", |
| | | "vue-loader": "^13.3.0", |
| | | "vue-style-loader": "^3.0.1", |
| | | "vue-template-compiler": "^2.5.2", |
| | | "webpack": "^3.6.0", |
| | | "webpack-bundle-analyzer": "^2.9.0", |
| | | "webpack-dev-server": "^2.9.1", |
| | | "webpack-merge": "^4.1.0" |
| | | }, |
| | | "engines": { |
| | | "node": ">= 6.0.0", |
| | | "npm": ">= 3.0.0" |
| | | }, |
| | | "browserslist": [ |
| | | "> 1%", |
| | | "last 2 versions", |
| | | "not ie <= 8" |
| | | ] |
| | | } |
New file |
| | |
| | | <template> |
| | | <div id="app"> |
| | | <Map></Map> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Map from './components/Map' |
| | | export default { |
| | | name: 'App', |
| | | components: { |
| | | Map |
| | | }, |
| | | methods: { |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | html, |
| | | body, |
| | | #app { |
| | | height: 100%; |
| | | } |
| | | .noneData{ |
| | | |
| | | } |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div id="mapContent"> |
| | | <div class="noneData" v-if="noneData">当前区域设备没有风场</div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import 'leaflet/dist/leaflet.css' |
| | | import 'leaflet-velocity/dist/leaflet-velocity.css' |
| | | import L from 'leaflet' |
| | | import 'leaflet-velocity/dist/leaflet-velocity' |
| | | import $ from 'jquery' |
| | | // import markerIcon from 'leaflet/dist/images/marker-icon.png' |
| | | // import iconShadow from 'leaflet/dist/images/marker-shadow.png' |
| | | |
| | | export default { |
| | | data () { |
| | | return { |
| | | map: null, |
| | | code: [], |
| | | jingdu: 0, |
| | | weidu: 0, |
| | | latlng: [], |
| | | monitorPointId: 0, |
| | | noneData: false |
| | | } |
| | | }, |
| | | methods: { |
| | | // 初始化地图容器 |
| | | initMap () { |
| | | let map = L.map('mapContent', { |
| | | minZoom: 2, |
| | | maxZoom: 18, |
| | | center: [this.weidu, this.jingdu], |
| | | zoom: 17, |
| | | zoomControl: false, |
| | | attributionControl: false, |
| | | crs: L.CRS.EPSG3857 |
| | | }) |
| | | L.tileLayer('https://wprd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}').addTo(map) |
| | | this.map = map // data上需要挂载 |
| | | window.map = map |
| | | }, |
| | | initData () { |
| | | // 请求更新风场数据 |
| | | $.getJSON('http://wind2.7drlb.com/screen_api_v2/screen/windAndDeviceDataByArea', {'monitorPointId': this.monitorPointId}, (data) => { |
| | | // 遍历所有图层 |
| | | map.eachLayer(function (layer) { |
| | | // 卸载之前的风场图层 |
| | | if (!layer._container && ('' + $(layer._container).attr('class')).replace(/\s/g, '') !== 'leaflet-layer') { |
| | | layer.remove() |
| | | } |
| | | }) |
| | | this.jingdu = data[1] |
| | | this.weidu = data[2] |
| | | // this.initMap() |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: false, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: data[0], // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 8, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1.5, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15, // 每秒所需的帧数 |
| | | colorScale: ['#A2D839', '#7EB530', '#6E9F26', '#4E7522', '#345B1B', '#186303', '#175103', '#053F03'] |
| | | }) |
| | | velocityLayer.addTo(map)// 添加到图上 |
| | | }) |
| | | // 请求更新设备坐标 |
| | | $.getJSON('http://wind2.7drlb.com/screen_api_v2/screen/allDevice', (data) => { |
| | | console.log(data.latlng[0].state) |
| | | console.log('新风场数据加载完成') |
| | | this.latlng = data.latlng |
| | | var group = L.layerGroup().addTo(this.map) |
| | | for (let i = 0; i < this.latlng.length; i++) { |
| | | var lat = this.latlng[i].lat |
| | | var lng = this.latlng[i].lng |
| | | var blueIcon = L.icon({ |
| | | iconUrl: '/static/icon/ico' + 0 + data.latlng[i].state + '.png', |
| | | // iconUrl: markerIcon, |
| | | iconSize: [45, 45], |
| | | iconAnchor: [13, 21] |
| | | }) |
| | | // 添加标记到地图 |
| | | var marker = L.marker([lat, lng], { |
| | | icon: blueIcon |
| | | }).addTo(group) |
| | | // 给标记添加点击事件 |
| | | marker.on('click', (e) => { |
| | | this.noneData = false |
| | | // console.log('公司ID' + data.latlng[i].monitorPointId) |
| | | // 遍历所有图层 |
| | | this.map.eachLayer(function (layer) { |
| | | // 卸载之前的风场图层 |
| | | if (layer._canvas) { |
| | | layer.remove() |
| | | } |
| | | }) |
| | | // 发送公司ID给API请求对应的风场数据 |
| | | $.getJSON('http://wind2.7drlb.com/screen_api_v2/screen/windAndDeviceDataByArea', {'monitorPointId': data.latlng[i].monitorPointId}, datas => { |
| | | this.monitorPointId = data.latlng[i].monitorPointId |
| | | console.log(data.latlng[i].monitorPointId) |
| | | console.log(datas) |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: false, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: datas[0], // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 8, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1.5, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15, // 每秒所需的帧数 |
| | | colorScale: ['#A2D839', '#7EB530', '#6E9F26', '#4E7522', '#345B1B', '#186303', '#175103', '#053F03'] |
| | | }) |
| | | velocityLayer.addTo(this.map)// 添加到图上 |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | console.log('更新数据') |
| | | } |
| | | }, |
| | | created () { |
| | | this.monitorPointId = this.$route.query.monitorPointId |
| | | console.log(this.monitorPointId) |
| | | // 初始化风场数据 |
| | | $.getJSON('http://wind2.7drlb.com/screen_api_v2/screen/windAndDeviceDataByArea', {'monitorPointId': this.monitorPointId}, (data) => { |
| | | console.log(data[0][0].data.length === 0) |
| | | if (data[0][0].data.length === 0) { |
| | | this.noneData = true |
| | | } |
| | | this.jingdu = data[1] |
| | | this.weidu = data[2] |
| | | // 初始化地图容器 |
| | | this.initMap() |
| | | // for (let i = 0; i < data.length; i++) { |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: false, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: data[0], // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 8, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1.5, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15, // 每秒所需的帧数 |
| | | colorScale: ['#A2D839', '#7EB530', '#6E9F26', '#4E7522', '#345B1B', '#186303', '#175103', '#053F03'] |
| | | }) |
| | | velocityLayer.addTo(map)// 添加到图上 |
| | | console.log('初始风场数据加载完成') |
| | | // } |
| | | }) |
| | | // 请求设备坐标 |
| | | $.getJSON('http://wind2.7drlb.com/screen_api_v2/screen/allDevice', (data) => { |
| | | console.log(data) |
| | | console.log('新风场数据加载完成') |
| | | this.latlng = data.latlng |
| | | var group = L.layerGroup().addTo(this.map) |
| | | for (let i = 0; i < this.latlng.length; i++) { |
| | | var lat = this.latlng[i].lat |
| | | var lng = this.latlng[i].lng |
| | | var blueIcon = L.icon({ |
| | | iconUrl: '/static/icon/ico' + 0 + data.latlng[i].state + '.png', |
| | | // iconUrl: markerIcon, |
| | | iconSize: [45, 45], |
| | | iconAnchor: [13, 21] |
| | | }) |
| | | // 添加标记到地图 |
| | | var marker = L.marker([lat, lng], { |
| | | icon: blueIcon |
| | | }).addTo(group) |
| | | // 给标记添加点击事件 |
| | | marker.on('click', (e) => { |
| | | this.noneData = false |
| | | // console.log('公司ID' + data.latlng[i].monitorPointId) |
| | | // 遍历所有图层 |
| | | map.eachLayer(function (layer) { |
| | | // 卸载之前的风场图层 |
| | | if (layer._canvas) { |
| | | layer.remove() |
| | | } |
| | | }) |
| | | // 发送公司ID给API请求对应的风场数据 |
| | | $.getJSON('http://wind2.7drlb.com/screen_api_v2/screen/windAndDeviceDataByArea', {'monitorPointId': data.latlng[i].monitorPointId}, datas => { |
| | | this.monitorPointId = data.latlng[i].monitorPointId |
| | | console.log(data.latlng[i].monitorPointId) |
| | | console.log(datas) |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: false, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: datas[0], // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 8, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1.5, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15, // 每秒所需的帧数 |
| | | colorScale: ['#A2D839', '#7EB530', '#6E9F26', '#4E7522', '#345B1B', '#186303', '#175103', '#053F03'] |
| | | }) |
| | | velocityLayer.addTo(map)// 添加到图上 |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | // 每60秒请求一次风场 |
| | | setInterval(this.initData, 60000) |
| | | }, |
| | | mounted () { |
| | | // 地图级别改变时发生 |
| | | // map.on('zoomend', function () { |
| | | // console.log(map.getZoom()) |
| | | // }) |
| | | // // 拖动地图时发生 |
| | | // map.on('moveend', function () { |
| | | // console.log(map.getBounds().getNorthWest()) |
| | | // console.log(map.getBounds().getNorthEast()) |
| | | // console.log(map.getBounds().getSouthWest()) |
| | | // console.log(map.getBounds().getSouthEast()) |
| | | // }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | html, |
| | | body, |
| | | #mapContent { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .noneData{ |
| | | position: absolute; |
| | | color: #000; |
| | | background: #fff; |
| | | z-index: 999; |
| | | left: 50%; |
| | | top: 50%; |
| | | transform: translate(-50%); |
| | | padding: 20px 50px; |
| | | /* opacity: 0.5; */ |
| | | font-size: 28px; |
| | | /* border-radius: 10px; */ |
| | | border:2px solid #FF7F50 |
| | | } |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div id="mapContent"></div> |
| | | </template> |
| | | |
| | | <script> |
| | | import 'leaflet/dist/leaflet.css' |
| | | import 'leaflet-velocity/dist/leaflet-velocity.css' |
| | | import L from 'leaflet' |
| | | import 'leaflet-velocity/dist/leaflet-velocity' |
| | | import $ from 'jquery' |
| | | import markerIcon from 'leaflet/dist/images/marker-icon.png' |
| | | // import iconShadow from 'leaflet/dist/images/marker-shadow.png' |
| | | |
| | | export default { |
| | | data () { |
| | | return { |
| | | map: null, |
| | | code: [], |
| | | jingdu: 0, |
| | | weidu: 0, |
| | | latlng: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | initMap () { |
| | | console.log(this.jingdu) |
| | | console.log(this.weidu) |
| | | let map = L.map('mapContent', { |
| | | minZoom: 2, |
| | | maxZoom: 18, |
| | | center: [this.weidu, this.jingdu], |
| | | zoom: 18, |
| | | zoomControl: false, |
| | | attributionControl: false, |
| | | crs: L.CRS.EPSG3857 |
| | | }) |
| | | L.tileLayer('https://wprd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}').addTo(map) |
| | | this.map = map // data上需要挂载 |
| | | window.map = map |
| | | } |
| | | }, |
| | | created () { |
| | | $.getJSON('http://192.168.1.102:8080/screen/allDevice', (data) => { |
| | | console.log('设备坐标加载完成') |
| | | this.latlng = data.latlng |
| | | // console.log(this.latlng) |
| | | // console.log(data.latlng[1].monitorPointId) |
| | | var group = L.layerGroup().addTo(this.map) |
| | | for (let i = 0; i < this.latlng.length; i++) { |
| | | var lat = this.latlng[i].lat |
| | | var lng = this.latlng[i].lng |
| | | var blueIcon = L.icon({ |
| | | iconUrl: markerIcon, |
| | | iconSize: [25, 41], |
| | | iconAnchor: [13, 21] |
| | | }) |
| | | // 添加标记到地图 |
| | | var marker = L.marker([lat, lng], { |
| | | icon: blueIcon |
| | | }).addTo(group) |
| | | // 给标记添加点击事件 |
| | | marker.on('click', (e) => { |
| | | // console.log('公司ID' + data.latlng[i].monitorPointId) |
| | | // console.log(e) |
| | | // console.log(group) |
| | | map.eachLayer(function (layer) { |
| | | // map.overlayremove(layer) |
| | | // if (!layer._container && ('' + jQuery(layer._container).attr('class')).replace(/\s/g, '') !== 'leaflet-layer') { |
| | | // map.removeLayer(layer) |
| | | // layer.remove() |
| | | // } |
| | | if (layer._canvas) { |
| | | layer.remove() |
| | | } |
| | | }) |
| | | // map.removeLayer(layer) |
| | | $.getJSON('http://192.168.1.102:8080/screen/windAndDeviceData', {'monitorPointId': data.latlng[i].monitorPointId}, function (data) { |
| | | // console.log(data) |
| | | // for (let i = 0; i < data.length; i++) { |
| | | // map.setData(data[0]) |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: true, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: data[0], // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 8, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1.5, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15, // 每秒所需的帧数 |
| | | colorScale: ['#A2D839', '#7EB530', '#6E9F26', '#4E7522', '#345B1B', '#186303', '#175103', '#053F03'] |
| | | }) |
| | | // console.log(velocityLayer) |
| | | // velocityLayer.setData(data[0]) |
| | | velocityLayer.addTo(map)// 添加到图上 |
| | | // console.log(map) |
| | | // } |
| | | }) |
| | | // 先卸载之前加载的数据 |
| | | // 如果api中的设备有公司code可以传送给后台请求公司的数据 |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | $.getJSON('http://192.168.1.102:8080/screen/windAndDeviceData', {'monitorPointId': 539}, (data) => { |
| | | console.log('风场数据加载完成') |
| | | // console.log(data) |
| | | this.jingdu = data[1] |
| | | this.weidu = data[2] |
| | | this.initMap() |
| | | // for (let i = 0; i < data.length; i++) { |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: true, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: data[0], // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 8, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1.5, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15, // 每秒所需的帧数 |
| | | colorScale: ['#A2D839', '#7EB530', '#6E9F26', '#4E7522', '#345B1B', '#186303', '#175103', '#053F03'] |
| | | }) |
| | | velocityLayer.addTo(map)// 添加到图上 |
| | | // } |
| | | }) |
| | | }, |
| | | mounted () { |
| | | // 地图级别改变时发生 |
| | | // map.on('zoomend', function () { |
| | | // console.log(map.getZoom()) |
| | | // }) |
| | | // // 拖动地图时发生 |
| | | // map.on('moveend', function () { |
| | | // console.log(map.getBounds().getNorthWest()) |
| | | // console.log(map.getBounds().getNorthEast()) |
| | | // console.log(map.getBounds().getSouthWest()) |
| | | // console.log(map.getBounds().getSouthEast()) |
| | | // }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | html, |
| | | body, |
| | | #mapContent { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div id="mapContent"></div> |
| | | </template> |
| | | |
| | | <script> |
| | | import 'leaflet/dist/leaflet.css' |
| | | import 'leaflet-velocity/dist/leaflet-velocity.css' |
| | | import L from 'leaflet' |
| | | import 'leaflet-velocity/dist/leaflet-velocity' |
| | | // import $ from 'jquery' |
| | | import markerIcon from 'leaflet/dist/images/marker-icon.png' |
| | | // import iconShadow from 'leaflet/dist/images/marker-shadow.png' |
| | | |
| | | export default { |
| | | data () { |
| | | return { |
| | | map: null, |
| | | code: [], |
| | | weidu: 120.988275, |
| | | jingdu: 31.431279, |
| | | latlng: [ |
| | | { lat: 31.431279, lng: 120.988275 }, |
| | | { lat: 23.138604, lng: 113.306835 }, |
| | | { lat: 23.138535, lng: 113.305821 } |
| | | ] |
| | | } |
| | | }, |
| | | methods: { |
| | | initMap () { |
| | | let map = L.map('mapContent', { |
| | | minZoom: 2, |
| | | maxZoom: 18, |
| | | center: [this.jingdu, this.weidu], |
| | | zoom: 15, |
| | | zoomControl: false, |
| | | attributionControl: false, |
| | | crs: L.CRS.EPSG3857 |
| | | }) |
| | | this.map = map // data上需要挂载 |
| | | window.map = map |
| | | L.tileLayer('http://www.google.cn/maps/vt?lyrs=m@189&gl=cn&x={x}&y={y}&z={z}').addTo(map) |
| | | // 添加多个标记 |
| | | var group = L.layerGroup().addTo(map) |
| | | for (let i = 0; i < this.latlng.length; i++) { |
| | | var lat = this.latlng[i].lat |
| | | var lng = this.latlng[i].lng |
| | | var blueIcon = L.icon({ |
| | | iconUrl: markerIcon, |
| | | iconSize: [25, 41], |
| | | iconAnchor: [13, 21] |
| | | }) |
| | | |
| | | L.marker([lat, lng], { |
| | | icon: blueIcon |
| | | }).addTo(group).bindPopup('我是第' + i + '个marker') |
| | | } |
| | | // L.marker([this.jingdu, this.weidu]).addTo(map).bindPopup('当前坐标<br>' + '经度:' + this.jingdu + '<br>' + '纬度:' + this.weidu) |
| | | } |
| | | }, |
| | | created () { |
| | | // var hostAndPort = '192.168.1.106:8080' |
| | | var ws |
| | | if (typeof (WebSocket) === 'undefined') { |
| | | alert('您的浏览器不支持WebSocket') |
| | | } else { |
| | | ws = new WebSocket('ws://192.168.1.106:8080/screen/webSocketNew1/' + 1) |
| | | ws.onopen = function () { |
| | | } |
| | | |
| | | // 获得消息事件 |
| | | ws.onmessage = function (msg) { |
| | | // console.log(msg) |
| | | // for (let i = 0; i < msg.length; i++) { |
| | | console.log(JSON.parse(msg.data)) |
| | | var velocityLayer = L.velocityLayer({ |
| | | displayValues: true, // 是否显示当前鼠标移动位置,风场信息 |
| | | displayOptions: {// 显示信息配置 |
| | | velocityType: 'Global Wind', |
| | | displayPosition: 'bottomleft', |
| | | displayEmptyString: 'No wind data' |
| | | }, |
| | | data: JSON.parse(msg.data), // 数据 格式可参照 |
| | | // 以下为控制参数,后面为默认值 |
| | | minVelocity: 0, // 粒子最小速度( m/s ) |
| | | maxVelocity: 15, // 粒子最大速度( m/s ) |
| | | velocityScale: 0.01, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | lineWidth: 1, // 绘制粒子的线宽 |
| | | particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | frameRate: 15 // 每秒所需的帧数 |
| | | }) |
| | | velocityLayer.addTo(map)// 添加到图上 |
| | | // } |
| | | } |
| | | // window.onbeforeunload = function (e) { |
| | | // var e = window.event || e |
| | | |
| | | // e.returnValue = ('确定离开当前页面吗?') |
| | | // ws.onclose = function () { |
| | | // } |
| | | // alert(1) |
| | | // } |
| | | // 关闭事件 |
| | | /* ws.onclose = function () { |
| | | }; */ |
| | | // 发生了错误事件 |
| | | ws.onerror = function (error) { |
| | | console.log(error) |
| | | } |
| | | } |
| | | |
| | | // $.getJSON('http://192.168.1.106:8080/screen/windAndDevbiceData', function (data) { |
| | | // console.log(111111111111111111111111) |
| | | // for (let i = 0; i < data.length; i++) { |
| | | // var velocityLayer = L.velocityLayer({ |
| | | // displayValues: true, // 是否显示当前鼠标移动位置,风场信息 |
| | | // displayOptions: {// 显示信息配置 |
| | | // velocityType: 'Global Wind', |
| | | // displayPosition: 'bottomleft', |
| | | // displayEmptyString: 'No wind data' |
| | | // }, |
| | | // data: data[i], // 数据 格式可参照 |
| | | // // 以下为控制参数,后面为默认值 |
| | | // minVelocity: 0, // 粒子最小速度( m/s ) |
| | | // maxVelocity: 15, // 粒子最大速度( m/s ) |
| | | // velocityScale: 0.1, // 风速的比例 ( 粒子的小尾巴长度 ) |
| | | // particleAge: 90, // 粒子在再生之前绘制的最大帧数 |
| | | // lineWidth: 1, // 绘制粒子的线宽 |
| | | // particleMultiplier: 1 / 300, // 粒子计数标量( 粒子密度 ) |
| | | // frameRate: 15 // 每秒所需的帧数 |
| | | // }) |
| | | // velocityLayer.addTo(map)// 添加到图上 |
| | | // } |
| | | // }) |
| | | }, |
| | | mounted () { |
| | | this.initMap() |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | html, |
| | | body, |
| | | #mapContent { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | </style> |
New file |
| | |
| | | // The Vue build version to load with the `import` command |
| | | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. |
| | | import Vue from 'vue' |
| | | import App from './App' |
| | | import router from './router' |
| | | import 'leaflet/dist/leaflet.css' |
| | | import 'leaflet-velocity/dist/leaflet-velocity.css' |
| | | import L from 'leaflet' |
| | | import 'leaflet-velocity/dist/leaflet-velocity' |
| | | // import $ from 'jquery' |
| | | import icon from 'leaflet/dist/images/marker-icon.png' |
| | | import iconShadow from 'leaflet/dist/images/marker-shadow.png' |
| | | // import VueWebsocket from 'vue-websocket' |
| | | // Vue.use(VueWebsocket) |
| | | |
| | | let DefaultIcon = L.icon({ |
| | | iconUrl: icon, |
| | | shadowUrl: iconShadow |
| | | }) |
| | | L.Marker.prototype.options.icon = DefaultIcon |
| | | |
| | | Vue.config.productionTip = false |
| | | |
| | | // IE 兼容方法 |
| | | if (typeof Object.assign !== 'function') { |
| | | Object.assign = function (target) { |
| | | 'use strict' |
| | | if (target == null) { |
| | | throw new TypeError('Cannot convert undefined or null to object') |
| | | } |
| | | |
| | | target = Object(target) |
| | | for (var index = 1; index < arguments.length; index++) { |
| | | var source = arguments[index] |
| | | if (source != null) { |
| | | for (var key in source) { |
| | | if (Object.prototype.hasOwnProperty.call(source, key)) { |
| | | target[key] = source[key] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return target |
| | | } |
| | | } |
| | | |
| | | /* eslint-disable no-new */ |
| | | new Vue({ |
| | | el: '#app', |
| | | router, |
| | | components: { App }, |
| | | template: '<App/>' |
| | | }) |
New file |
| | |
| | | import Vue from 'vue' |
| | | import Router from 'vue-router' |
| | | |
| | | Vue.use(Router) |
| | | |
| | | export default new Router({ |
| | | routes: [ |
| | | ] |
| | | }) |
New file |
| | |
| | | [ |
| | | [ |
| | | { |
| | | "data": [ |
| | | 0.054277625766693094, |
| | | -0.2646919808406916, |
| | | 0.052636928302475364, |
| | | -0.04342160903868054, |
| | | -0.09997129626493632, |
| | | -0.08498353764431442, |
| | | 0.09763965042579636, |
| | | -0.034216823821091896, |
| | | -0.0992246422332202, |
| | | -0.09015341923682695, |
| | | -0.029560415257426687, |
| | | 0.01705006894798902, |
| | | -0.06528981565337705, |
| | | 0.07895077256817787, |
| | | -0.03614154335628318, |
| | | -0.09943263810113206, |
| | | -0.0035373384243661586, |
| | | -0.01580506755591353, |
| | | -0.04055000972061569, |
| | | -0.07278342738772982, |
| | | -0.08928966908603604, |
| | | -0.03788177168655266, |
| | | 0.09125522306390045, |
| | | -0.06310437224641158, |
| | | -0.09717322306862278, |
| | | -0.047040314195960935, |
| | | 0.05956708257513828, |
| | | -0.005571291461525504, |
| | | -0.05739647976481327, |
| | | -0.09698455140701434, |
| | | 0.09332424553833607, |
| | | -1.441366802710014, |
| | | -0.6157610843576061, |
| | | -0.22328440991164772, |
| | | -0.7824253795094558, |
| | | -0.10726568280809175, |
| | | -0.8069910855253192, |
| | | -0.09957683865566763, |
| | | 1.0887291305627371, |
| | | -0.023955823536952348, |
| | | 0.07284961477516132, |
| | | 0.09463086218301212, |
| | | 0.058747156873608666, |
| | | -0.6433959298494123, |
| | | 0.37385948586178824, |
| | | -0.01999436217836239, |
| | | -0.14029107562486265, |
| | | -0.4604202520601814, |
| | | -1.3669213788774006, |
| | | -0.04940168196194039, |
| | | 0.6392750488583273, |
| | | -0.08006662166282114, |
| | | -0.019184487369142886, |
| | | 0.33756671890842094, |
| | | 0.22140485963948628, |
| | | -0.06738493633682963, |
| | | -0.3885541671875799, |
| | | 0.4669199244888512, |
| | | -1.3419700417673972, |
| | | 2.7932631315574814, |
| | | -1.2814846110513476, |
| | | -0.4744268584743659, |
| | | -0.2433848392506022, |
| | | 0.03232645855177566, |
| | | -0.15571596998112794, |
| | | 0.08205464351200886, |
| | | -0.3287772018535943, |
| | | 0.028411962390341678, |
| | | -0.09729355421138718, |
| | | 0.04382733916887793, |
| | | -0.010255034858868724, |
| | | 0.029757597411547012, |
| | | 1.0928014329374562, |
| | | -0.1751909966942596, |
| | | 0.02465394967622093, |
| | | 0.03938419424419164, |
| | | 0.03381412361746058, |
| | | -0.0064922253764360715, |
| | | -0.050894779875564705, |
| | | 0.13857019332634815, |
| | | 0.14500996676404254, |
| | | 0.040078350872291835, |
| | | -0.02476675304217485, |
| | | 0.041618190161586695, |
| | | 0.061737096194957854, |
| | | 0.0862753523493927, |
| | | 0.02519641090613029, |
| | | 0.0405042150462112, |
| | | -0.19530753089652092, |
| | | -0.06941471386002551, |
| | | 0.09973912155584908, |
| | | -0.15187692330851477, |
| | | 0.17305192346024123, |
| | | 0.008088663702971012, |
| | | 0.07644768030390117, |
| | | -0.029469970866550094, |
| | | -0.5724269567746757, |
| | | -0.24567798857346684, |
| | | -0.021824938045196755, |
| | | 0.5715739374923223, |
| | | -1.4602676331797977, |
| | | -0.4131999915617961, |
| | | -0.08544023223730611, |
| | | -1.7418879696864247, |
| | | 0.019319896771284505, |
| | | -1.0810181704590092, |
| | | -0.48286277907927755, |
| | | -0.16599605355864153, |
| | | -0.00502605542079025, |
| | | 0.12548519120822024, |
| | | 0.9503011528750561, |
| | | -0.04951375526753682, |
| | | -0.007835067090378183, |
| | | -2.856399936014646, |
| | | -1.120971762465758, |
| | | -0.08332162976575763, |
| | | 0.0700884762167023, |
| | | -0.031786118181586574, |
| | | -0.4701251374959077, |
| | | -0.3705354109054785, |
| | | -0.41625552925315334, |
| | | -0.5923785038848506, |
| | | -0.04767419888338437, |
| | | -0.07994765257250218, |
| | | 0.0335490512880645, |
| | | -0.3966906315607653, |
| | | 0.048881997593832056, |
| | | -0.04660752902420673, |
| | | -0.24265192392386947, |
| | | -0.005284911184930851, |
| | | -0.27413166008062784, |
| | | 0.04220092004251147, |
| | | -0.5672083250506104, |
| | | -0.06780319554403613, |
| | | -0.5900600028704542, |
| | | -0.06870617858298263, |
| | | -0.29929148402408023, |
| | | -0.30456004218314364, |
| | | -0.2543658040957662, |
| | | -0.0891666231867973, |
| | | -0.6274280773131814, |
| | | -0.30404242128767184, |
| | | -0.41943356465463866, |
| | | -0.6825282017585717, |
| | | -0.711478108501044, |
| | | -0.36628658877958903, |
| | | -1.5694151925210917, |
| | | -0.1396770555621419, |
| | | -0.7631086890716549, |
| | | -0.3086878790470255, |
| | | 0.0477063177613805, |
| | | -0.011851196216713865, |
| | | 0.91493503372503, |
| | | -0.15527419115756846, |
| | | -0.3803326829293085, |
| | | -0.09800191308057128, |
| | | -0.01129828045818093, |
| | | 0.017124937902426023, |
| | | 0.0547304472225099, |
| | | 0.053984123188798576, |
| | | 0.3418307185498147, |
| | | -0.00884219837989981, |
| | | -1.0013469464883427, |
| | | -1.7745306831547245, |
| | | -1.9227526296135324, |
| | | -0.7690089383857956, |
| | | -2.1433977394893304, |
| | | -0.6930165427297784, |
| | | -0.9120674339316258, |
| | | -0.06212330108148067, |
| | | 0.09901206374716909 |
| | | ], |
| | | "header": { |
| | | "parameterCategory": 2, |
| | | "refTime": "2020-07-22 23:00:00", |
| | | "nx": 81.39000000000001, |
| | | "ny": 69.69, |
| | | "parameterUnit": "m/s", |
| | | "lo2": 135.05, |
| | | "lo1": 73.66, |
| | | "dx": 20.0, |
| | | "parameterNumber": 2, |
| | | "dy": 20.0, |
| | | "la2": 106.55, |
| | | "la1": 56.86, |
| | | "parameterNumberName": "eastward_wind" |
| | | } |
| | | }, |
| | | { |
| | | "data": [ |
| | | 0.08398773327772821, |
| | | 1.246404346622167, |
| | | -0.08502560660695146, |
| | | -0.021380455291971145, |
| | | 0.0023958136631068994, |
| | | 0.05270482263946437, |
| | | 0.02159858015537795, |
| | | -0.02071735908836737, |
| | | 0.012428611092533815, |
| | | 0.04327078691113582, |
| | | 0.09553105175705173, |
| | | 0.09853575568730785, |
| | | 0.07574457057735585, |
| | | 0.061374062199660975, |
| | | 0.017140269654410435, |
| | | 0.010637221453429435, |
| | | 0.09993741660094833, |
| | | 0.09874310021238451, |
| | | 0.02925229412640953, |
| | | 0.008686926826850872, |
| | | -0.045026159002364174, |
| | | 0.09254713055458769, |
| | | -0.040896017698032305, |
| | | 0.07757472657629108, |
| | | 0.023608572986431837, |
| | | 0.08824516326884595, |
| | | -0.08032286519719438, |
| | | 0.09984468294030852, |
| | | 0.08188799735374765, |
| | | 0.024372049326640385, |
| | | 0.035924715652324364, |
| | | -0.2887243322713061, |
| | | 0.43393453076558103, |
| | | -0.2695256431035965, |
| | | -0.08565591339472262, |
| | | -0.07744264517508329, |
| | | -0.38307998888308836, |
| | | 0.009189842400342688, |
| | | -0.19862973157135028, |
| | | 0.0970881996880486, |
| | | -0.06850498979717172, |
| | | 0.032326458551777196, |
| | | 0.43606051364376897, |
| | | 1.3253884590765117, |
| | | 0.6270000676484487, |
| | | -0.0004748484815934835, |
| | | 1.4766507048384934, |
| | | 0.9064723280348049, |
| | | 0.5496715691828223, |
| | | 0.1626636831604747, |
| | | 0.5293651026533418, |
| | | 0.05991106822201271, |
| | | 0.09814252617689845, |
| | | 0.6715290539398896, |
| | | 0.3917650930443132, |
| | | 0.27866854927472784, |
| | | 0.7030764888411262, |
| | | 1.0290217607588894, |
| | | 0.9133560625510789, |
| | | -6.6686266260663976, |
| | | -0.11573280277681156, |
| | | 0.07293254388915801, |
| | | -0.0754112725191568, |
| | | -0.09463086218301264, |
| | | -0.07066496085639948, |
| | | 0.057157987001968016, |
| | | -0.4325279661956218, |
| | | 0.09587888397937167, |
| | | -0.023107667751546573, |
| | | -0.08988417180669875, |
| | | -0.8732397862328786, |
| | | -0.0954698140581215, |
| | | -0.5497707869374676, |
| | | 0.053916645641878716, |
| | | 0.09691327445382478, |
| | | -0.09191781787953729, |
| | | -0.09410953747619365, |
| | | 0.001655599487061865, |
| | | 0.0860797385069089, |
| | | -0.46999819310450386, |
| | | -0.41192110839223967, |
| | | -0.09161727889081549, |
| | | -0.09688450827530645, |
| | | -0.09092813782143572, |
| | | 0.09903242374805596, |
| | | -0.050562472022124695, |
| | | -0.09677365797286697, |
| | | -0.0914298012876014, |
| | | -0.2098853457845605, |
| | | -0.06234169952552449, |
| | | -0.007218561578844033, |
| | | 0.49387477174516575, |
| | | -0.19404389139241363, |
| | | 0.09967233076185306, |
| | | -0.06446512371936101, |
| | | -0.09555899129398913, |
| | | 0.4028987207198399, |
| | | 0.5982166964658338, |
| | | -0.09758930309887105, |
| | | -0.3558596970429818, |
| | | 0.5393823592661067, |
| | | -0.009091588053340925, |
| | | 0.05196120394328061, |
| | | 0.07015120142738093, |
| | | 0.09811595990840079, |
| | | -0.13964138046244348, |
| | | 0.3669956220172618, |
| | | -0.04978152471506486, |
| | | 0.2632520251905142, |
| | | -0.15573524580979226, |
| | | -0.3113321680204909, |
| | | -0.027627487024817692, |
| | | 0.09969258610192272, |
| | | -4.103776237264348, |
| | | 0.7281409188848079, |
| | | -0.23220335056406488, |
| | | -0.4411671967651502, |
| | | -0.0623670000156029, |
| | | -0.549677400931177, |
| | | -0.8783418464727206, |
| | | 0.4629925424520111, |
| | | -0.03305447224122762, |
| | | -0.0879043273157102, |
| | | 0.002893587418151723, |
| | | -0.09420435848553303, |
| | | -0.002726322050155898, |
| | | -0.3634273521781714, |
| | | 0.0029373862969871243, |
| | | -0.04450768266316125, |
| | | -0.004118217304537582, |
| | | -0.8467300826954474, |
| | | -0.13694514357057558, |
| | | -0.8039489573308004, |
| | | -0.14492317507568347, |
| | | -1.5051737716996398, |
| | | -0.6999359620883351, |
| | | -0.18145139181241823, |
| | | -0.9734696609064927, |
| | | -0.41880548910766957, |
| | | -0.15255229696554456, |
| | | -0.9795922099522252, |
| | | 0.3272599823649843, |
| | | 0.3958009282974245, |
| | | 0.10126822702215327, |
| | | 0.6445144692896945, |
| | | -0.28921103865553305, |
| | | 0.5610925444915346, |
| | | -0.09280953695332347, |
| | | 0.3510913394878038, |
| | | -0.35136175564430594, |
| | | -0.08788690030744167, |
| | | -0.09929526246620707, |
| | | -0.14719637924411724, |
| | | -0.19170502226171043, |
| | | 0.052213602593520925, |
| | | 0.019890325099106636, |
| | | -0.02037741050006813, |
| | | -0.09852277148881905, |
| | | 0.03812437733031266, |
| | | 0.08417668586691104, |
| | | -0.3225705501990492, |
| | | -0.09960831053587094, |
| | | -0.337519159098372, |
| | | 0.8708523092593979, |
| | | 0.9841861233091264, |
| | | -0.05537375445778989, |
| | | 1.318948452499956, |
| | | 0.025890567835896775, |
| | | -1.2070623040926176, |
| | | -0.07836258968882859, |
| | | 0.014021812740388648 |
| | | ], |
| | | "header": { |
| | | "parameterCategory": 2, |
| | | "refTime": "2020-07-22 23:00:00", |
| | | "nx": 81.39000000000001, |
| | | "ny": 69.69, |
| | | "parameterUnit": "m/s", |
| | | "lo2": 135.05, |
| | | "lo1": 73.66, |
| | | "dx": 20.0, |
| | | "parameterNumber": 3, |
| | | "dy": 20.0, |
| | | "la2": 106.55, |
| | | "la1": 56.86, |
| | | "parameterNumberName": "eastward_wind" |
| | | } |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | "header": { |
| | | "parameterUnit": "m.s-1", |
| | | "parameterNumber": 2, |
| | | "dx": 1.0, |
| | | "dy": 1.0, |
| | | "parameterNumberName": "eastward_wind", |
| | | "la1": -7.5, |
| | | "la2": -28.5, |
| | | "parameterCategory": 2, |
| | | "lo2": 156.0, |
| | | "nx": 14, |
| | | "ny": 22, |
| | | "refTime": "2017-02-01 23:00:00", |
| | | "lo1": 143.0 |
| | | }, |
| | | "data": [ |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 4.170000076293945, |
| | | 2.9800000190734863, |
| | | 2.5799999237060547, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 5.400000095367432, |
| | | 4.360000133514404, |
| | | 3.859999895095825, |
| | | 3.5799999237060547, |
| | | 3.440000057220459, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.3399999141693115, |
| | | 3.9100000858306885, |
| | | 3.9000000953674316, |
| | | 3.890000104904175, |
| | | 3.7799999713897705, |
| | | 6.46999979019165, |
| | | 5.840000152587891, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.20000000298023224, |
| | | -0.03999999910593033, |
| | | 0.9300000071525574, |
| | | 1.5199999809265137, |
| | | 2.390000104904175, |
| | | 3.930000066757202, |
| | | 4.25, |
| | | 3.069999933242798, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -1.850000023841858, |
| | | -2.4700000286102295, |
| | | -2.2899999618530273, |
| | | -1.309999942779541, |
| | | 0.2800000011920929, |
| | | 1.0299999713897705, |
| | | 0.7400000095367432, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.9000000953674316, |
| | | -3.1500000953674316, |
| | | -3.569999933242798, |
| | | -3.5999999046325684, |
| | | -2.819999933242798, |
| | | -2.509999990463257, |
| | | -2.9600000381469727, |
| | | -3.2200000286102295, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.880000114440918, |
| | | -4.5, |
| | | -4.960000038146973, |
| | | -5.090000152587891, |
| | | -4.949999809265137, |
| | | -4.679999828338623, |
| | | -4.789999961853027, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.300000190734863, |
| | | -5.590000152587891, |
| | | -5.659999847412109, |
| | | -5.489999771118164, |
| | | -5.550000190734863, |
| | | -5.400000095367432, |
| | | -5.429999828338623, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.389999866485596, |
| | | -5.800000190734863, |
| | | -6.179999828338623, |
| | | -6.059999942779541, |
| | | -5.570000171661377, |
| | | -5.880000114440918, |
| | | -6.5, |
| | | -7.239999771118164, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.210000038146973, |
| | | -6.699999809265137, |
| | | -6.789999961853027, |
| | | -7.059999942779541, |
| | | -7.670000076293945, |
| | | -7.789999961853027, |
| | | -8.130000114440918, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -7.420000076293945, |
| | | -7.489999771118164, |
| | | -7.239999771118164, |
| | | -7.889999866485596, |
| | | -8.079999923706055, |
| | | -7.909999847412109, |
| | | -7.559999942779541, |
| | | -7.360000133514404, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -7.940000057220459, |
| | | -7.260000228881836, |
| | | -7.590000152587891, |
| | | -7.920000076293945, |
| | | -7.630000114440918, |
| | | -7.710000038146973, |
| | | -7.480000019073486, |
| | | -7.21999979019165, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.539999961853027, |
| | | -7.400000095367432, |
| | | -7.519999980926514, |
| | | -7.28000020980835, |
| | | -7.769999980926514, |
| | | -7.480000019073486, |
| | | -7.389999866485596, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.760000228881836, |
| | | -6.659999847412109, |
| | | -6.889999866485596, |
| | | -7.559999942779541, |
| | | -7.389999866485596, |
| | | -7.639999866485596, |
| | | -8.069999694824219, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.710000038146973, |
| | | -6.420000076293945, |
| | | -6.880000114440918, |
| | | -7.079999923706055, |
| | | -7.380000114440918, |
| | | -7.71999979019165, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.900000095367432, |
| | | -6.510000228881836, |
| | | -6.460000038146973, |
| | | -6.710000038146973, |
| | | -6.599999904632568, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.260000228881836, |
| | | -5.71999979019165, |
| | | -5.829999923706055, |
| | | -6.059999942779541, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -4.260000228881836, |
| | | -4.5, |
| | | -5.360000133514404, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -2.859999895095825, |
| | | -2.75, |
| | | -3.869999885559082, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.8199999928474426, |
| | | -1.7699999809265137, |
| | | -2.25, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.20999999344348907, |
| | | -1.4199999570846558, |
| | | -1.25 |
| | | ] |
| | | }, |
| | | { |
| | | "header": { |
| | | "parameterUnit": "m.s-1", |
| | | "parameterNumber": 3, |
| | | "dx": 1.0, |
| | | "dy": 1.0, |
| | | "parameterNumberName": "northward_wind", |
| | | "la1": -7.5, |
| | | "la2": -28.5, |
| | | "parameterCategory": 2, |
| | | "lo2": 156.0, |
| | | "nx": 14, |
| | | "ny": 22, |
| | | "refTime": "2017-02-01 23:00:00", |
| | | "lo1": 143.0 |
| | | }, |
| | | "data": [ |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.880000114440918, |
| | | -3.759999990463257, |
| | | -3.5799999237060547, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -1.2599999904632568, |
| | | -0.25, |
| | | -1.75, |
| | | -3.430000066757202, |
| | | -4.690000057220459, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.8799999952316284, |
| | | -0.7300000190734863, |
| | | -1.1699999570846558, |
| | | -2.680000066757202, |
| | | -4.329999923706055, |
| | | -3.1700000762939453, |
| | | -1.059999942779541, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.5099999904632568, |
| | | -0.38999998569488525, |
| | | -0.550000011920929, |
| | | -1.2799999713897705, |
| | | -3.0399999618530273, |
| | | -2.75, |
| | | -0.7200000286102295, |
| | | 1.4500000476837158, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.8799999952316284, |
| | | 1.2999999523162842, |
| | | -0.5299999713897705, |
| | | -1.9700000286102295, |
| | | -1.3899999856948853, |
| | | -0.75, |
| | | -0.12999999523162842, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 1.9700000286102295, |
| | | 2.059999942779541, |
| | | 1.3700000047683716, |
| | | 0.019999999552965164, |
| | | -0.6700000166893005, |
| | | -0.47999998927116394, |
| | | 0.4399999976158142, |
| | | 1.340000033378601, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.880000114440918, |
| | | 2.5299999713897705, |
| | | 1.159999966621399, |
| | | 0.6800000071525574, |
| | | 0.6399999856948853, |
| | | 0.8799999952316284, |
| | | 1.2000000476837158, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.190000057220459, |
| | | 1.2899999618530273, |
| | | 1.3799999952316284, |
| | | 1.5700000524520874, |
| | | 1.7999999523162842, |
| | | 2.0199999809265137, |
| | | 2.2100000381469727, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 4.329999923706055, |
| | | 2.299999952316284, |
| | | 2.440000057220459, |
| | | 2.3499999046325684, |
| | | 2.259999990463257, |
| | | 1.2599999904632568, |
| | | 1.7799999713897705, |
| | | 1.600000023841858, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 2.9200000762939453, |
| | | 2.690000057220459, |
| | | 2.7799999713897705, |
| | | 2.390000104904175, |
| | | 1.5399999618530273, |
| | | 1.4500000476837158, |
| | | 1.9299999475479126, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 2.809999942779541, |
| | | 3.359999895095825, |
| | | 3.3499999046325684, |
| | | 2.3399999141693115, |
| | | 1.940000057220459, |
| | | 1.7999999523162842, |
| | | 2.359999895095825, |
| | | 3.2200000286102295, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.4200000762939453, |
| | | 2.990000009536743, |
| | | 1.3200000524520874, |
| | | 1.1799999475479126, |
| | | 1.7999999523162842, |
| | | 2.609999895095825, |
| | | 3.259999990463257, |
| | | 4.139999866485596, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.440000057220459, |
| | | 1.6299999952316284, |
| | | 1.4199999570846558, |
| | | 1.2100000381469727, |
| | | 1.7100000381469727, |
| | | 2.6700000762939453, |
| | | 2.2799999713897705, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 1.3600000143051147, |
| | | 1.4500000476837158, |
| | | 1.1799999475479126, |
| | | 1.6299999952316284, |
| | | 1.5299999713897705, |
| | | 1.9800000190734863, |
| | | 2.1500000953674316, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.1899999976158142, |
| | | -0.30000001192092896, |
| | | 0.6800000071525574, |
| | | 0.25, |
| | | 0.3700000047683716, |
| | | 1.0499999523162842, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -1.8600000143051147, |
| | | -0.9399999976158142, |
| | | -0.7300000190734863, |
| | | -0.28999999165534973, |
| | | -0.5, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.4800000190734863, |
| | | -2.9200000762939453, |
| | | -2.140000104904175, |
| | | -1.590000033378601, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -4.510000228881836, |
| | | -3.809999942779541, |
| | | -3.059999942779541, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.559999942779541, |
| | | -4.96999979019165, |
| | | -4.449999809265137, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -7.840000152587891, |
| | | -6.809999942779541, |
| | | -5.869999885559082, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -9.369999885559082, |
| | | -8.289999961853027, |
| | | -7.130000114440918 |
| | | ] |
| | | } |
| | | ] |
| | | ] |
New file |
| | |
| | | [{"header": {"parameterUnit": "m.s-1", "parameterNumber": 2, "parameterNumberName": "eastward_wind", "parameterCategory": 2, "dx": 0.001, "dy": 0.001, "nx": 10, "ny": 10, "lo1": 120.985775, "lo2": 120.990775, "la1": 31.428779, "la2": 31.433779, "refTime": "2017-02-01 23:00:00"}, "data": [0.054277625766693094, -0.2646919808406916, 0.052636928302475364, -0.04342160903868054, -0.09997129626493632, -0.08498353764431442, 0.09763965042579636, -0.034216823821091896, -0.0992246422332202, -0.09015341923682695, -0.029560415257426687, 0.01705006894798902, -0.06528981565337705, 0.07895077256817787, -0.03614154335628318, -0.09943263810113206, -0.0035373384243661586, -0.01580506755591353, -0.04055000972061569, -0.07278342738772982, -0.08928966908603604, -0.03788177168655266, 0.09125522306390045, -0.06310437224641158, -0.09717322306862278, -0.047040314195960935, 0.05956708257513828, -0.005571291461525504, -0.05739647976481327, -0.09698455140701434, 0.09332424553833607, -1.441366802710014, -0.6157610843576061, -0.22328440991164772, -0.7824253795094558, -0.10726568280809175, -0.8069910855253192, -0.09957683865566763, 1.0887291305627371, -0.023955823536952348, 0.07284961477516132, 0.09463086218301212, 0.058747156873608666, -0.6433959298494123, 0.37385948586178824, -0.01999436217836239, -0.14029107562486265, -0.4604202520601814, -1.3669213788774006, -0.04940168196194039, 0.6392750488583273, -0.08006662166282114, -0.019184487369142886, 0.33756671890842094, 0.22140485963948628, -0.06738493633682963, -0.3885541671875799, 0.4669199244888512, -1.3419700417673972, 2.7932631315574814, -1.2814846110513476, -0.4744268584743659, -0.2433848392506022, 0.03232645855177566, -0.15571596998112794, 0.08205464351200886, -0.3287772018535943, 0.028411962390341678, -0.09729355421138718, 0.04382733916887793, -0.010255034858868724, 0.029757597411547012, 1.0928014329374562, -0.1751909966942596, 0.02465394967622093, 0.03938419424419164, 0.03381412361746058, -0.0064922253764360715, -0.050894779875564705, 0.13857019332634815, 0.14500996676404254, 0.040078350872291835, -0.02476675304217485, 0.041618190161586695, 0.061737096194957854, 0.0862753523493927, 0.02519641090613029, 0.0405042150462112, -0.19530753089652092, -0.06941471386002551, 0.09973912155584908, -0.15187692330851477, 0.17305192346024123, 0.008088663702971012, 0.07644768030390117, -0.029469970866550094, -0.5724269567746757, -0.24567798857346684, -0.021824938045196755, 0.5715739374923223, -1.4602676331797977, -0.4131999915617961, -0.08544023223730611, -1.7418879696864247, 0.019319896771284505, -1.0810181704590092, -0.48286277907927755, -0.16599605355864153, -0.00502605542079025, 0.12548519120822024, 0.9503011528750561, -0.04951375526753682, -0.007835067090378183, -2.856399936014646, -1.120971762465758, -0.08332162976575763, 0.0700884762167023, -0.031786118181586574, -0.4701251374959077, -0.3705354109054785, -0.41625552925315334, -0.5923785038848506, -0.04767419888338437, -0.07994765257250218, 0.0335490512880645, -0.3966906315607653, 0.048881997593832056, -0.04660752902420673, -0.24265192392386947, -0.005284911184930851, -0.27413166008062784, 0.04220092004251147, -0.5672083250506104, -0.06780319554403613, -0.5900600028704542, -0.06870617858298263, -0.29929148402408023, -0.30456004218314364, -0.2543658040957662, -0.0891666231867973, -0.6274280773131814, -0.30404242128767184, -0.41943356465463866, -0.6825282017585717, -0.711478108501044, -0.36628658877958903, -1.5694151925210917, -0.1396770555621419, -0.7631086890716549, -0.3086878790470255, 0.0477063177613805, -0.011851196216713865, 0.91493503372503, -0.15527419115756846, -0.3803326829293085, -0.09800191308057128, -0.01129828045818093, 0.017124937902426023, 0.0547304472225099, 0.053984123188798576, 0.3418307185498147, -0.00884219837989981, -1.0013469464883427, -1.7745306831547245, -1.9227526296135324, -0.7690089383857956, -2.1433977394893304, -0.6930165427297784, -0.9120674339316258, -0.06212330108148067, 0.09901206374716909]}, {"header": {"parameterUnit": "m.s-1", "parameterNumber": 2, "parameterNumberName": "eastward_wind", "parameterCategory": 2, "dx": 0.001, "dy": 0.001, "nx": 10, "ny": 10, "lo1": 120.985775, "lo2": 120.990775, "la1": 31.428779, "la2": 31.433779, "refTime": "2017-02-01 23:00:00"}, "data": [0.08398773327772821, 1.246404346622167, -0.08502560660695146, -0.021380455291971145, 0.0023958136631068994, 0.05270482263946437, 0.02159858015537795, -0.02071735908836737, 0.012428611092533815, 0.04327078691113582, 0.09553105175705173, 0.09853575568730785, 0.07574457057735585, 0.061374062199660975, 0.017140269654410435, 0.010637221453429435, 0.09993741660094833, 0.09874310021238451, 0.02925229412640953, 0.008686926826850872, -0.045026159002364174, 0.09254713055458769, -0.040896017698032305, 0.07757472657629108, 0.023608572986431837, 0.08824516326884595, -0.08032286519719438, 0.09984468294030852, 0.08188799735374765, 0.024372049326640385, 0.035924715652324364, -0.2887243322713061, 0.43393453076558103, -0.2695256431035965, -0.08565591339472262, -0.07744264517508329, -0.38307998888308836, 0.009189842400342688, -0.19862973157135028, 0.0970881996880486, -0.06850498979717172, 0.032326458551777196, 0.43606051364376897, 1.3253884590765117, 0.6270000676484487, -0.0004748484815934835, 1.4766507048384934, 0.9064723280348049, 0.5496715691828223, 0.1626636831604747, 0.5293651026533418, 0.05991106822201271, 0.09814252617689845, 0.6715290539398896, 0.3917650930443132, 0.27866854927472784, 0.7030764888411262, 1.0290217607588894, 0.9133560625510789, -6.6686266260663976, -0.11573280277681156, 0.07293254388915801, -0.0754112725191568, -0.09463086218301264, -0.07066496085639948, 0.057157987001968016, -0.4325279661956218, 0.09587888397937167, -0.023107667751546573, -0.08988417180669875, -0.8732397862328786, -0.0954698140581215, -0.5497707869374676, 0.053916645641878716, 0.09691327445382478, -0.09191781787953729, -0.09410953747619365, 0.001655599487061865, 0.0860797385069089, -0.46999819310450386, -0.41192110839223967, -0.09161727889081549, -0.09688450827530645, -0.09092813782143572, 0.09903242374805596, -0.050562472022124695, -0.09677365797286697, -0.0914298012876014, -0.2098853457845605, -0.06234169952552449, -0.007218561578844033, 0.49387477174516575, -0.19404389139241363, 0.09967233076185306, -0.06446512371936101, -0.09555899129398913, 0.4028987207198399, 0.5982166964658338, -0.09758930309887105, -0.3558596970429818, 0.5393823592661067, -0.009091588053340925, 0.05196120394328061, 0.07015120142738093, 0.09811595990840079, -0.13964138046244348, 0.3669956220172618, -0.04978152471506486, 0.2632520251905142, -0.15573524580979226, -0.3113321680204909, -0.027627487024817692, 0.09969258610192272, -4.103776237264348, 0.7281409188848079, -0.23220335056406488, -0.4411671967651502, -0.0623670000156029, -0.549677400931177, -0.8783418464727206, 0.4629925424520111, -0.03305447224122762, -0.0879043273157102, 0.002893587418151723, -0.09420435848553303, -0.002726322050155898, -0.3634273521781714, 0.0029373862969871243, -0.04450768266316125, -0.004118217304537582, -0.8467300826954474, -0.13694514357057558, -0.8039489573308004, -0.14492317507568347, -1.5051737716996398, -0.6999359620883351, -0.18145139181241823, -0.9734696609064927, -0.41880548910766957, -0.15255229696554456, -0.9795922099522252, 0.3272599823649843, 0.3958009282974245, 0.10126822702215327, 0.6445144692896945, -0.28921103865553305, 0.5610925444915346, -0.09280953695332347, 0.3510913394878038, -0.35136175564430594, -0.08788690030744167, -0.09929526246620707, -0.14719637924411724, -0.19170502226171043, 0.052213602593520925, 0.019890325099106636, -0.02037741050006813, -0.09852277148881905, 0.03812437733031266, 0.08417668586691104, -0.3225705501990492, -0.09960831053587094, -0.337519159098372, 0.8708523092593979, 0.9841861233091264, -0.05537375445778989, 1.318948452499956, 0.025890567835896775, -1.2070623040926176, -0.07836258968882859, 0.014021812740388648]}] |
New file |
| | |
| | | [{"header": {"parameterUnit": "m.s-1", "parameterNumber": 2, "dx": 1.0, "dy": 1.0, "parameterNumberName": "eastward_wind", "la1": -7.5, "la2": -28.5, "parameterCategory": 2, "lo2": 156.0, "nx": 14, "ny": 22, "refTime": "2017-02-01 23:00:00", "lo1": 143.0}, "data": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.170000076293945, 2.9800000190734863, 2.5799999237060547, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.400000095367432, 4.360000133514404, 3.859999895095825, 3.5799999237060547, 3.440000057220459, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.3399999141693115, 3.9100000858306885, 3.9000000953674316, 3.890000104904175, 3.7799999713897705, 6.46999979019165, 5.840000152587891, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.20000000298023224, -0.03999999910593033, 0.9300000071525574, 1.5199999809265137, 2.390000104904175, 3.930000066757202, 4.25, 3.069999933242798, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.850000023841858, -2.4700000286102295, -2.2899999618530273, -1.309999942779541, 0.2800000011920929, 1.0299999713897705, 0.7400000095367432, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -3.9000000953674316, -3.1500000953674316, -3.569999933242798, -3.5999999046325684, -2.819999933242798, -2.509999990463257, -2.9600000381469727, -3.2200000286102295, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -3.880000114440918, -4.5, -4.960000038146973, -5.090000152587891, -4.949999809265137, -4.679999828338623, -4.789999961853027, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.300000190734863, -5.590000152587891, -5.659999847412109, -5.489999771118164, -5.550000190734863, -5.400000095367432, -5.429999828338623, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.389999866485596, -5.800000190734863, -6.179999828338623, -6.059999942779541, -5.570000171661377, -5.880000114440918, -6.5, -7.239999771118164, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -6.210000038146973, -6.699999809265137, -6.789999961853027, -7.059999942779541, -7.670000076293945, -7.789999961853027, -8.130000114440918, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -7.420000076293945, -7.489999771118164, -7.239999771118164, -7.889999866485596, -8.079999923706055, -7.909999847412109, -7.559999942779541, -7.360000133514404, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -7.940000057220459, -7.260000228881836, -7.590000152587891, -7.920000076293945, -7.630000114440918, -7.710000038146973, -7.480000019073486, -7.21999979019165, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -6.539999961853027, -7.400000095367432, -7.519999980926514, -7.28000020980835, -7.769999980926514, -7.480000019073486, -7.389999866485596, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -6.760000228881836, -6.659999847412109, -6.889999866485596, -7.559999942779541, -7.389999866485596, -7.639999866485596, -8.069999694824219, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.710000038146973, -6.420000076293945, -6.880000114440918, -7.079999923706055, -7.380000114440918, -7.71999979019165, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.900000095367432, -6.510000228881836, -6.460000038146973, -6.710000038146973, -6.599999904632568, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.260000228881836, -5.71999979019165, -5.829999923706055, -6.059999942779541, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -4.260000228881836, -4.5, -5.360000133514404, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.859999895095825, -2.75, -3.869999885559082, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.8199999928474426, -1.7699999809265137, -2.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.20999999344348907, -1.4199999570846558, -1.25]}, {"header": {"parameterUnit": "m.s-1", "parameterNumber": 3, "dx": 1.0, "dy": 1.0, "parameterNumberName": "northward_wind", "la1": -7.5, "la2": -28.5, "parameterCategory": 2, "lo2": 156.0, "nx": 14, "ny": 22, "refTime": "2017-02-01 23:00:00", "lo1": 143.0}, "data": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -3.880000114440918, -3.759999990463257, -3.5799999237060547, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.2599999904632568, -0.25, -1.75, -3.430000066757202, -4.690000057220459, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.8799999952316284, -0.7300000190734863, -1.1699999570846558, -2.680000066757202, -4.329999923706055, -3.1700000762939453, -1.059999942779541, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5099999904632568, -0.38999998569488525, -0.550000011920929, -1.2799999713897705, -3.0399999618530273, -2.75, -0.7200000286102295, 1.4500000476837158, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8799999952316284, 1.2999999523162842, -0.5299999713897705, -1.9700000286102295, -1.3899999856948853, -0.75, -0.12999999523162842, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.9700000286102295, 2.059999942779541, 1.3700000047683716, 0.019999999552965164, -0.6700000166893005, -0.47999998927116394, 0.4399999976158142, 1.340000033378601, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.880000114440918, 2.5299999713897705, 1.159999966621399, 0.6800000071525574, 0.6399999856948853, 0.8799999952316284, 1.2000000476837158, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.190000057220459, 1.2899999618530273, 1.3799999952316284, 1.5700000524520874, 1.7999999523162842, 2.0199999809265137, 2.2100000381469727, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.329999923706055, 2.299999952316284, 2.440000057220459, 2.3499999046325684, 2.259999990463257, 1.2599999904632568, 1.7799999713897705, 1.600000023841858, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.9200000762939453, 2.690000057220459, 2.7799999713897705, 2.390000104904175, 1.5399999618530273, 1.4500000476837158, 1.9299999475479126, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.809999942779541, 3.359999895095825, 3.3499999046325684, 2.3399999141693115, 1.940000057220459, 1.7999999523162842, 2.359999895095825, 3.2200000286102295, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.4200000762939453, 2.990000009536743, 1.3200000524520874, 1.1799999475479126, 1.7999999523162842, 2.609999895095825, 3.259999990463257, 4.139999866485596, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.440000057220459, 1.6299999952316284, 1.4199999570846558, 1.2100000381469727, 1.7100000381469727, 2.6700000762939453, 2.2799999713897705, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.3600000143051147, 1.4500000476837158, 1.1799999475479126, 1.6299999952316284, 1.5299999713897705, 1.9800000190734863, 2.1500000953674316, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1899999976158142, -0.30000001192092896, 0.6800000071525574, 0.25, 0.3700000047683716, 1.0499999523162842, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.8600000143051147, -0.9399999976158142, -0.7300000190734863, -0.28999999165534973, -0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -3.4800000190734863, -2.9200000762939453, -2.140000104904175, -1.590000033378601, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -4.510000228881836, -3.809999942779541, -3.059999942779541, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -6.559999942779541, -4.96999979019165, -4.449999809265137, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -7.840000152587891, -6.809999942779541, -5.869999885559082, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -9.369999885559082, -8.289999961853027, -7.130000114440918]}] |
New file |
| | |
| | | [ |
| | | { |
| | | "header": { |
| | | "parameterUnit": "m.s-1", |
| | | "parameterNumber": 2, |
| | | "dx": 1.0, |
| | | "dy": 1.0, |
| | | "parameterNumberName": "eastward_wind", |
| | | "la1": -7.5, |
| | | "la2": -28.5, |
| | | "parameterCategory": 2, |
| | | "lo2": 156.0, |
| | | "nx": 14, |
| | | "ny": 22, |
| | | "refTime": "2017-02-01 23:00:00", |
| | | "lo1": 143.0 |
| | | }, |
| | | "data": [ |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 4.170000076293945, |
| | | 2.9800000190734863, |
| | | 2.5799999237060547, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 5.400000095367432, |
| | | 4.360000133514404, |
| | | 3.859999895095825, |
| | | 3.5799999237060547, |
| | | 3.440000057220459, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.3399999141693115, |
| | | 3.9100000858306885, |
| | | 3.9000000953674316, |
| | | 3.890000104904175, |
| | | 3.7799999713897705, |
| | | 6.46999979019165, |
| | | 5.840000152587891, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.20000000298023224, |
| | | -0.03999999910593033, |
| | | 0.9300000071525574, |
| | | 1.5199999809265137, |
| | | 2.390000104904175, |
| | | 3.930000066757202, |
| | | 4.25, |
| | | 3.069999933242798, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -1.850000023841858, |
| | | -2.4700000286102295, |
| | | -2.2899999618530273, |
| | | -1.309999942779541, |
| | | 0.2800000011920929, |
| | | 1.0299999713897705, |
| | | 0.7400000095367432, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.9000000953674316, |
| | | -3.1500000953674316, |
| | | -3.569999933242798, |
| | | -3.5999999046325684, |
| | | -2.819999933242798, |
| | | -2.509999990463257, |
| | | -2.9600000381469727, |
| | | -3.2200000286102295, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.880000114440918, |
| | | -4.5, |
| | | -4.960000038146973, |
| | | -5.090000152587891, |
| | | -4.949999809265137, |
| | | -4.679999828338623, |
| | | -4.789999961853027, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.300000190734863, |
| | | -5.590000152587891, |
| | | -5.659999847412109, |
| | | -5.489999771118164, |
| | | -5.550000190734863, |
| | | -5.400000095367432, |
| | | -5.429999828338623, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.389999866485596, |
| | | -5.800000190734863, |
| | | -6.179999828338623, |
| | | -6.059999942779541, |
| | | -5.570000171661377, |
| | | -5.880000114440918, |
| | | -6.5, |
| | | -7.239999771118164, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.210000038146973, |
| | | -6.699999809265137, |
| | | -6.789999961853027, |
| | | -7.059999942779541, |
| | | -7.670000076293945, |
| | | -7.789999961853027, |
| | | -8.130000114440918, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -7.420000076293945, |
| | | -7.489999771118164, |
| | | -7.239999771118164, |
| | | -7.889999866485596, |
| | | -8.079999923706055, |
| | | -7.909999847412109, |
| | | -7.559999942779541, |
| | | -7.360000133514404, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -7.940000057220459, |
| | | -7.260000228881836, |
| | | -7.590000152587891, |
| | | -7.920000076293945, |
| | | -7.630000114440918, |
| | | -7.710000038146973, |
| | | -7.480000019073486, |
| | | -7.21999979019165, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.539999961853027, |
| | | -7.400000095367432, |
| | | -7.519999980926514, |
| | | -7.28000020980835, |
| | | -7.769999980926514, |
| | | -7.480000019073486, |
| | | -7.389999866485596, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.760000228881836, |
| | | -6.659999847412109, |
| | | -6.889999866485596, |
| | | -7.559999942779541, |
| | | -7.389999866485596, |
| | | -7.639999866485596, |
| | | -8.069999694824219, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.710000038146973, |
| | | -6.420000076293945, |
| | | -6.880000114440918, |
| | | -7.079999923706055, |
| | | -7.380000114440918, |
| | | -7.71999979019165, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.900000095367432, |
| | | -6.510000228881836, |
| | | -6.460000038146973, |
| | | -6.710000038146973, |
| | | -6.599999904632568, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -5.260000228881836, |
| | | -5.71999979019165, |
| | | -5.829999923706055, |
| | | -6.059999942779541, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -4.260000228881836, |
| | | -4.5, |
| | | -5.360000133514404, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -2.859999895095825, |
| | | -2.75, |
| | | -3.869999885559082, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.8199999928474426, |
| | | -1.7699999809265137, |
| | | -2.25, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.20999999344348907, |
| | | -1.4199999570846558, |
| | | -1.25 |
| | | ] |
| | | }, |
| | | { |
| | | "header": { |
| | | "parameterUnit": "m.s-1", |
| | | "parameterNumber": 3, |
| | | "dx": 1.0, |
| | | "dy": 1.0, |
| | | "parameterNumberName": "northward_wind", |
| | | "la1": -7.5, |
| | | "la2": -28.5, |
| | | "parameterCategory": 2, |
| | | "lo2": 156.0, |
| | | "nx": 14, |
| | | "ny": 22, |
| | | "refTime": "2017-02-01 23:00:00", |
| | | "lo1": 143.0 |
| | | }, |
| | | "data": [ |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.880000114440918, |
| | | -3.759999990463257, |
| | | -3.5799999237060547, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -1.2599999904632568, |
| | | -0.25, |
| | | -1.75, |
| | | -3.430000066757202, |
| | | -4.690000057220459, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.8799999952316284, |
| | | -0.7300000190734863, |
| | | -1.1699999570846558, |
| | | -2.680000066757202, |
| | | -4.329999923706055, |
| | | -3.1700000762939453, |
| | | -1.059999942779541, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.5099999904632568, |
| | | -0.38999998569488525, |
| | | -0.550000011920929, |
| | | -1.2799999713897705, |
| | | -3.0399999618530273, |
| | | -2.75, |
| | | -0.7200000286102295, |
| | | 1.4500000476837158, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.8799999952316284, |
| | | 1.2999999523162842, |
| | | -0.5299999713897705, |
| | | -1.9700000286102295, |
| | | -1.3899999856948853, |
| | | -0.75, |
| | | -0.12999999523162842, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 1.9700000286102295, |
| | | 2.059999942779541, |
| | | 1.3700000047683716, |
| | | 0.019999999552965164, |
| | | -0.6700000166893005, |
| | | -0.47999998927116394, |
| | | 0.4399999976158142, |
| | | 1.340000033378601, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.880000114440918, |
| | | 2.5299999713897705, |
| | | 1.159999966621399, |
| | | 0.6800000071525574, |
| | | 0.6399999856948853, |
| | | 0.8799999952316284, |
| | | 1.2000000476837158, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.190000057220459, |
| | | 1.2899999618530273, |
| | | 1.3799999952316284, |
| | | 1.5700000524520874, |
| | | 1.7999999523162842, |
| | | 2.0199999809265137, |
| | | 2.2100000381469727, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 4.329999923706055, |
| | | 2.299999952316284, |
| | | 2.440000057220459, |
| | | 2.3499999046325684, |
| | | 2.259999990463257, |
| | | 1.2599999904632568, |
| | | 1.7799999713897705, |
| | | 1.600000023841858, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 2.9200000762939453, |
| | | 2.690000057220459, |
| | | 2.7799999713897705, |
| | | 2.390000104904175, |
| | | 1.5399999618530273, |
| | | 1.4500000476837158, |
| | | 1.9299999475479126, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 2.809999942779541, |
| | | 3.359999895095825, |
| | | 3.3499999046325684, |
| | | 2.3399999141693115, |
| | | 1.940000057220459, |
| | | 1.7999999523162842, |
| | | 2.359999895095825, |
| | | 3.2200000286102295, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.4200000762939453, |
| | | 2.990000009536743, |
| | | 1.3200000524520874, |
| | | 1.1799999475479126, |
| | | 1.7999999523162842, |
| | | 2.609999895095825, |
| | | 3.259999990463257, |
| | | 4.139999866485596, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 3.440000057220459, |
| | | 1.6299999952316284, |
| | | 1.4199999570846558, |
| | | 1.2100000381469727, |
| | | 1.7100000381469727, |
| | | 2.6700000762939453, |
| | | 2.2799999713897705, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 1.3600000143051147, |
| | | 1.4500000476837158, |
| | | 1.1799999475479126, |
| | | 1.6299999952316284, |
| | | 1.5299999713897705, |
| | | 1.9800000190734863, |
| | | 2.1500000953674316, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -0.1899999976158142, |
| | | -0.30000001192092896, |
| | | 0.6800000071525574, |
| | | 0.25, |
| | | 0.3700000047683716, |
| | | 1.0499999523162842, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -1.8600000143051147, |
| | | -0.9399999976158142, |
| | | -0.7300000190734863, |
| | | -0.28999999165534973, |
| | | -0.5, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -3.4800000190734863, |
| | | -2.9200000762939453, |
| | | -2.140000104904175, |
| | | -1.590000033378601, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -4.510000228881836, |
| | | -3.809999942779541, |
| | | -3.059999942779541, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -6.559999942779541, |
| | | -4.96999979019165, |
| | | -4.449999809265137, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -7.840000152587891, |
| | | -6.809999942779541, |
| | | -5.869999885559082, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | 0.0, |
| | | -9.369999885559082, |
| | | -8.289999961853027, |
| | | -7.130000114440918 |
| | | ] |
| | | } |
| | | ] |
New file |
| | |
| | | [ |
| | | { |
| | | "header": { |
| | | "parameterUnit": "m.s-1", |
| | | "parameterNumber": 2, |
| | | "parameterNumberName": "eastward_wind", |
| | | "parameterCategory": 2, |
| | | "dx": 0.001, |
| | | "dy": 0.001, |
| | | "nx": 10, |
| | | "ny": 10, |
| | | "lo1": 120.985775, |
| | | "lo2": 120.990775, |
| | | "la1": 31.428779, |
| | | "la2": 31.433779, |
| | | "refTime": "2017-02-01 23:00:00" |
| | | }, |
| | | "data": [ |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | -0.0286907310798898, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991, |
| | | 0.092231364974991 |
| | | |
| | | ] |
| | | }, |
| | | { |
| | | "header": { |
| | | "parameterUnit": "m.s-1", |
| | | "parameterNumber": 3, |
| | | "parameterNumberName": "northward_wind", |
| | | "parameterCategory": 2, |
| | | "dx": 0.001, |
| | | "dy": 0.001, |
| | | "nx": 10, |
| | | "ny": 10, |
| | | "lo1": 120.985775, |
| | | "lo2": 120.990775, |
| | | "la1": 31.428779, |
| | | "la2": 31.433779, |
| | | "refTime": "2017-02-01 23:00:00" |
| | | }, |
| | | "data": [ |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | 0.0389795067965392, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316, |
| | | -0.0386442145068316 |
| | | |
| | | ] |
| | | } |
| | | ] |
New file |
| | |
| | | // A custom Nightwatch assertion. |
| | | // The assertion name is the filename. |
| | | // Example usage: |
| | | // |
| | | // browser.assert.elementCount(selector, count) |
| | | // |
| | | // For more information on custom assertions see: |
| | | // http://nightwatchjs.org/guide#writing-custom-assertions |
| | | |
| | | exports.assertion = function (selector, count) { |
| | | this.message = 'Testing if element <' + selector + '> has count: ' + count |
| | | this.expected = count |
| | | this.pass = function (val) { |
| | | return val === this.expected |
| | | } |
| | | this.value = function (res) { |
| | | return res.value |
| | | } |
| | | this.command = function (cb) { |
| | | var self = this |
| | | return this.api.execute(function (selector) { |
| | | return document.querySelectorAll(selector).length |
| | | }, [selector], function (res) { |
| | | cb.call(self, res) |
| | | }) |
| | | } |
| | | } |
New file |
| | |
| | | require('babel-register') |
| | | var config = require('../../config') |
| | | |
| | | // http://nightwatchjs.org/gettingstarted#settings-file |
| | | module.exports = { |
| | | src_folders: ['test/e2e/specs'], |
| | | output_folder: 'test/e2e/reports', |
| | | custom_assertions_path: ['test/e2e/custom-assertions'], |
| | | |
| | | selenium: { |
| | | start_process: true, |
| | | server_path: require('selenium-server').path, |
| | | host: '127.0.0.1', |
| | | port: 4444, |
| | | cli_args: { |
| | | 'webdriver.chrome.driver': require('chromedriver').path |
| | | } |
| | | }, |
| | | |
| | | test_settings: { |
| | | default: { |
| | | selenium_port: 4444, |
| | | selenium_host: 'localhost', |
| | | silent: true, |
| | | globals: { |
| | | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port) |
| | | } |
| | | }, |
| | | |
| | | chrome: { |
| | | desiredCapabilities: { |
| | | browserName: 'chrome', |
| | | javascriptEnabled: true, |
| | | acceptSslCerts: true |
| | | } |
| | | }, |
| | | |
| | | firefox: { |
| | | desiredCapabilities: { |
| | | browserName: 'firefox', |
| | | javascriptEnabled: true, |
| | | acceptSslCerts: true |
| | | } |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | // 1. start the dev server using production config |
| | | process.env.NODE_ENV = 'testing' |
| | | |
| | | const webpack = require('webpack') |
| | | const DevServer = require('webpack-dev-server') |
| | | |
| | | const webpackConfig = require('../../build/webpack.prod.conf') |
| | | const devConfigPromise = require('../../build/webpack.dev.conf') |
| | | |
| | | let server |
| | | |
| | | devConfigPromise.then(devConfig => { |
| | | const devServerOptions = devConfig.devServer |
| | | const compiler = webpack(webpackConfig) |
| | | server = new DevServer(compiler, devServerOptions) |
| | | const port = devServerOptions.port |
| | | const host = devServerOptions.host |
| | | return server.listen(port, host) |
| | | }) |
| | | .then(() => { |
| | | // 2. run the nightwatch test suite against it |
| | | // to run in additional browsers: |
| | | // 1. add an entry in test/e2e/nightwatch.conf.js under "test_settings" |
| | | // 2. add it to the --env flag below |
| | | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox` |
| | | // For more information on Nightwatch's config file, see |
| | | // http://nightwatchjs.org/guide#settings-file |
| | | let opts = process.argv.slice(2) |
| | | if (opts.indexOf('--config') === -1) { |
| | | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js']) |
| | | } |
| | | if (opts.indexOf('--env') === -1) { |
| | | opts = opts.concat(['--env', 'chrome']) |
| | | } |
| | | |
| | | const spawn = require('cross-spawn') |
| | | const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' }) |
| | | |
| | | runner.on('exit', function (code) { |
| | | server.close() |
| | | process.exit(code) |
| | | }) |
| | | |
| | | runner.on('error', function (err) { |
| | | server.close() |
| | | throw err |
| | | }) |
| | | }) |
New file |
| | |
| | | // For authoring Nightwatch tests, see |
| | | // http://nightwatchjs.org/guide#usage |
| | | |
| | | module.exports = { |
| | | 'default e2e tests': function (browser) { |
| | | // automatically uses dev Server port from /config.index.js |
| | | // default: http://localhost:8080 |
| | | // see nightwatch.conf.js |
| | | const devServer = browser.globals.devServerURL |
| | | |
| | | browser |
| | | .url(devServer) |
| | | .waitForElementVisible('#app', 5000) |
| | | .assert.elementPresent('.hello') |
| | | .assert.containsText('h1', 'Welcome to Your Vue.js App') |
| | | .assert.elementCount('img', 1) |
| | | .end() |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "env": { |
| | | "jest": true |
| | | }, |
| | | "globals": { |
| | | } |
| | | } |
New file |
| | |
| | | const path = require('path') |
| | | |
| | | module.exports = { |
| | | rootDir: path.resolve(__dirname, '../../'), |
| | | moduleFileExtensions: [ |
| | | 'js', |
| | | 'json', |
| | | 'vue' |
| | | ], |
| | | moduleNameMapper: { |
| | | '^@/(.*)$': '<rootDir>/src/$1' |
| | | }, |
| | | transform: { |
| | | '^.+\\.js$': '<rootDir>/node_modules/babel-jest', |
| | | '.*\\.(vue)$': '<rootDir>/node_modules/vue-jest' |
| | | }, |
| | | testPathIgnorePatterns: [ |
| | | '<rootDir>/test/e2e' |
| | | ], |
| | | snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'], |
| | | setupFiles: ['<rootDir>/test/unit/setup'], |
| | | mapCoverage: true, |
| | | coverageDirectory: '<rootDir>/test/unit/coverage', |
| | | collectCoverageFrom: [ |
| | | 'src/**/*.{js,vue}', |
| | | '!src/main.js', |
| | | '!src/router/index.js', |
| | | '!**/node_modules/**' |
| | | ] |
| | | } |
New file |
| | |
| | | import Vue from 'vue' |
| | | |
| | | Vue.config.productionTip = false |
New file |
| | |
| | | import Vue from 'vue' |
| | | import HelloWorld from '@/components/HelloWorld' |
| | | |
| | | describe('HelloWorld.vue', () => { |
| | | it('should render correct contents', () => { |
| | | const Constructor = Vue.extend(HelloWorld) |
| | | const vm = new Constructor().$mount() |
| | | expect(vm.$el.querySelector('.hello h1').textContent) |
| | | .toEqual('Welcome to Your Vue.js App') |
| | | }) |
| | | }) |
New file |
| | |
| | | Subproject commit 0000000000000000000000000000000000000000 |
| | | Subproject commit 7900c31e73762baa95899f2d448d2832d1e80d60 |