<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrew Neiswender on Medium]]></title>
        <description><![CDATA[Stories by Andrew Neiswender on Medium]]></description>
        <link>https://medium.com/@NSWNDR?source=rss-926cbb35cef2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MUVg0llIO9oil8ne2b0NCg.png</url>
            <title>Stories by Andrew Neiswender on Medium</title>
            <link>https://medium.com/@NSWNDR?source=rss-926cbb35cef2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:03:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@NSWNDR/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Part 2: Using Swell and Wind Data to Predict Quality Surf Conditions]]></title>
            <link>https://medium.com/an-analysis-of-ideal-wave-conditions-for-wrightsvi/part-2-using-swell-and-wind-data-to-predict-quality-surf-conditions-488d86070f84?source=rss-926cbb35cef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/488d86070f84</guid>
            <dc:creator><![CDATA[Andrew Neiswender]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 02:22:00 GMT</pubDate>
            <atom:updated>2021-03-09T03:21:33.373Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 2: Using Swell and Wind Data to Predict Quality of Surf Conditions</h3><p>Step 1: The Problem with Surf Forecast</p><p>I am a Premium subscriber to Surfline, an online surf forecasting service. For $90 per year I have access to a worldwide list of surf locations along with live cameras, current condition reports, forecasts, charts, and other data. It’s a fantastic tool which I use on a daily basis for scheduling my surf sessions in advance.</p><p>Surfline unfortunately falls short when it comes to predicting the quality of surf at a specific location. Realtime local conditions will often differ from what Surfline has reported or forecasted. This can be either a pleasant surprise or an unexpected letdown depending on the situation.</p><p>At the end of the day, regardless of what Surfline says, I am usually deciding to surf based on what I can see on a live camera or by going to the beach. Surfline helps to inform what my general expectations should be, but there is hardly ever certainty until I can see the conditions in real time. I often wonder whether it is possible to build a more locally-reliable model.</p><p>Step 2: Data Selection, Cleaning, and Exploratory Analysis</p><p>The datasets used in this project come from noaa.gov and wblivesurf.com. NOAA provides archived swell and wind data. The “fun” rankings (increments of 0.5 on a scale of 1 through 5) are sourced from the WB Live Surf Report archive.</p><p>Step 3: A Binary Classification Problem</p><p>Using the data I have imported and cleaned, 2 models will be trained on this data to predict whether the conditions are worth going to surf in. This will be compared to a baseline accuracy of 57% (If we guessed “don’t go” for every single day of 2019, we would be correct 57% of the time).</p><p>The scores:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*WkAmM53VsbaWs13iYE-QgA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*TTg_6eehis8-3e0HfdXCwQ.jpeg" /></figure><p>The high scores of these 2 models, achieved without any additional tuning of hyperparameters, suggests that the features included in our data are among the most important features to include in a predictive model. This confirms what I began to illustrate in Part 1 of this series.</p><p>What’s next?</p><ul><li>Interactive Heroku App</li><li>Hyperparameter tuning</li><li>Plotting and interpreting feature importance</li><li>Multi-class predictions</li><li>Expanding the dataset to include additional buoys and other weather patterns</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=488d86070f84" width="1" height="1" alt=""><hr><p><a href="https://medium.com/an-analysis-of-ideal-wave-conditions-for-wrightsvi/part-2-using-swell-and-wind-data-to-predict-quality-surf-conditions-488d86070f84">Part 2: Using Swell and Wind Data to Predict Quality Surf Conditions</a> was originally published in <a href="https://medium.com/an-analysis-of-ideal-wave-conditions-for-wrightsvi">An analysis of ideal wave conditions for Wrightsville Beach, North Carolina</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: Swell size and period]]></title>
            <link>https://medium.com/an-analysis-of-ideal-wave-conditions-for-wrightsvi/part-1-swell-size-and-period-30dae23722bc?source=rss-926cbb35cef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/30dae23722bc</guid>
            <category><![CDATA[surfing]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[waves]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Andrew Neiswender]]></dc:creator>
            <pubDate>Sat, 17 Oct 2020 18:30:09 GMT</pubDate>
            <atom:updated>2020-10-27T01:13:08.904Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the first step in a surprisingly complex subject. Surf forecasting, even with all the data available to the leading forecasting providers such as Surfline.com, still feels at times like it is more of an art than a science. There are many factors which determine the final product that surfers ultimately seek. Some are fairly universal, such as large and powerful swells which allow the best opportunity for exceptional surfing conditions. Other factors, such as wind direction, tide, and nearshore bathymetry (just to name a few) have a surprising impact on the quality of the waves on any given stretch of coastline. These differences can be drastic at times, even between surf spots within a few miles of each other.</p><p>Creating a formula for predicting ideal surf conditions in a local area with 100% accuracy is nearly impossible. Some would say it’s even harder than predicting the weather. While the analysis and visualizations here will be a helpful start for understanding everything that must come together for good surfing conditions in WB, there is much more data to explore and eventually incorporate in more sophisticated predictive models. We will start with the most relevant and universal factor in determining wave and surf quality: swell size and swell period. These two factors influence the height and intensity of the breaking waves which surfers ride.</p><p>This analysis will answer two questions:<br>- What times of the year have the best swells?<br>- How accurately can we predict the quality of the surf with these 2 factors alone?</p><p>Step 1: Collecting and cleaning the data</p><p>The data used for this project comes from the National Oceanic and Atmospheric Administration’s (NOAA) National Data Buoy Center (NDBC).</p><p>Link: <a href="https://www.ndbc.noaa.gov/">https://www.ndbc.noaa.gov/</a></p><p>Below is a preview of the 2019 data from the Masonboro Inlet buoy. We will have to remove the columns with no readings, combine the datetime columns, and consolidate each day to just one average reading to keep things simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1yvaraVZ7Fgl4wADd5XqKw.jpeg" /><figcaption>Not too easy on the eyes.</figcaption></figure><p>In addition to the steps mentioned above, the columns were renamed, the units were converted to the imperial system, and the data was indexed by date. Now we have the cleaned data which is ready for some exploration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*rEO7RC9_E31oAsMiknymSA.jpeg" /><figcaption>Much better.</figcaption></figure><p>So what time of year has the “best” swells? How can we qualify a “good” versus a “bad” swell? Let’s start by taking a closer look at the monthly data by using some visualizations and descriptive statistics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FBG597s_zPYDzmB3u8-Lw.jpeg" /></figure><p>The above dataframe has some extra columns corresponding to how surfers judge the quality of incoming swells. All of these values are averages, so it prevents us from taking a closer look at specific swell events, but there are a few trends we can use with this data to start answering our original questions.</p><p>The best times of year for waves in Wrightsville appear to be fall, winter, and spring — in that order. This can be understood from the higher averages for both wave height and period in those months in comparison to the lower averages in the summer. For surfers, this is fairly common knowledge.</p><p>Let’s see how accurately we can predict the quality of surf based on some rough categories applied to the swell height and period data. The categories are a description of the quality based on where in a range the value falls. In simple terms, swells with a smaller height and period will be assigned a ‘flat’ or a ‘poor’ rating while swells with a larger height and period will have ‘fair’ or ‘good’ ratings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2sXCyP7UmJumCbKiSRiEuQ.jpeg" /></figure><p>The mess that you see towards the top of the image is my code for assigning the proper rating to every possible combination of swell and period. Let’s use these new ratings to see how the months compare with frequency of quality waves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6QO2AFr8bbrpI2oDikvrg.jpeg" /></figure><p>It’s a little rudimentary, but now we have a better illustration of ‘good’ and ‘bad’ months for surfing. The strong presence of ‘fair’ ratings in September and November, followed up by the other fall and winter months, confirms that these are indeed the best times of year for surfing larger and more powerful swells.</p><p>What about the ‘good’ days? Does this model accurately render the best days for surfing based on swell data alone? Here are the 4 days deemed ‘good’ by our categorization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*iEdoShqYcDdnfDP1ZCm9FA.jpeg" /></figure><p>And here is how a local reporting site, wblivesurf.com, rated those days:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UU04AOylsB9McmkkXGXO9g.jpeg" /><figcaption>January 24, 2019</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_3kCEKDBfBsZJ5RWM6s2Q.jpeg" /><figcaption>The days before and after September 5, 2019.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwLEQKLfF-fYuuhbawOa3A.jpeg" /><figcaption>November 16th and 17th, 2019</figcaption></figure><p>So the days marked as ‘good’ by the model are accurate in showing some good swell events, but it appears to not effectively capture every day that is marked as “fun” by WB Live Surf. It is clear that there are additional factors which must be taken into consideration to accurately predict the quality of local surf.</p><p>How does the rest of November look?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*rwXN5X5eq7QDUwe4-zBXpw.jpeg" /></figure><p>Perhaps our model for predicting good days needs to be less restrictive to better reflect the qualify of local surf.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30dae23722bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/an-analysis-of-ideal-wave-conditions-for-wrightsvi/part-1-swell-size-and-period-30dae23722bc">Part 1: Swell size and period</a> was originally published in <a href="https://medium.com/an-analysis-of-ideal-wave-conditions-for-wrightsvi">An analysis of ideal wave conditions for Wrightsville Beach, North Carolina</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>