Skip to content

Commit

Permalink
Show at least 2000 m above the ground level in meteograms.
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrf committed Nov 10, 2023
1 parent 40f8e9f commit 2f39f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/diagrams/Meteogram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const drawMeteogram = (
forecasts.dayForecasts.map(x => x.forecasts).reduce((x, y) => x.concat(y), []); // Alternative to flatMap
const maxBoundaryLayerDepth =
flatForecasts.reduce((x, forecast) => Math.max(x, forecast.boundaryLayer.depth), -Infinity);
const airDiagramHeightAboveGroundLevel = maxBoundaryLayerDepth + 1000 /* meters */;
const airDiagramHeightAboveGroundLevel = Math.max(2000, maxBoundaryLayerDepth + 1000 /* meters */);

const pressureScale = new Scale([990, 1035 /* hPa */], [0, airDiagramHeight], false);
const pressureLevels = [990, 999, 1008, 1017, 1026, 1035];
Expand Down

0 comments on commit 2f39f4b

Please sign in to comment.