Guatemala Under the Stars: Volcanoes, Highland Lakes & Petén Night Skies

Stargazing in Guatemala changes sharply with altitude and region: volcanic summits rise above the central highlands, Lake Atitlán sits inside a steep volcanic basin, the Cuchumatanes form a remote western plateau, and Petén trades darker rural surroundings for tropical humidity and forested horizons. January–February provides the strongest shared planning window across this eight-location portfolio, with a drier seasonal pattern across much of the western highlands and Pacific lowlands while northern Petén remains more moisture-prone. The locations span high mountain camps, remote lakes, Maya Biosphere Reserve communities, accessible lakeshores and the Pacific coast.

Guatemala Stargazing Score
76/100
Selected-location portfolio using seven fixed planning factors.
Highest-Rated Location
Acatenango Volcano · 82/100
High elevation, strong rural light escape and authorized camping context.
Preferred Observing Window
January–February
A shared seasonal window for all scored locations.
Locations Assessed
8
Highlands, volcanic lakes, Petén and Pacific coast.
Strongest Sky Type
High-Elevation Rural Sky
Acatenango and the Cuchumatanes gain most from altitude and distance from dense urban centers.
Main Atmospheric Risk
Humidity & Mountain Cloud
Petén moisture and localized summit cloud create the widest observing-condition differences.

Guatemala Night-Sky Planning Map

Eight observing environments are ranked in the same order used by the location cards and comparison table.

The markers identify geographic planning centers rather than approved parking spaces or guaranteed observing pull-offs. Guatemala’s volcano trails, municipal parks, Maya Biosphere Reserve gates, lakefronts and protected coastal areas follow different access rules, so the relevant administrator, road status and legal nighttime stopping point should be checked before travel.

Guatemala Stargazing Suitability Score

76
/100

Guatemala’s score reflects a portfolio that ranges from nearly 4,000-meter volcanic terrain to humid Petén forest and a sea-level Pacific horizon. Each location is assessed with the same seven factors and weights, then each country factor is taken from the median of the eight location values. The result is an editorial planning index rather than an official sky classification or live forecast, and it does not certify legal access or clear weather.

Highest-Rated Location
Acatenango Volcano · 82/100
Preferred Observing Window
January–February
Locations Assessed
8
Factor Coverage
7/7
Method Version
2.2
Comparability Quality
C
Score Scope
Selected Location Portfolio

Artificial-Light Escape

30%78

Clear-Sky Reliability

20%85

Atmospheric Transparency Potential

15%70

Astronomical Darkness Duration

10%100

Elevation and Horizon Quality

10%78

Night Access and Legal Clarity

10%60

Dark-Sky Protection and Astronomy Support

5%25

Weighted Total: 77.5×0.30 + 85×0.20 + 70×0.15 + 100×0.10 + 77.5×0.10 + 60×0.10 + 25×0.05 = 75.8 → 76/100

The country score is the weighted total of the seven location-median factor values, not the average of the eight location overall scores.

Read the Stargazing Suitability Score methodology

Guatemala Stargazing Locations

Scores use one common January–February window. Cards remain ordered by Location Stargazing Score.

8 of 8 locations shown
Highest-Rated Location

Acatenango Volcano

Chimaltenango volcanic highlands · 3,976 m summit

Location Stargazing Score: 82/100
RemoteMountainPhotography
Light Escape85
Clear Sky85
Access70
  • CONAP places Acatenango at 3,976 m between Chimaltenango and Sacatepéquez, directly beside Volcán de Fuego.
  • Camping is restricted to authorized places; CONAP also recommends using a local guide.
  • The exposed upper mountain has broad volcanic horizons, but the strongest regional urban influence lies toward Antigua and the metropolitan corridor rather than the western highlands.
  • Cold and strong summit winds are part of the normal high-elevation planning problem.

Main trade-off: The portfolio’s strongest elevation and rural-sky combination comes with a demanding ascent, high wind exposure and the need to follow authorized camping arrangements. Current volcanic and route conditions should be checked before departure.

Todos Santos Cuchumatán High Plateau

Sierra de los Cuchumatanes · marker near the upper Chemal plateau

