Skip to content

Commit

Permalink
version 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardsandrine committed Jun 11, 2024
1 parent a55a6c2 commit 0b87a63
Show file tree
Hide file tree
Showing 212 changed files with 4,800 additions and 835 deletions.
3 changes: 3 additions & 0 deletions assets/csv/GDPS_Variables-List_en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,12 @@ Temperature,TMP,970 mb,K
Temperature,TMP,985 mb,K
Thickness between 2 isobaric levels,THICK,1000-500 mb,m
Total cloud cover,TCDC,Surface,%
Total column integrated ozone,TCIOZ,Surface,DU
Total precipitation,APCP,Surface,kg/m<sup>2</sup>
Total totals index,TOTALX,Surface,K
Upward longwave radiation flux,ULWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
UV Index,UVI,Surface,Numeric
UV Index under clear sky,UVIUCS,Surface,Numeric
Vertical velocity (pressure),VVEL,250 mb,Pa/s
Vertical velocity (pressure),VVEL,500 mb,Pa/s
Vertical velocity (pressure),VVEL,600 mb,Pa/s
Expand Down
3 changes: 3 additions & 0 deletions assets/csv/GDPS_Variables-List_fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ Indice K,KX,Surface,°C
Indice Showalter,SHWINX,500 mb,K
Indice Total-Total,TOTALX,Surface,K
Indice de soulèvement,4LFTX,500 mb,K
Indice UV,UVI,Surface,Numérique
Indice UV par ciel clair,UVIUCS,Surface,Numérique
Ozone totale intégrée dans la colonne,TCIOZ,Surface,DU
Pression réduite au niveau moyen de la mer,PRMSL,Niveau moyen de la mer,Pa
Pression,PRES,Surface,Pa
Pression,PRES,Unité de tourbillon potentiel 1,Pa
Expand Down
2 changes: 2 additions & 0 deletions assets/csv/HRDPS-North_Variables-List_en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ Total precipitation,APCP,Surface,kg/m<sup>2</sup>
Universal thermal climate index,UTHCIDX,Surface,K
Upward longwave radiation flux,ULWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
Upward shortwave radiation flux,USWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
UV Index,UVI,Surface,Numeric
UV Index under clear sky,UVIUCS,Surface,Numeric
Ventilation index,VI,Surface,0 to 100
Vertical velocity (pressure),VVEL,1000 mb,Pa/s
Vertical velocity (pressure),VVEL,250 mb,Pa/s
Expand Down
1 change: 1 addition & 0 deletions assets/csv/HRDPS-North_Variables-List_fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ Indice climatique thermique universel,UTHCIDX,Surface,K
Indice d'intensité des précipitations totales,TPCPNINTSTI,Surface,0=Aucune intensité; 1=Faible; 2=Modéré; 3=Fort
Indice de soulèvement,4LFTX,500 mb,K
Indice de ventilation,VI,Surface,0 à 100
Indice UV,UVI,Surface,Numérique
Masque terre/eau,WTRLANMASK,Surface,Fraction
Orographie du modèle,ORGPHY,Surface,m
Pression réduite au niveau moyen de la mer,PRMSL,Niveau moyen de la mer,Pa
Expand Down
2 changes: 2 additions & 0 deletions assets/csv/HRDPS_Variables-List_en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ Total precipitation,APCP,Surface,kg/m<sup>2</sup>
Universal thermal climate index,UTHCIDX,Surface,K
Upward longwave radiation flux,ULWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
Upward shortwave radiation flux,USWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
UV Index,UVI,Surface,Numeric
UV Index under clear sky,UVIUCS,Surface,Numeric
Ventilation index,VI,Surface,0 to 100
Vertical velocity (pressure),VVEL,1000 mb,Pa/s
Vertical velocity (pressure),VVEL,250 mb,Pa/s
Expand Down
2 changes: 2 additions & 0 deletions assets/csv/HRDPS_Variables-List_fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ Indice climatique thermique universel,UTHCIDX,Surface,K
Indice d'intensité des précipitations totales,TPCPNINTSTI,Surface,0=Aucune intensité; 1=Faible; 2=Modéré; 3=Fort
Indice de soulèvement,4LFTX,500 mb,K
Indice de ventilation,VI,Surface,0 à 100
Indice UV,UVI,Surface,Numérique
Indice UV par ciel clair,UVIUCS,Surface,Numérique
Masque terre/eau,WTRLANMASK,Surface,Fraction
Orographie du modèle,ORGPHY,Surface,m
Pression réduite au niveau moyen de la mer,PRMSL,Niveau moyen de la mer,Pa
Expand Down
2 changes: 2 additions & 0 deletions assets/csv/RDPS_Variables-List_en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ Total precipitation,APCP,Surface,kg/m<sup>2</sup>
Total totals index,TOTALX,Surface,K
Upward longwave radiation flux,ULWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
Upward shortwave radiation flux,USWRF,Nominal Top of Atmosphere,W/m<sup>2</sup>
UV Index,UVI,Surface,Numeric
UV Index under clear sky,UVIUCS,Surface,Numeric
Vertical velocity (pressure),VVEL,250 mb,Pa/s
Vertical velocity (pressure),VVEL,500 mb,Pa/s
Vertical velocity (pressure),VVEL,700 mb,Pa/s
Expand Down
2 changes: 2 additions & 0 deletions assets/csv/RDPS_Variables-List_fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ Indice Showalter,SHWINX,500 mb,K
Indice Total-Total,TOTALX,Surface,K
Indice de refroidissement éolien,WCF,Surface,°C
Indice de soulèvement,4LFTX,500 mb,K
Indice UV,UVI,Surface,Numérique
Indice UV par ciel clair,UVIUCS,Surface,Numérique
Pression réduite au niveau moyen de la mer,PRMSL,Niveau moyen de la mer,Pa
Pression,PRES,Surface,Pa
Pression,PRES,Unité de tourbillon potentiel 1,Pa
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>

