diff --git a/metar.html b/metar.html
index fa37cfb..d9bac5f 100644
--- a/metar.html
+++ b/metar.html
@@ -152,13 +152,20 @@
function decodeClouds(code) {
const coverMap = {
'SKC': 'Sky clear',
+ 'CLR': 'Sky clear',
'FEW': 'Few clouds',
'SCT': 'Scattered clouds',
'BKN': 'Broken clouds',
'OVC': 'Overcast clouds'
};
- const cover = coverMap[code.substring(0, 3)];
+ const coverType = code.substring(0, 3);
+ const cover = coverMap[coverType];
if (!cover) return `${code}: Unknown cloud information`;
+
+ if (coverType === 'SKC' || coverType === 'CLR') {
+ return `${code}: ${cover}`;
+ }
+
const alt = parseInt(code.substring(3, 6)) * 100;
return `${code}: ${cover} at ${alt.toLocaleString()} feet above ground`;
}