Location Stargazing Score: 80/100
RemoteMountainPhotography
Light Escape85
Clear Sky85
Access50

The high Cuchumatanes offer Guatemala’s strongest non-volcanic altitude option in this portfolio. CONAP describes subalpine grassland, rocky terrain and mountain formations around 3,850 m within the Todos Santos protected landscape; the planning marker is placed near the high Chemal plateau rather than in the lower municipal center.

  • The approach from Huehuetenango continues toward Chiantla and Chiabal before reaching dirt-road sections.
  • CONAP advises contacting the Chiabal tourism committee and protected-area administration before visiting.
  • The published municipal-park visitor schedule is 08:00–17:00, so the marker does not imply permission to remain inside a closed park sector after dark.
  • Rainy-season four-wheel-drive advice reinforces why the January–February window is operationally useful.

Main trade-off: Sky and terrain potential are high; legal nighttime positioning is less straightforward than on Acatenango. Arrange access or select a legal public point outside restricted visitor areas rather than treating the marker as a parking instruction.

Laguna Brava (Yolnabaj)

Huehuetenango border highlands · approximately 1,150 m

Location Stargazing Score: 76/100
RemotePhotography
Light Escape95
Clear Sky70
Access50

Laguna Brava provides the portfolio’s strongest low-light lake setting. Its distance from Guatemala’s large urban centers produces a very different planning problem from Atitlán: access, humidity and enclosing mountain terrain matter more than city glow.

  • The lake is also known as Yolnabaj and lies in remote northwestern Huehuetenango near the Mexican border.
  • CONAP’s Häk Yahx Luúm reserve page identifies Laguna Yolnabaj or Laguna Brava as a nearby destination reached through the Nentón and Yalambojoch corridor.
  • The surrounding mountain slopes limit a true all-sky horizon even when the water provides useful open sectors.
  • No direct SQM or VIIRS radiance value is assigned; the 95 light score is the disclosed remote-rural category.

Main trade-off: Remoteness helps artificial-light escape but makes nighttime logistics less certain. Local access, land permission, return transport and an approved overnight location should be resolved before carrying astronomy equipment to the lake.

Volcán San Pedro

Lake Atitlán volcanic rim · 3,020 m

Location Stargazing Score: 75/100
MountainPhotography
Light Escape70
Clear Sky85
Access70
  • CONAP gives a summit elevation of 3,020 m and an ascent time of roughly four hours.
  • The upper volcano opens views over Lake Atitlán and the Atitlán–Tolimán volcanic group.
  • Regular visitor entry is listed as 06:00–13:00, but CONAP explicitly states that entry outside those hours is possible with prior authorization from the administration.
  • Cloud-forest vegetation and lake-basin moisture keep its transparency score below Acatenango despite the summit elevation.

Main trade-off: San Pedro has excellent elevated horizons, yet astronomy after dark is an authorization-led plan rather than an assumption that a daytime trail remains open.

Uaxactún Community

Maya Biosphere Reserve · northern Petén lowlands

Location Stargazing Score: 72/100
RemotePhotography
Light Escape95
Clear Sky70
Access50

Uaxactún shifts the ranking away from Guatemala’s high elevations. Its strength is remote Petén geography; its limitations are humidity, low elevation, dense forest and a road system tied to the Tikal access corridor.

  • CONAP describes Uaxactún as a community within the Maya Biosphere Reserve north of Tikal.
  • The route continues 23 km on dirt road beyond the Tikal parking and gate area.
  • The published Tikal/Uaxactún visitor schedule is 06:00–18:00, so the archaeological park hours should not be interpreted as automatic independent night access.
  • Forest canopy makes horizon selection more important than it is on the volcanic summits.

Main trade-off: Very low settlement-light pressure can be offset by forest obstruction and humid tropical air. Overnight observing should be coordinated with the community or responsible authority rather than planned around an assumed post-gate drive.

El Remate, Lake Petén Itzá

Eastern Petén lakeshore · approximately 130 m

Location Stargazing Score: 69/100
Easy AccessPhotography
Light Escape70
Clear Sky70
Access70
  • El Remate lies on the established Flores–Tikal approach described by CONAP, making it much easier to reach than Uaxactún.
  • The Lake Petén Itzá shoreline gives useful open-water horizon sectors without requiring a summit ascent.
  • Settlement lighting lowers the artificial-light score compared with remote Uaxactún.
  • Warm, humid Petén air remains the main optical constraint in the preferred window.

Main trade-off: El Remate exchanges some darkness for easier logistics. Choose a legal lakefront position with a clear view away from nearby lamps rather than assuming every dock, hotel shoreline or roadside space permits overnight telescope use.

San Juan La Laguna, Lake Atitlán

Southwestern Lake Atitlán shore · approximately 1,600 m

Location Stargazing Score: 67/100
Easy AccessPhotography
Light Escape55
Clear Sky85
Access70

San Juan La Laguna is the practical Atitlán option rather than the portfolio’s darkest one. The reserve itself has open access, while the settled shoreline provides accommodation and road or boat connections that remote highland sites cannot match.

  • CONAP identifies San Juan among the established communities around the Lake Atitlán Multiple Use Reserve.
  • The lake sits at roughly 1,560 m and is enclosed by steep terrain and three major volcanic cones on its southern side.
  • Village lighting and neighboring settlements reduce faint-object contrast compared with the Cuchumatanes or remote Petén.
  • The volcanic bowl blocks portions of the low sky even where the water opens a useful local horizon.

Main trade-off: The easier logistics suit casual observing and foreground photography, while deep-sky work benefits from moving away from direct village lighting and selecting an authorized waterfront position with the target direction in mind.

Monterrico Pacific Beach

Santa Rosa Pacific coast · approximately 10 m

Location Stargazing Score: 67/100
Easy AccessPhotographyCoast
Light Escape55
Clear Sky85
Access50
  • Monterrico provides the only sea-level observing environment in the portfolio and a broad Pacific horizon.
  • CONAP describes a black-sand coast, mangroves and the Canal de Chiquimulilla within the protected area.
  • The protected visitor area publishes 07:00–17:00 hours, so those facilities are not treated as an unrestricted nighttime astronomy site.
  • Maritime humidity and settlement lighting keep the overall score below the mountain and remote-lake locations.

Main trade-off: The ocean horizon is excellent for low southern or western targets, but a legal public beachfront position must be distinguished from closed protected-area facilities, private property and sensitive wildlife areas.

Guatemala’s Dry-Season Geography: Highlands, Petén and Pacific

Western Highlands

INSIVUMEH treats Occidente as a distinct climatic region and uses stations including Huehuetenango and Labor Ovalle in its long-term climatology. January–February is operationally valuable here because the wet-season access problems described for the Cuchumatanes are reduced, while cold, wind and localized mountain cloud remain real constraints at altitude.

Petén Lowlands

The Norte climate region is represented by Flores in INSIVUMEH’s long-term analysis. Petén remains warmer and more moisture-prone than the western highlands, so Uaxactún and El Remate receive lower transparency scores despite their strong astronomical-darkness duration and, in Uaxactún’s case, very low settlement-light pressure.

Pacific Lowlands

Monterrico benefits from the Pacific dry-season pattern and an unobstructed ocean sector. Its low elevation brings the opposite atmospheric trade-off from Acatenango: no summit wind or ascent, but much more water vapour near the surface and less separation from coastal settlement lighting.

Atitlán: Water Horizons Inside a Volcanic Bowl

Lake Atitlán does not behave like a flat, open-country observing site. CONAP identifies Volcán San Pedro, Tolimán and Atitlán around the southern side of the lake, while settlements occupy much of the shoreline. A target rising behind a nearby ridge can remain hidden long after the same object is visible from an exposed summit, so target azimuth matters as much as nominal sky darkness.

Volcán San Pedro: Horizon First

The 3,020 m summit raises the observer above much of the caldera wall and produces a much stronger horizon score. The cost is a four-hour ascent and an authorization requirement for entry outside the published daytime schedule.

San Juan La Laguna: Logistics First

San Juan keeps the observer near accommodation, roads and lake transport. Direct local lighting is harder to escape and the caldera rim removes more of the low sky, but equipment transport is far simpler than carrying a telescope to a 3,020 m summit.

