Interpolate at higher elevations



  • Is it possible to return the windspeed at higher elevations? Interpolate seems to only return wind speed at ground level.



  • @Owlet
    When in "wind layer", move the height slider to the desired elevation.

    e.g. wind at 3000m in Zugspitze (The Alps, Germany-Austria border)
    3fa922af-2c05-469d-b303-953986b283ea-εικόνα.png



  • Is it possible to do this programmatically - I set.store('layer', '100m') and then run interpolate({lat,lon}), but when I check the result it returns ground level. Code is below...

    store.set('level', '100m');
    
    interpolator(interpolatorFun => {
    	for (const site of json_file.features) {
    		let wind;
    		let lat = site.geometry.coordinates[1];
    		let lon = site.geometry.coordinates[0];
    		const data = interpolatorFun({lat,lon}, 1);
    		wind = data && utils.wind2obj(data);
    		const marker = L.circleMarker([lat, lon], wellStyle()).addTo(map);
    		let tooltip = '<div>' + wind.wind.toFixed(1) + ' m/s <br />' + '</div>';
    		marker.bindPopup(tooltip);
    	}
    })
    

    ![output](e48edc4f-df38-4d52-9b03-382d3b67b9b8-image.png



  • @Owlet

    Wait until data loaded before calling the interpolator:

    store.set(.......

    broadcast.on("redrawFinished", params=>{interpolator(interpfun=>{......



  • @rittels thanks - works perfectly!


Log in to reply
 

Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps