|
|
@ -605,7 +605,7 @@ export default { |
|
|
|
case 'watervapor' : |
|
|
|
initTimeLineDay() |
|
|
|
reloadWatervaporBefore(); |
|
|
|
reloadCloudRecognition('watervapor', 101, 'watervapor', drawWatervaporAfter, true); |
|
|
|
reloadCloudRecognition('watervapor', 101, 'watervapor', drawWatervaporAfter,true); |
|
|
|
break; |
|
|
|
default: |
|
|
|
throw new Error("无效的type类型"); |
|
|
@ -671,9 +671,8 @@ export default { |
|
|
|
if (options.currentElement === 'extinction') { |
|
|
|
timeMoment.add(12, 'h'); |
|
|
|
} |
|
|
|
|
|
|
|
else timeMoment.add(-1, 'h'); |
|
|
|
let timeFormat = timeMoment.format("MM月DD日HH时"); |
|
|
|
|
|
|
|
let boxes = new Array<Array<Box>>(); |
|
|
|
let index = 1; |
|
|
|
data.forEach(r => { |
|
|
@ -689,7 +688,6 @@ export default { |
|
|
|
index++; |
|
|
|
boxes.push(rows); |
|
|
|
}) |
|
|
|
|
|
|
|
return boxes; |
|
|
|
} |
|
|
|
|
|
|
@ -785,7 +783,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
let matrix = converCloudRecognition(801, result, 'backscatter'); |
|
|
|
creates.backscatterDrawer = new HeatMapDrawer(1400, 700, matrix, "backscatter_chart", 'km/sr'); |
|
|
|
creates.backscatterDrawer = new HeatMapDrawer(1400, 700, matrix, "backscatter_chart", '/km/sr'); |
|
|
|
creates.backscatterDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); |
|
|
|
creates.backscatterDrawer.setColorChart(prepareBackscatterColors()); |
|
|
|
creates.backscatterDrawer.draw(); |
|
|
@ -943,7 +941,6 @@ export default { |
|
|
|
if (creates.opticsExtinctionDrawer != null) { |
|
|
|
creates.opticsExtinctionDrawer.close(); |
|
|
|
} |
|
|
|
|
|
|
|
let matrix = converCloudRecognition(801, result, 'extinctionOptics'); |
|
|
|
creates.opticsExtinctionDrawer = new HeatMapDrawer(1400, 700, matrix, "extinction_optics_chart", '/km'); |
|
|
|
creates.opticsExtinctionDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); |
|
|
@ -1018,11 +1015,16 @@ export default { |
|
|
|
let result = new CustomeArray(callback); |
|
|
|
let time = moment(options.date); |
|
|
|
if (isDay) time.set('h', 23).add(-1, 'd'); |
|
|
|
|
|
|
|
options.timeArray = [] |
|
|
|
for (let index = 0; index < length; index++) { |
|
|
|
reloadSingleCloudRecognition(capacity, time.clone().add(-index, 'h').format('M_D_H'), element, result); |
|
|
|
options.timeArray.push(time.clone().add(-index, 'h').format('HH')) |
|
|
|
if(time.clone().add(-index, 'h').format('HH') == '00'){ |
|
|
|
reloadSingleCloudRecognition(capacity, time.clone().add(-index, 'h').add(-1,'d').format('M_D_24'), element, result); |
|
|
|
options.timeArray.push(time.clone().add(-index, 'h').format('24')) |
|
|
|
} |
|
|
|
else { |
|
|
|
reloadSingleCloudRecognition(capacity, time.clone().add(-index, 'h').format('M_D_H'), element, result); |
|
|
|
options.timeArray.push(time.clone().add(-index, 'h').format('HH')) |
|
|
|
} |
|
|
|
} |
|
|
|
options.timeArray.reverse() |
|
|
|
} |
|
|
@ -1331,7 +1333,8 @@ export default { |
|
|
|
options.times = []; |
|
|
|
options.currentTime = moment(options.date).format('YYYY-MM-DD'); |
|
|
|
let now = moment(options.date).add(1, 'd'); |
|
|
|
let day = new Date(now.year(), now.month() + 1, 0); |
|
|
|
// let day = new Date(now.year(), now.month() + 1, 0); |
|
|
|
// console.log(day.getDate()) |
|
|
|
for (let i = 0; i < 24; i++) { |
|
|
|
options.times.push({ |
|
|
|
day: now.add(-1, 'd').format('DD'), |
|
|
|