<!--
MkDocs version : 1.3.0
Build Date UTC : 2024-05-28 17:27:18.256368+00:00
Build Date UTC : 2024-06-11 03:15:53.374831+00:00
-->
112 changes: 112 additions & 0 deletions js/candcsu6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
const parser = new DOMParser();

let legendContainer = document.getElementById("legend-popup");
let legendContent = document.getElementById("legend-popup-content");

let layers = [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
new ol.layer.Tile({
source: new ol.source.TileWMS({
format: 'image/png',
url: 'https://geo.weather.gc.ca/geomet-climate',
params: { 'LAYERS': 'CanDCSU6-SSP585_AirTempAnomaly-Pct50_2071-2100_P0Y', 'TILED': true },
crossOrigin: 'Anonymous'
})
}),
]

// **************************** Add legend button control **************************************
class LegendSwitchControl extends ol.control.Control {

constructor(opt_options) {
const options = opt_options || {};

const button = document.createElement('button');
button.innerHTML = '<i class="fa fa-paint-brush"></i>';

const element = document.createElement('div');
element.className = 'legend-switch ol-unselectable ol-control';
element.appendChild(button);

super({
element: element,
target: options.target,
});
button.addEventListener('click', this.handleLegendSwitch.bind(this), false);
}

handleLegendSwitch() {
legendContainer.hidden = !legendContainer.hidden;
}
}

// **************************** Add legend button control end ***********************************

let map = new ol.Map({
controls: ol.control.defaults.defaults().extend([new LegendSwitchControl(), new ol.control.ScaleLine()]),
target: 'map',
layers: layers,
view: new ol.View({
center: ol.proj.fromLonLat([-97, 57]),
zoom: 3
})
});

function exportMapFunction(e) {
map.once('rendercomplete', function () {
const mapCanvas = document.createElement('canvas');
const size = map.getSize();
mapCanvas.width = size[0];
mapCanvas.height = size[1];
const mapContext = mapCanvas.getContext('2d');
Array.prototype.forEach.call(
map.getViewport().querySelectorAll('.ol-layer canvas, canvas.ol-layer'),
function (canvas) {
if (canvas.width > 0) {
const opacity = canvas.parentNode.style.opacity || canvas.style.opacity;
mapContext.globalAlpha = opacity === '' ? 1 : Number(opacity);
let matrix;
const transform = canvas.style.transform;
if (transform) {
// Get the transform parameters from the style's transform matrix
matrix = transform
.match(/^matrix\(([^\(]*)\)$/)[1]
.split(',')
.map(Number);
} else {
matrix = [
parseFloat(canvas.style.width) / canvas.width,
0,
0,
parseFloat(canvas.style.height) / canvas.height,
0,
0,
];
}
// Apply the transform to the export map context
CanvasRenderingContext2D.prototype.setTransform.apply(
mapContext,
matrix
);
const backgroundColor = canvas.parentNode.style.backgroundColor;
if (backgroundColor) {
mapContext.fillStyle = backgroundColor;
mapContext.fillRect(0, 0, canvas.width, canvas.height);
}
mapContext.drawImage(canvas, 0, 0);
}
}
);
mapContext.globalAlpha = 1;
mapContext.setTransform(1, 0, 0, 1, 0, 0);
const link = document.getElementById('image-download');
link.href = mapCanvas.toDataURL();
link.click();
});
map.renderSync();
};

let exportButton = document.getElementById('exportmap');
exportButton.addEventListener('click', exportMapFunction, false);
19 changes: 19 additions & 0 deletions js/candcsu6_ie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
new ol.layer.Tile({
source: new ol.source.TileWMS({
format: 'image/png',
url: 'https://geo.weather.gc.ca/geomet-climate/',
params: {'LAYERS': 'CanDCSU6-SSP585_AirTempAnomaly-Pct50_2071-2100_P0Y', 'TILED': true},
})
})
],
view: new ol.View({
center: ol.proj.fromLonLat([-97, 57]),
zoom: 3
})
});
4 changes: 2 additions & 2 deletions msc-data-themes/cold_spells_en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ <h5 id="others">&emsp;<span class="badge badge-info">Others</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/cold_spells_theme_ie.js";
js.src = "../../js/cold_spells_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/cold_spells_theme.js";
js.src = "../../js/cold_spells_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/cold_spells_fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ <h5 id="autres">&emsp;<span class="badge badge-info">Autres</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/cold_spells_theme_ie.js";
js.src = "../../js/cold_spells_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/cold_spells_theme.js";
js.src = "../../js/cold_spells_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/drought_en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ <h5 id="others">&emsp;<span class="badge badge-info">Others</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/drought_theme_ie.js";
js.src = "../../js/drought_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/drought_theme.js";
js.src = "../../js/drought_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/drought_fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,12 @@ <h5 id="autres">&emsp;<span class="badge badge-info">Autres</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/drought_theme_ie.js";
js.src = "../../js/drought_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/drought_theme.js";
js.src = "../../js/drought_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/floods_en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ <h5 id="others">&emsp;<span class="badge badge-info">Others</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/floods_theme_ie.js";
js.src = "../../js/floods_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/floods_theme.js";
js.src = "../../js/floods_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/floods_fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ <h5 id="autres">&emsp;<span class="badge badge-info">Autres</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/floods_theme_ie.js";
js.src = "../../js/floods_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/floods_theme.js";
js.src = "../../js/floods_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/hurricanes_en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ <h5 id="autres">&emsp;<span class="badge badge-info">Autres</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/hurricane_theme_ie.js";
js.src = "../../js/hurricane_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/hurricane_theme.js";
js.src = "../../js/hurricane_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/hurricanes_fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ <h5 id="autres">&emsp;<span class="badge badge-info">Autres</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/hurricane_theme_ie.js";
js.src = "../../js/hurricane_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/hurricane_theme.js";
js.src = "../../js/hurricane_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/ice_storms_en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ <h5 id="others">&emsp;<span class="badge badge-info">Others</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/ice_storms_theme_ie.js";
js.src = "../../js/ice_storms_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/ice_storms_theme.js";
js.src = "../../js/ice_storms_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
4 changes: 2 additions & 2 deletions msc-data-themes/ice_storms_fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ <h5 id="autres">&emsp;<span class="badge badge-info">Autres</span></h5>
js.type = "text/javascript";
if (isIE())
{
js.src = "../../../js/ice_storms_theme_ie.js";
js.src = "../../js/ice_storms_theme_ie.js";
document.getElementById("controller").setAttribute("hidden", true);
}
else
{
js.src = "../../../js/ice_storms_theme.js";
js.src = "../../js/ice_storms_theme.js";
}
head.appendChild(js);
</script></div>
Expand Down
2 changes: 1 addition & 1 deletion msc-data-themes/readme_en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@