Acatenango and San Pedro Require Different Night-Access Plans

Guatemala’s two scored volcanoes cannot be treated as interchangeable summit trips. Acatenango’s official CONAP information lists open access and specifically permits camping only in authorized places, creating a recognized overnight-use pattern even though a local guide, cold-weather equipment and route checks remain part of the plan. San Pedro publishes a regular 06:00–13:00 entry period and separately states that access outside those hours can be granted with prior authorization.

Pacaya is not used as one of the eight scored observing locations. CONAP publishes 07:00–18:00 visitor hours for Pacaya National Park, and its active volcanic setting adds a different operational constraint. Its prominence as a volcano does not by itself establish a reliable astronomical-night access regime.

Petén: Dark Forest Skies Behind the Tikal Gate System

Petén’s remote forest can provide a strong escape from city lighting, but the best-looking dark area on a map is not automatically the easiest astronomical site. CONAP routes Uaxactún through the Tikal entrance system and then along 23 km of dirt road, while the combined Tikal/Uaxactún information publishes 06:00–18:00 visitor hours. That structure is why Uaxactún scores 95 for light escape but only 50 for night-access clarity.

El Remate solves a different problem. It lies on the established approach from Flores toward Tikal and keeps the observer on the Lake Petén Itzá corridor, reducing road complexity and equipment transport. The cost is a brighter settled environment. Tikal itself is not substituted for Uaxactún in the scored portfolio because archaeological importance and dark surroundings do not erase the published gate schedule.

Primary Location Comparison

The table uses all eight map locations in score order.

LocationScoreLight EscapeClear SkyPrimary UseHorizonNight AccessMain Constraint
Acatenango Volcano828585High-altitude photography8570Wind, cold, ascent and authorized camping
Todos Santos Cuchumatán High Plateau808585Remote mountain observing8550Nighttime legal positioning must be arranged
Laguna Brava (Yolnabaj)769570Remote lake photography7050Remote logistics, humidity and enclosing ridges
Volcán San Pedro757085Elevated Atitlán horizon8570Prior authorization for out-of-hours entry
Uaxactún Community729570Remote Petén sky5050Forest horizon, humidity and Tikal gate route
El Remate, Lake Petén Itzá697070Accessible Petén lakeshore7070Settlement light and humid lowland air
San Juan La Laguna, Lake Atitlán675585Accessible lake photography5070Village lights and volcanic-basin obstruction
Monterrico Pacific Beach675585Low-horizon coastal targets8550Maritime humidity and protected-area hours

Tonight’s Astronomical Darkness

Calculated live from each location’s coordinates using NOAA’s public solar-position formula. Weather, cloud cover and local obstructions are not included.

Calculating…

Score Verification and Limitations

Scoring Scope

Preferred Observing Window: January–February

Locations Assessed: 8

Method Version: 2.2

Comparability Quality: C

Principal Data Periods

Clear-sky and atmospheric context uses long-term INSIVUMEH climatology, including the 1991–2020 reference period where available. Astronomical darkness uses the complete 59-night January–February fixed seasonal reference calendar. Stable protected-area, elevation and route information comes from CONAP and Smithsonian sources.

Main Limitations

No exact SQM, Bortle class, point VIIRS radiance, cloud-cover percentage or total-column water-vapour value is invented for the eight markers. Several factors therefore use disclosed categorical evidence. Mountain microclimates, forest openings, private land boundaries and legal nighttime stopping places can differ over short distances.

