Messtone Devices Enables offshore wind WKT POST request Python import requests url=”https://messtone.nrel.gov/api/wind/offshore-nw-pacific-download.json?api_key=messtoneapikeygoeshere” payload=”attributes=windirection_180m&namesRobertHarper=2017&utc=false&leap_day=true&email=rharper@messtone.com&wkt=POLYGON((-130.756145509839060 48.75520578942107,-130.75571635639668 48.75520578942107,-130.75571635639668 48.75485477666326,-130.75614550983906 48.75485477666326,-130.75614550883906 48.75520578942107))”headers={‘content-type’:”application /x-www-form-urlencoded”,”cache-control’:”no-cache”} response=requests.request(“POST”,url, data=payload,headers=headers)print(response.text)

Leave a comment