---
# System prepended metadata

title: Wave tutorial thing for Claire

---

# Wave tutorial thing for Claire


### Create env with python 3.10
```shell
conda create -n nrel python=3.10
``` 
### Activate conda environment

```shell
conda activate nrel
```

### check for gdal

```shell
gdal-config --version
##if not present then install
brew install gdal

```

### Install mhkit and jupyter notebook
* open jupyter notebook
    * Change from "not trusted" to "trusted" in the top right corner (if it isnt already trusted)

```shell!
pip install mhkit
pip install jupyter
jupyter notebook
```

### Follow tutorial at https://mhkit-software.github.io/MHKiT/WPTO_hindcast_example.html **BUT** anytime you see `.hindcast.` you need to replace it with `.hindcast.hindcast.`
* It is becayse the .hindcast.py file in the package is inside a hindcast subdirectory. the first `.hindcast` tells python to look inside the directory and the second `.hindcast` tells python to look inside the hindcast.py file for the function
______________
Python code below
### Convert data points to tuple
```python
test_list= ((41.9181101969308,-124.27127951148),(41.916500965901,-124.417875721303),(41.9165070759883,-124.584553929463),(41.9165107389593,-124.751223844493),(41.9165026546371,-124.917893352965),(41.6972738632635,-124.155819397221),(41.7390012052708,-124.26417087042),(41.7498314217775,-124.417872025058),(41.7498342577892,-124.5845448033),(41.7498350906052,-124.751217486859),(41.7498355900984,-124.917888837189),(41.5706892347759,-124.132501471546),(41.5831681737798,-124.251191931577),(41.5831684988223,-124.417865472044),(41.5831688396643,-124.584539079142),(41.5831692974803,-124.751211537123),(41.583169663777,-124.917883154035),(41.4180546840646,-124.11889342066),(41.4165039690529,-124.251189440168),(41.4165034192086,-124.417861839318),(41.4165033522424,-124.584534288549),(41.4165035854682,-124.751206388268),(41.416503868538,-124.917878054846),(41.2604207368614,-124.134571021463),(41.2498387296347,-124.251186764961),(41.2498379131299,-124.417858280948),(41.2498376630185,-124.584530130126),(41.2498378713642,-124.751201921664),(41.2498380795395,-124.917873513313),(41.0594464028928,-124.147940735964),(41.083173505111,-124.25118350639),(41.0831723967769,-124.417854514178),(41.0831720385636,-124.584525921905),(41.0831722469532,-124.751197646942),(41.0831725302208,-124.917869280264),(41.7496270270185,-125.251229638482),(41.2496354416751,-125.251217066697),(40.9494005498972,-124.149303652584),(40.9170446668989,-124.251740594855),(40.9165070452511,-124.417849996675),(40.9165067873056,-124.584521388031),(40.9165070540902,-124.751193254856),(40.916507479233,-124.917865246805),(40.9165081711022,-125.084537555613),(40.7204692546766,-124.233037831256),(40.7665884910383,-124.281565450795),(40.7498424173883,-124.417844604475),(40.749842159243,-124.584516529762),(40.7498425675937,-124.751188855152),(40.7498431677368,-124.91786143876),(40.7498438094516,-125.084534297533),(40.6469005477793,-124.322163042823),(40.5888598056903,-124.425552276273),(40.5831785126898,-124.584511320975),(40.5831787709601,-124.751184630037),(40.5831793791914,-124.917857838908),(40.583179962592,-125.08453118922),(40.4115876892962,-124.441370796139),(40.4165158389674,-124.584506555452),(40.4165159889573,-124.751180639117),(40.4165162887674,-124.917854639335),(40.4165168136661,-125.084528431531),(40.1897425885114,-124.29896075018),(40.2472451451423,-124.423130678569),(40.249853637957,-124.584502730752),(40.2498537045088,-124.751177347896),(40.2498538961547,-124.917851889712),(40.2498543041736,-125.084526048194),(40.0490306840236,-124.120243754446),(40.0797234001717,-124.25447449281),(40.0831920927172,-124.417824530715),(40.0831918600021,-124.584499281089),(40.083191801469,-124.751174406334),(40.0831918597374,-124.917849348166),(40.083192084207,-125.08452365656),(40.7496469193083,-125.417880212444),(40.2496616658868,-125.417872434709),(39.8827059991342,-123.957745042246),(39.9159346205885,-124.085065679057),(39.9165313880023,-124.251146890217),(39.9165309383314,-124.417821523688),(39.9165307217226,-124.584496840608),(39.9165305381262,-124.751172140607),(39.6914045623642,-123.817121907093),(39.7486393897797,-123.919532751619),(39.74987179738,-124.084471265613),(39.7498712725754,-124.251145007472),(39.7498707479683,-124.417819765948),(39.7498702145098,-124.584495282503),(39.7498697226021,-124.751170590837),(39.5800388106628,-123.806876796738),(39.5832129205782,-123.917797640508),(39.5832125217219,-124.084469824509),(39.5832117385147,-124.251143808116),(39.5832108804717,-124.417818749897),(39.5832100052937,-124.584494258326),(39.5832092466749,-124.751169533137),(39.4336770673087,-123.822887407113),(39.416554151743,-123.917796674923),(39.4165536355898,-124.084469542427),(39.4165524606982,-124.251143734329),(39.4165512774475,-124.417818684154),(39.4165500273284,-124.584494000538),(39.2331327558763,-123.805665207),(39.2498953299121,-123.917797559819),(39.2498944136259,-124.084470660106),(39.2498929054419,-124.251144734858),(39.2498913471591,-124.417819376226),(39.2498898303748,-124.584494175819),(39.077625715627,-123.770320485571),(39.0832354222817,-123.917800594544),(39.0832343146153,-124.08447290254),(39.0832326730713,-124.251146310187),(39.0832309232835,-124.417820259626),(39.08322920651,-124.584494425838),(39.7496801018528,-125.084519220633),(39.2497023566933,-124.917841987045),(38.0652228515628,-122.382836513984),(38.8484740883119,-123.655381968006),(38.9098224028269,-123.765227111163),(38.9165733542962,-123.917802082681),(38.916572671685,-124.084474250544),(38.9165711969301,-124.251147375872),(38.9165696305166,-124.417820842549),(38.6928345973535,-123.47050582709),(38.7365344189121,-123.595724477988),(38.7499100022223,-123.751129107798),(38.7499103856287,-123.917801524978),(38.7499100108987,-124.084474350467),(38.7499088944589,-124.251147550451),(38.7499074862631,-124.417820925534),(38.5232013824352,-123.298578789702),(38.5747682693131,-123.426824673139),(38.5832457975255,-123.58445720036),(38.5832466311137,-123.751129183456),(38.5832471396832,-123.917801708446),(38.5832469065011,-124.084474558763),(38.583246123317,-124.251147575434),(38.583245048414,-124.417820650184),(38.3860496804737,-123.128339910574),(38.4149854830463,-123.252534400032),(38.4165808826152,-123.417788266719),(38.4165822914861,-123.584458508843),(38.4165832333018,-123.751130017049),(38.416583716808,-123.91780213349),(38.4165836586017,-124.084474708557),(38.1934428280812,-122.948455979465),(38.2458272322887,-123.087519666621),(38.2499174505599,-123.251118516322),(38.2499182667171,-123.417789083291),(38.2499192751866,-123.584459708643),(38.2499199251442,-123.751130942028),(38.2499203336647,-123.917802633592),(38.2499202754173,-124.084474791867),(38.068730689021,-122.949948436733),(38.0836583467442,-123.084868050699),(38.0832559744411,-123.251118157964),(38.0832560239207,-123.417789374905),(38.0832564236854,-123.584460358409),(38.0832567319928,-123.751131550131),(38.0832569486502,-123.917803016758),(38.0832568570344,-124.084474724954),(37.8589123831012,-122.624502173299),(37.8918613797988,-122.764367816479),(37.9160926209337,-122.917342274243),(37.9162512065407,-123.084757336592),(37.9165932115388,-123.251117883662),(37.9165931616225,-123.417789383473),(37.9165932783344,-123.584460566667),(37.9165934784387,-123.751131750025),(37.7483747506029,-122.58684888906),(37.7499286835197,-122.751098275302),(37.7499399594931,-122.917754916812),(37.7499948146038,-123.084548989992),(37.7499291816078,-123.251117974674),(37.7499295148441,-123.417789441411),(37.7499298814396,-123.58446052473),(37.7499300814747,-123.751131524616),(37.5854354901206,-122.587207896206),(37.5832675681175,-122.751099268186),(37.5832663343805,-122.917773317437),(37.5832657666894,-123.084446099863),(37.5832659997632,-123.251117716357),(37.5832662911934,-123.417789057823),(37.5832665327003,-123.584460116216),(37.5832666910161,-123.75113102468),(37.4036863495578,-122.462898045619),(37.4166070579502,-122.584426567331),(37.416605741507,-122.751100033864),(37.4166044082191,-122.91777321687),(37.4166035077683,-123.084445599564),(37.4166033409198,-123.251117116204),(37.2471654869892,-122.452113238914),(37.2499437304719,-122.584426867012),(37.2499429972532,-122.751099883425),(37.2499420138588,-122.917772583241),(37.2499411969854,-123.084444682912),(37.2499408550875,-123.251116191126),(38.7497238583443,-124.751166433539),(38.2497428102431,-124.417819186662),(37.7497579767403,-124.084474140282),(37.333257422635,-123.584458952522),(37.8145349980914,-122.36116482985),(37.5843164709649,-122.216058373441),(37.0457320823038,-122.284635558045),(37.0815808352833,-122.419544656262),(37.0832806512321,-122.584427000146),(37.0832801845317,-122.751099516591),(37.0832794427818,-122.917771758134),(37.0832787509217,-123.084443532707),(36.8526178429676,-121.823062803821),(36.8957115114313,-121.923865564974),(36.8976261875054,-122.087084334711),(36.9163894474718,-122.251303193978),(36.9166179202575,-122.417754099301),(36.916617786817,-122.584426482857),(36.9166173366758,-122.751098649387),(36.9166166699393,-122.91777054931),(36.9166159447145,-123.084442024211),(36.7619261336809,-121.81767287453),(36.7499556545339,-121.917733649244),(36.7499553794517,-122.084407124107),(36.7499553042598,-122.251080232631),(36.7499551707473,-122.417753016034),(36.7499549038318,-122.584425332773),(36.7499543203586,-122.751097232592),(36.7499537119751,-122.917768857522),(36.7499530202589,-123.084440299123),(36.6577678628291,-121.829710023537),(36.6026311751242,-121.940990479579),(36.5832926530736,-122.084405682607),(36.583292386232,-122.251078932611),(36.5832921360212,-122.417751765932),(36.5832916940573,-122.584423940957),(36.5832911273594,-122.751095674282),(36.4083605269918,-121.95769184842),(36.4166288659026,-122.084405684219),(36.4166287659414,-122.25107840026),(36.4166285408949,-122.417750724732),(36.4166281574634,-122.584422591105),(36.4166276491141,-122.751094115937),(36.1952570616487,-121.779989135628),(36.2429487343553,-121.924886378542),(36.2499640190661,-122.08440672523),(36.2499642607513,-122.25107849986),(36.249964360754,-122.417749999472),(36.2499642024774,-122.584421307639),(36.2499638358816,-122.751092557553),(36.9164495595861,-123.417784431115),(36.4164651455828,-123.084436826472),(36.0501297521514,-121.622866305645),(36.0830479885952,-121.751311892138),(36.0832979538818,-121.917735516113),(36.0832990039873,-122.084406899621),(36.0832995540278,-122.251078149516),(36.0832999456452,-122.417749107662),(35.8827981520247,-121.47098839461),(35.9166237521402,-121.584392188171),(35.9166313468756,-121.751061598129),(35.9166329043329,-121.917734456553),(35.916634170791,-122.084405840254),(35.9166349540864,-122.251076806821),(35.9166354873867,-122.417747540218),(35.7057520207606,-121.317898411176),(35.7460214145641,-121.421309376355),(35.7499658043137,-121.584384731615),(35.7499671202596,-121.751059181272),(35.7499684779542,-121.917732089631),(35.7499696608363,-122.084403623198),(35.7499705108036,-122.251074489915),(35.7499712274659,-122.417745240076),(35.9164784714591,-122.751089085513),(35.5453784733375,-121.129492756714),(35.5781473102908,-121.254222163054),(35.5833026339797,-121.417707707284),(35.5833024174872,-121.58438223979),(35.5833033335646,-121.75105627284),(35.5833043997514,-121.917729122691),(35.3879270825234,-120.93329985238),(35.4142561141599,-121.086703453723),(35.4166398120643,-121.251031265758),(35.4166392204543,-121.417705474083),(35.4166393455319,-121.584379581748),(35.4166399034751,-121.751053139601),(35.4166406530966,-121.917725739377),(35.1755054275825,-120.784102648852),(35.2450441910081,-120.933593794424),(35.2499758714447,-121.084355774478),(35.2499758216858,-121.251029607585),(35.2499757635737,-121.41770354891),(35.2499760216148,-121.58437715671),(35.2499764881134,-121.751049956419),(35.249977179659,-121.917722331141),(35.0734177385234,-120.650811812854),(35.0824013852813,-120.751596776515),(35.0833100954976,-120.917682483206),(35.0833110460115,-121.084355266322),(35.0833115962484,-121.251028516109),(35.0833120046297,-121.417701723825),(35.0833124796158,-121.584374514999),(35.0833131212968,-121.751046973121),(35.0833138044951,-121.9177191229),(34.891256977289,-120.647631994042),(34.9166528409192,-120.751066094269),(34.9166454526715,-120.917682507516),(34.9166467026973,-121.084354774091),(34.9166476277833,-121.251027282152),(34.9166482861027,-121.417699723527),(34.7447003784917,-120.641430069333),(34.7499815995422,-120.751008940937),(34.7499821159714,-120.917681574134),(34.749983107449,-121.084353648902),(34.7499840990982,-121.251025590328),(34.7499849074136,-121.417697448487),(34.5565190530306,-120.61307202016),(34.5833183609081,-120.751007774147),(34.5833189858543,-120.917680282324),(34.5833198772313,-121.084352157038),(34.5833208272653,-121.251023590214),(34.5833216605597,-121.417695089988),(35.3329572897983,-122.251067008396),(34.7498380996339,-121.751041261205),(34.3524648635277,-119.466944781016),(34.3724123618526,-119.590389265207),(34.3714721725254,-119.753695549124),(34.3817631915496,-119.92519935337),(34.3992381789517,-120.085940374234),(34.4009095640536,-120.25031693001),(34.3968753837927,-120.419684625032),(34.4166544793766,-120.584333698972),(34.4166551541533,-120.751006607456),(34.4166559288962,-120.917678848906),(34.4166568452579,-121.084350265186),(34.416657761957,-121.251021315027),(34.4166586203429,-121.417692356473),(34.2166168029987,-119.295411719995),(34.2462862639679,-119.420735495802),(34.2499996216399,-119.584291498478),(34.2500003368904,-119.750965031736),(34.2499991524427,-119.917634581685),(34.2499966042988,-120.084304998277),(34.24999400509,-120.250979214893),(34.2499919977003,-120.417656157333),(34.2499916378114,-120.584332165601),(34.249992254068,-120.75100526568),(34.2499929286451,-120.917677173725),(34.2499937866584,-121.084348148454),(34.2499947117442,-121.251018739973),(34.2499957034941,-121.417689614772),(34.0039466095927,-118.496077400518),(34.0183308302706,-118.589170534475),(34.0143313110102,-118.734478929839),(34.0234418346111,-118.928457476502),(34.0476815288226,-119.091359927352),(34.0793543938974,-119.25435158312),(34.0840982504103,-119.417703001731),(34.09489255828,-119.583834001697),(34.1056754000812,-119.746401144221),(34.091000542121,-119.92661154329),(34.0913363531669,-120.082538047942),(34.0862505306538,-120.250255343173),(34.0890018903302,-120.422344519926),(34.0833289527579,-120.584330607276),(34.0833294605673,-120.751003582188),(34.0833301017752,-120.917675206948),(34.0833308849089,-121.084345790081),(34.0833317849397,-121.251016223278),(34.0833327766603,-121.417686814826),(34.2498523599176,-121.751033222981),(33.8976000918356,-118.46122953643),(33.9166786152446,-118.584247382442),(33.9166778326765,-118.750919999601),(33.916678141488,-118.917594091217),(33.916677699398,-119.084268016992),(33.9166760331603,-119.250941566691),(33.9166745751694,-119.417615824347),(33.9133496903664,-119.582708417519),(33.8994878554135,-119.749649038259),(33.9117782040706,-119.917711095619),(33.8797739776334,-120.076002920334),(33.9102398044389,-120.257855204039),(33.9166673022053,-120.41765016524),(33.9166667913896,-120.584327572554),(33.9166671492021,-120.751000647614),(33.9166676736151,-120.917672239397),(33.916668314961,-121.084342814483),(33.7051497603514,-118.11262235939),(33.7097622189033,-118.240071017063),(33.7392114462961,-118.434046328364),(33.7500165362475,-118.584246250261),(33.7500161115622,-118.750919791982),(33.7500162783669,-118.917594175113),(33.7500159360435,-119.084267783679),(33.750014869603,-119.250940633164),(33.750013794815,-119.417613657523),(33.7500131025323,-119.584286014989),(33.7500126434564,-119.750956556841),(33.750011659425,-119.917625424407),(33.7500097777016,-120.084295675589),(33.7500074038168,-120.250969900094),(33.7500059464933,-120.417647123797),(33.7500053114321,-120.584323406134),(33.7500054108692,-120.75099650608),(33.7500055936732,-120.917668322745),(33.7500060350542,-121.084339081186),(33.5233196606886,-117.801817486482),(33.5572448820976,-117.927853104851),(33.5830694381718,-118.084513043097),(33.5833570710247,-118.250902850021),(33.5833566627699,-118.417574942813),(33.5833560467847,-118.584247610067),(33.5833553801568,-118.750921142902),(33.5833551384458,-118.917595117484),(33.5833547709405,-119.084267967107),(33.5833540960542,-119.250939674676),(33.5833534377971,-119.417611315562),(33.5833525542701,-119.584282748504),(33.5833515038818,-119.750953582188),(33.5833500951769,-119.917623808046),(33.5833483045263,-120.084295183898),(33.5833463135654,-120.250968958553),(33.5833449141596,-120.417644507427),(33.583343938062,-120.584319431357),(33.583343629248,-120.750992372902),(33.3735464935958,-117.615172963642),(33.4105704650379,-117.755861266712),(33.4166951120256,-117.917557725414),(33.4166944878104,-118.084229883323),(33.4175544734303,-118.250046377702),(33.4467061236824,-118.413258539482),(33.4121484892004,-118.588992825298),(33.4166941794529,-118.750922108468),(33.4166938045651,-118.917595232846),(33.4161459399543,-119.084707304456),(33.4166931289414,-119.25093792379),(33.4166927872868,-119.417608498452),(33.4166918791424,-119.584279340251),(33.416690379117,-119.750950507137),(33.4166886875397,-119.917621949378),(33.4166869297223,-120.084294291532),(33.4166850966203,-120.250967791288),(33.4166835884981,-120.41764199913),(33.4166824713012,-120.584315798439),(33.416681921006,-120.750988448174),(33.8333321387567,-121.417682905139),(33.5000070234122,-121.084333349171),(33.2216695088322,-117.454191742072),(33.249996631115,-117.584250909773),(33.2500343778121,-117.750885358369),(33.2500330442509,-117.917557492146),(33.2500321362308,-118.084230083516),(33.247780736731,-118.248586055198),(33.2439829578979,-118.419744012452),(33.2500316272048,-118.584249241555),(33.2500314190119,-118.750921616233),(33.2500313941185,-118.917593924227),(33.2500313769497,-119.084265190559),(33.2500314603769,-119.250935457056),(33.2512354135771,-119.412066997013),(33.2493883793427,-119.590899448369),(33.2500287359653,-119.750947549113),(33.2500270029045,-119.917619816113),(33.250025311377,-120.084292708073),(33.2500235865897,-120.250965916178),(33.2500221117029,-120.417639457436),(33.2500209446742,-120.5843125236),(33.0446542854286,-117.315221883397),(33.0821190188583,-117.418862075135),(33.0833734249395,-117.584212542217),(33.0833722330042,-117.750885167231),(33.0833706744985,-117.91755752547),(33.0833693411691,-118.08423017548),(33.0833683742477,-118.250902891718),(33.0833676490764,-118.417575766392),(33.086235707111,-118.584411197467),(33.0833677739848,-118.750920474094),(33.0833682406805,-118.917592140459),(33.0833687070694,-119.084263057036),(33.0833689236367,-119.25093319045),(33.0833688985248,-119.417603098835),(33.0833681072371,-119.584273440916),(33.0833665078314,-119.750944957654),(33.0833650251214,-119.917617791069),(33.0833635416803,-120.084291058031),(33.0833619166651,-120.250963982727),(33.0833603915858,-120.417636890846),(33.0833591579555,-120.584309406986),(32.9147007933711,-117.298299496185),(32.9167126447058,-117.417541184049),(32.9167114032578,-117.584213042268),(32.9167097782108,-117.750885217357),(32.9167080448813,-117.917557550464),(32.9167063783536,-118.084230083812),(32.9167050282535,-118.250902767035),(32.9318057268578,-118.406094934447),(32.9113660430128,-118.59432582809),(32.9167044862037,-118.750919124286),(32.9167050860368,-118.917590423846),(32.9167056856471,-119.084260973837),(32.9167058439946,-119.250931115804),(32.9167057273638,-119.417601265986),(32.9167050526784,-119.584271874968),(32.9167038614545,-119.750943466676),(32.9167027534667,-119.917616291362),(32.6810495468207,-117.147208807318),(32.7376013924646,-117.280865635164),(32.7500503218827,-117.417541366898),(32.7500490636277,-117.584213125389),(32.7500474137273,-117.750885058662),(32.7500455720796,-117.917557200245),(32.750043905612,-118.084229633391),(32.7500425805308,-118.250902308177),(32.745436277038,-118.417974824408),(32.7500411382915,-118.584246732543),(32.7500415380684,-118.750917748962),(32.7500420796876,-118.91758847377),(32.7500426128863,-119.084258957116),(32.7500427712716,-119.250929249005),(32.750042587908,-119.417599765847),(32.7500419298928,-119.58427070794),(32.7500410301772,-119.750942474596),(32.7500399970692,-119.917614707844),(32.5863298211642,-117.143294992082),(32.5833902419806,-117.250868124922),(32.5833880475942,-117.417540683147),(32.5833865641069,-117.584212499901),(32.5833850308389,-117.750884333321),(32.5833833142976,-117.917556300038),(32.5833816727784,-118.084228591444),(32.5833803810631,-118.250900899434),(32.5833792561398,-118.4175732576),(32.5833785889197,-118.584244923761),(32.5833788054891,-118.750915690385),(32.5833791719633,-118.917586373675),(32.5833794633971,-119.08425671535),(32.5833795884506,-119.250927157228),(32.583379438609,-119.417597790721),(32.5833788389333,-119.584269107653),(32.5833779389109,-119.75094084087),(32.5833770473253,-119.917612715853),(33.1666836670532,-120.917654480642),(32.7499029562386,-120.250958913567),(32.4167894566573,-119.084254398751),(32.4167273386891,-117.250866432801))
res = []
for tup in test_list:
    temp = []
    for ele in tup:
        
            temp.append(float(ele))
    res.append((temp[0],temp[1]))
  
# printing result 
print("The converted list : " + str(res))
```

### get data

```python!
data_type = '3-hour' # setting the data type to the 3-hour dataset
years = [2000]
lat_lon = res
parameter = 'omni-directional_wave_power'

Hs, metadata= wave.io.hindcast.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years)

```