Protected areas and access: CONAP SIGAP Tourism
Climate: INSIVUMEH
Volcano coordinates and elevations: Smithsonian Global Volcanism Program
Nighttime-light data context: NASA Black Marble
(function(){ “use strict”; var boot=function(){ var root=document.getElementById(“stargaze-in-guatemala”); if(!root){return;} var mapElement=document.getElementById(“dsky-map-guatemala”); if(!mapElement){return;} var prefersReduced=false; if(typeof window.matchMedia===”function”){ prefersReduced=window.matchMedia(“(prefers-reduced-motion: reduce)”).matches; } var mapData=[ {name:”Acatenango Volcano”,region:”Chimaltenango volcanic highlands”,lat:14.501,lng:-90.876,score:82,raw:82.0000,cardId:”acatenango-volcano-card”}, {name:”Todos Santos Cuchumatán High Plateau”,region:”Sierra de los Cuchumatanes”,lat:15.53832,lng:-91.54115,score:80,raw:80.0000,cardId:”todos-santos-high-plateau-card”}, {name:”Laguna Brava (Yolnabaj)”,region:”Huehuetenango border highlands”,lat:16.04733,lng:-91.56874,score:76,raw:76.2500,cardId:”laguna-brava-card”}, {name:”Volcán San Pedro”,region:”Lake Atitlán volcanic rim”,lat:14.655833,lng:-91.265833,score:75,raw:75.2500,cardId:”volcan-san-pedro-card”}, {name:”Uaxactún Community”,region:”Maya Biosphere Reserve, Petén”,lat:17.3948975,lng:-89.6334028,score:72,raw:72.0000,cardId:”uaxactun-community-card”}, {name:”El Remate, Lake Petén Itzá”,region:”Eastern Petén lakeshore”,lat:16.9931838,lng:-89.6898473,score:69,raw:68.5000,cardId:”el-remate-card”}, {name:”San Juan La Laguna, Lake Atitlán”,region:”Southwestern Atitlán shore”,lat:14.6945888,lng:-91.2878998,score:67,raw:67.2500,cardId:”san-juan-la-laguna-card”}, {name:”Monterrico Pacific Beach”,region:”Santa Rosa Pacific coast”,lat:13.8911,lng:-90.4814,score:67,raw:66.5000,cardId:”monterrico-pacific-beach-card”} ]; if(typeof window.L===”undefined”){return;} if(mapElement.dataset.ready===”1″){ return; } if(mapElement._leaflet_id){ return; } var map=window.L.map(mapElement,{scrollWheelZoom:false,attributionControl:true}); mapElement._dskyMap=map; mapElement.dataset.ready=”1″; if(map.attributionControl){ map.attributionControl.setPrefix(false); } window.L.tileLayer(“https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png”,{ maxZoom:19, attribution:”\u00A9 OpenStreetMap contributors” }).addTo(map); var markerByCard={}; var bounds=[]; var createMarkerIcon=function(index){ var markerNode=document.createElement(“span”); markerNode.className=”dsky-marker”; markerNode.setAttribute(“aria-hidden”,”true”); markerNode.textContent=String(index+1); return window.L.divIcon({ className:””, html:markerNode, iconSize:[34,34], iconAnchor:[17,17], popupAnchor:[0,-18] }); }; var createPopup=function(location){ var popup=document.createElement(“div”); popup.className=”dsky-popup”; var name=document.createElement(“strong”); name.textContent=location.name; popup.appendChild(name); popup.appendChild(document.createElement(“br”)); var summary=document.createElement(“span”); summary.textContent=location.region+” · “+location.score+”/100”; popup.appendChild(summary); popup.appendChild(document.createElement(“br”)); var detail=document.createElement(“a”); detail.className=”dsky-popup-detail”; detail.href=”#”+location.cardId; detail.dataset.cardId=location.cardId; detail.textContent=”View Details Below”; popup.appendChild(detail); return popup; }; mapData.forEach(function(location,index){ var marker=window.L.marker([location.lat,location.lng],{ icon:createMarkerIcon(index) }).addTo(map).bindPopup(createPopup(location)); marker.on(“click”,function(){ marker.openPopup(); }); markerByCard[location.cardId]=marker; bounds.push([location.lat,location.lng]); }); map.fitBounds(bounds,{padding:[32,32],maxZoom:6}); var repairMap=function(){ if(mapElement._dskyMap){ mapElement._dskyMap.invalidateSize(false); } }; window.requestAnimationFrame(function(){ window.requestAnimationFrame(repairMap); }); window.setTimeout(repairMap,250); window.setTimeout(repairMap,1000); window.addEventListener(“resize”,repairMap); if(typeof window.ResizeObserver===”function”){ var mapResizeObserver=new window.ResizeObserver(function(){ repairMap(); }); mapResizeObserver.observe(mapElement); } var scrollToCard=function(cardId){ var card=document.getElementById(cardId); if(!card){return;} card.classList.add(“is-highlighted”); if(prefersReduced){ card.scrollIntoView({behavior:”auto”,block:”center”}); }else{ card.scrollIntoView({behavior:”smooth”,block:”center”}); } window.setTimeout(function(){ card.classList.remove(“is-highlighted”); },1600); }; Array.prototype.forEach.call(root.querySelectorAll(“.dsky-map-item”),function(button){ button.addEventListener(“click”,function(){ var cardId=button.dataset.cardId; var marker=markerByCard[cardId]; if(marker){ marker.openPopup(); } }); }); mapElement.addEventListener(“click”,function(event){ var target=event.target; if(!target){return;} if(target.classList){ if(target.classList.contains(“dsky-popup-detail”)){ event.preventDefault(); scrollToCard(target.dataset.cardId); } } }); var cards=Array.prototype.slice.call(root.querySelectorAll(“.dsky-spot-card”)); var searchInput=root.querySelector(“.dsky-search”); var filterButtons=Array.prototype.slice.call(root.querySelectorAll(“.dsky-filter-btn”)); var resultCount=root.querySelector(“.dsky-result-count”); var activeFilter=”all”; var runFilter=function(){ var query=””; if(searchInput){ query=searchInput.value.toLowerCase().replace(/^\s+|\s+$/g,””); } var visibleCount=0; cards.forEach(function(card){ var name=(card.dataset.name||””).toLowerCase(); var region=(card.dataset.region||””).toLowerCase(); var tags=(card.dataset.tags||””).toLowerCase(); var textMatch=name.indexOf(query)!==-1; if(!textMatch){ textMatch=region.indexOf(query)!==-1; } if(!textMatch){ textMatch=tags.indexOf(query)!==-1; } var filterMatch=true; if(activeFilter!==”all”){ filterMatch=(” “+tags+” “).indexOf(” “+activeFilter+” “)!==-1; } var show=textMatch; if(show){ if(!filterMatch){ show=false; } } if(show){ card.classList.remove(“dsky-hidden”); visibleCount+=1; }else{ card.classList.add(“dsky-hidden”); } }); if(resultCount){ resultCount.textContent=String(visibleCount)+” of “+String(cards.length)+” locations shown”; } }; if(searchInput){ searchInput.addEventListener(“input”,runFilter); } filterButtons.forEach(function(button){ button.addEventListener(“click”,function(){ activeFilter=button.dataset.filter||”all”; filterButtons.forEach(function(item){ var pressed=item===button; item.classList.toggle(“is-active”,pressed); item.setAttribute(“aria-pressed”,pressed?”true”:”false”); }); runFilter(); }); }); runFilter(); Array.prototype.forEach.call(root.querySelectorAll(“.dsky-evidence-toggle”),function(button){ button.addEventListener(“click”,function(){ var panel=document.getElementById(button.getAttribute(“aria-controls”)); if(!panel){return;} var willOpen=panel.hidden===true; panel.hidden=!willOpen; button.setAttribute(“aria-expanded”,willOpen?”true”:”false”); button.textContent=willOpen?”Hide Method, Location Values and Sources”:”View Method, Location Values and Sources”; }); }); var weights=[0.30,0.20,0.15,0.10,0.10,0.10,0.05]; var computed=[]; cards.forEach(function(card){ var values=[ Number(card.dataset.lightScore), Number(card.dataset.clearScore), Number(card.dataset.atmosphereScore), Number(card.dataset.darknessScore), Number(card.dataset.horizonScore), Number(card.dataset.accessScore), Number(card.dataset.supportScore) ]; var raw=0; values.forEach(function(value,index){ raw+=value*weights[index]; }); var visible=Math.round(raw); var storedRaw=card.dataset.locationScoreRaw; var rawMatches=Number(storedRaw).toFixed(4)===Number(raw).toFixed(4); card.dataset.rawValid=rawMatches?”1″:”0″; card.dataset.locationScore=String(visible); var scoreNode=card.querySelector(“.dsky-location-score-number”); if(scoreNode){ scoreNode.textContent=String(visible); } computed.push({card:card,raw:raw,visible:visible,name:card.dataset.locationName}); }); var sorted=computed.slice().sort(function(a,b){ var roundedDiff=b.visible-a.visible; if(roundedDiff!==0){ return roundedDiff; } return b.raw-a.raw; }); var orderValid=computed.every(function(item,index){ return item.card===sorted[index].card; }); root.dataset.locationOrderValid=orderValid?”1″:”0″; var mapOrderValid=false; if(mapData.length===computed.length){ mapOrderValid=mapData.every(function(location,index){ return location.cardId===computed[index].card.id; }); } root.dataset.mapOrderValid=mapOrderValid?”1″:”0″; var legendItems=Array.prototype.slice.call(root.querySelectorAll(“.dsky-map-item”)); var legendOrderValid=false; if(legendItems.length===computed.length){ legendOrderValid=legendItems.every(function(item,index){ return item.dataset.cardId===computed[index].card.id; }); } root.dataset.legendOrderValid=legendOrderValid?”1″:”0″; var visibleScores=computed.map(function(item){ return item.visible; }); var bestScore=Math.max.apply(null,visibleScores); var leaders=computed.filter(function(item){ return item.visible===bestScore; }); var leaderNames=leaders.map(function(item){ return item.name; }); var leaderJoined=leaderNames.join(” | “); root.dataset.bestLocation=leaderJoined; root.dataset.bestLocationScore=String(bestScore); root.dataset.bestLocationCount=String(leaders.length); var bestLabel=leaders.length===1?”Highest-Rated Location”:”Joint Highest-Rated Locations”; Array.prototype.forEach.call(root.querySelectorAll(“[data-best-location-label]”),function(node){ node.textContent=bestLabel; }); Array.prototype.forEach.call(root.querySelectorAll(“[data-best-location-name]”),function(node){ node.textContent=leaderNames.join(“, “); }); Array.prototype.forEach.call(root.querySelectorAll(“[data-best-location-score]”),function(node){ node.textContent=String(bestScore); }); computed.forEach(function(item){ var isLeader=leaderNames.indexOf(item.name)!==-1; var card=item.card; var badge=card.querySelector(“.dsky-top-badge”); card.classList.toggle(“is-top-location”,isLeader); if(isLeader){ if(!badge){ badge=document.createElement(“span”); badge.className=”dsky-top-badge”; var topRow=card.querySelector(“.dsky-spot-top”); if(topRow){ topRow.appendChild(badge); } } if(badge){ badge.textContent=bestLabel; } }else{ if(badge){ if(badge.parentNode){ badge.parentNode.removeChild(badge); } } } }); var factorCards=Array.prototype.slice.call(root.querySelectorAll(“.dsky-score-factor”)); var weightTotal=0; var countryRaw=0; factorCards.forEach(function(factor){ var score=Number(factor.dataset.score); var weight=Number(factor.dataset.weight); weightTotal+=weight; countryRaw+=score*(weight/100); var valueNode=factor.querySelector(“.dsky-score-value”); if(valueNode){ valueNode.textContent=String(Math.round(score)); } }); var factorCountValid=factorCards.length===7; var weightValid=Number(weightTotal).toFixed(2)===”100.00″; var countryVisible=Math.round(countryRaw); root.dataset.factorCountValid=factorCountValid?”1″:”0″; root.dataset.weightTotalValid=weightValid?”1″:”0″; var scoreCard=root.querySelector(“.dsky-score-card”); if(scoreCard){ scoreCard.dataset.overallScore=String(countryVisible); } var mainScore=root.querySelector(“.dsky-score-number”); if(mainScore){ mainScore.textContent=String(countryVisible); } Array.prototype.forEach.call(root.querySelectorAll(“[data-country-score-display]”),function(node){ node.textContent=String(countryVisible); }); var weightedResult=root.querySelector(“.dsky-weighted-result”); if(weightedResult){ weightedResult.textContent=countryRaw.toFixed(1)+” \u2192 “+String(countryVisible)+”/100″; } }; if(document.readyState===”loading”){ document.addEventListener(“DOMContentLoaded”,boot,{once:true}); }else{ boot(); } })();
📌

Complete guide: Stargazing Countries

Scroll to Top