<p><a href="../readme_fr/">En français</a></p>
<p><img alt="ECCC logo" src="../../img_eccc-logo.png" /></p>
<p><a href="../../readme_en/">TOC</a> &gt; MSC Datasets by themes</p>
<p><a href="../../readme_en/">TOC</a> &gt; MSC Datasets by theme</p>
<h1 id="datasets-by-theme">Datasets by theme</h1>
<p><strong><a href="../../msc-data/readme_en/">Meteorological Service of Canada (MSC) open data</a></strong> is a valuable resource available to the private sector, academia and the general public. It encompasses a wide range of meteorological, climatological, hydrological and environmental data. By adopting open and common standards, these services offer fast, free access to thousands of datasets and products, both real-time and archived. This data can be easily integrated into users' specific applications and decision support systems.</p>
<p>This page offers a number of themes and highlights its associated datasets available through the MSC Open Data services, allowing you to quickly access and visualize data suited to your specific needs and interests.</p>
Expand Down
6 changes: 3 additions & 3 deletions msc-data-themes/readme_fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
<ul class="nav flex-column">

<li class="nav-item" data-level="1"><a href="#jeux-de-donnees-par-themes" class="nav-link">Jeux de données par thèmes</a>
<li class="nav-item" data-level="1"><a href="#jeux-de-donnees-par-theme" class="nav-link">Jeux de données par thème</a>
<ul class="nav flex-column">
</ul>
</li>
Expand All @@ -133,8 +133,8 @@

<p><a href="../readme_en/">In English</a></p>
<p><img alt="ECCC logo" src="../../img_eccc-logo.png" /></p>
<p><a href="../../readme_fr/">TOC</a> &gt; MSC Données par thèmes</p>
<h1 id="jeux-de-donnees-par-themes">Jeux de données par thèmes</h1>
<p><a href="../../readme_fr/">TOC</a> &gt; Données du SMC par thème</p>
<h1 id="jeux-de-donnees-par-theme">Jeux de données par thème</h1>
<p>Les <strong><a href="../../msc-data/readme_fr/">données ouvertes du Service météorologique du Canada (SMC)</a></strong> représentent une ressource précieuse mise à la disposition du secteur privé, des universitaires et du grand public. Elles englobent un large éventail de données météorologiques, climatiques, hydrologiques et environnementales. Grâce à l'adoption de standards ouverts, ces services offrent un accès rapide et gratuit à des milliers de jeux de données et de produits, qu'ils soient en temps réel ou archivés. Ces données sont facilement intégrables dans les applications spécifiques des utilisateurs ainsi que dans leurs systèmes d'aide à la décision.</p>
<p>Pour une visualisation rapide des jeux de données pertinents, cette page présente différentes thématiques comprenant de multiples jeux de données consultables pour chaque thème.
</br></br></p>
Expand Down
Loading

0 comments on commit 0b87a63

Please sign in to comment.