<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments for planetwater	</title>
	<atom:link href="http://www.planetwater.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.planetwater.org</link>
	<description>ground- water,  geo- statistics, environmental- engineering, earth- science</description>
	<lastBuildDate>Sat, 29 Jun 2019 14:00:26 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Claus		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-108533</link>

		<dc:creator><![CDATA[Claus]]></dc:creator>
		<pubDate>Sat, 29 Jun 2019 14:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-108533</guid>

					<description><![CDATA[&lt;p&gt;Dear Ben,
nice to hear that it works generally well. 
Related to your first question: I&#039;m afraid I have never tried this for periods longer than a year, as there is nothing implemented in relation to number of days in months/years.
Related to your second question: I am uncertain what exactly you are plotting, but there is always the danger of an index/counting error.&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>Dear Ben,<br />
nice to hear that it works generally well.<br />
Related to your first question: I&#8217;m afraid I have never tried this for periods longer than a year, as there is nothing implemented in relation to number of days in months/years.<br />
Related to your second question: I am uncertain what exactly you are plotting, but there is always the danger of an index/counting error.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Ben		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-108522</link>

		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Fri, 28 Jun 2019 22:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-108522</guid>

					<description><![CDATA[&lt;p&gt;Hi Claus,&lt;/p&gt;

&lt;p&gt;I have used your code to try and count the number of days per year that a fire weather index is above or below a set threshold. For the most part, the code worked well, but I have noticed that there are some errors in the total counts. For example, (total days meeting or exceeding threshold) + (total days below threshold) does not equal the total number of days in a year. And similarly, when looking at the graphed data, I count x number of distinct periods (above or below threshold), but the results of the code indicate there are (x-1) distinct periods.&lt;/p&gt;

&lt;p&gt;I have essentially used your exact code, so I&#039;m wondering if you may have any insight into this problem or have encountered similar problems in your own program.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi Claus,</p>
<p>I have used your code to try and count the number of days per year that a fire weather index is above or below a set threshold. For the most part, the code worked well, but I have noticed that there are some errors in the total counts. For example, (total days meeting or exceeding threshold) + (total days below threshold) does not equal the total number of days in a year. And similarly, when looking at the graphed data, I count x number of distinct periods (above or below threshold), but the results of the code indicate there are (x-1) distinct periods.</p>
<p>I have essentially used your exact code, so I&#8217;m wondering if you may have any insight into this problem or have encountered similar problems in your own program.</p>
<p>Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on What are Random Numbers? by Dirk		</title>
		<link>https://www.planetwater.org/2019/06/24/what-are-random-numbers/comment-page-1/#comment-108478</link>

		<dc:creator><![CDATA[Dirk]]></dc:creator>
		<pubDate>Wed, 26 Jun 2019 10:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetwater.org/?p=2792#comment-108478</guid>

					<description><![CDATA[&lt;p&gt;I believe that magical thinking is prevalent when it comes to
randomness: &quot;If I got tails, the next result will most likely be
heads, because getting a head or a tail is equally probable and it
should balance out.&quot; But there is no higher power that counts outcomes
and guides the coin to produce equal frequencies of heads and tails.
See: https://en.wikipedia.org/wiki/Markov_property&lt;/p&gt;

&lt;p&gt;The short python snippet below counts transitions from one result to
the next. The second sequence is far more extreme than the first in
this regard, as a head is always followed by a tail and a tail is most
often followed by a head.&lt;/p&gt;

&lt;p&gt;import numpy as np&lt;/p&gt;

&lt;p&gt;r1 = &quot;HTTTTHHTHHHHTTHHHHTT&quot;
r2 = &quot;HTHTHTHTHTHTTHTHTTTH&quot;&lt;/p&gt;

&lt;p&gt;def transition_freqs(rr):
    rr = np.where(np.array(list(rr)) == &quot;H&quot;, 1, 0)
    freqs = np.zeros((2, 2), dtype=float)
    for last, cur in zip(rr[:-1], rr[1:]):
        freqs[last, cur] += 1
    return freqs / freqs.sum(0)[None, :]&lt;/p&gt;

&lt;p&gt;print(transition_freqs(r1).round(2))
print(transition_freqs(r2).round(2))&lt;/p&gt;

&lt;p&gt;[[0.56 0.3 ]
 [0.44 0.7 ]]
 [[0.27 1. ]
 [0.73 0. ]]&lt;/p&gt;

&lt;p&gt;So my bet is on the second sequence to be the one made up.&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>I believe that magical thinking is prevalent when it comes to<br />
randomness: &#8220;If I got tails, the next result will most likely be<br />
heads, because getting a head or a tail is equally probable and it<br />
should balance out.&#8221; But there is no higher power that counts outcomes<br />
and guides the coin to produce equal frequencies of heads and tails.<br />
See: <a href="https://en.wikipedia.org/wiki/Markov_property" rel="nofollow ugc">https://en.wikipedia.org/wiki/Markov_property</a></p>
<p>The short python snippet below counts transitions from one result to<br />
the next. The second sequence is far more extreme than the first in<br />
this regard, as a head is always followed by a tail and a tail is most<br />
often followed by a head.</p>
<p>import numpy as np</p>
<p>r1 = &#8220;HTTTTHHTHHHHTTHHHHTT&#8221;<br />
r2 = &#8220;HTHTHTHTHTHTTHTHTTTH&#8221;</p>
<p>def transition_freqs(rr):<br />
    rr = np.where(np.array(list(rr)) == &#8220;H&#8221;, 1, 0)<br />
    freqs = np.zeros((2, 2), dtype=float)<br />
    for last, cur in zip(rr[:-1], rr[1:]):<br />
        freqs[last, cur] += 1<br />
    return freqs / freqs.sum(0)[None, :]</p>
<p>print(transition_freqs(r1).round(2))<br />
print(transition_freqs(r2).round(2))</p>
<p>[[0.56 0.3 ]<br />
 [0.44 0.7 ]]<br />
 [[0.27 1. ]<br />
 [0.73 0. ]]</p>
<p>So my bet is on the second sequence to be the one made up.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Staph		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-106952</link>

		<dc:creator><![CDATA[Staph]]></dc:creator>
		<pubDate>Sun, 28 Apr 2019 11:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-106952</guid>

					<description><![CDATA[&lt;p&gt;Hello so I have a time series of precipitation. I want to find the number of dry months below threshold of -1 (data is SPI). if I have more two months below this threshold then I count. it consecutive dry and wet days. this code doesnt help me in this regards,&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>Hello so I have a time series of precipitation. I want to find the number of dry months below threshold of -1 (data is SPI). if I have more two months below this threshold then I count. it consecutive dry and wet days. this code doesnt help me in this regards,</p>
<p>thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Claus		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-100539</link>

		<dc:creator><![CDATA[Claus]]></dc:creator>
		<pubDate>Mon, 05 Mar 2018 08:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-100539</guid>

					<description><![CDATA[&lt;p&gt;If I understand you correctly, you need to provide the column with &lt;code&gt;precipitation&lt;/code&gt; to your script and it will return to you the histogram of the duration of dry spells – isn&#039;t that what you want?&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>If I understand you correctly, you need to provide the column with <code>precipitation</code> to your script and it will return to you the histogram of the duration of dry spells – isn&#8217;t that what you want?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Jocelyn		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-100458</link>

		<dc:creator><![CDATA[Jocelyn]]></dc:creator>
		<pubDate>Sat, 03 Mar 2018 00:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-100458</guid>

					<description><![CDATA[&lt;p&gt;Hello! I have a data frame with &#039;Year&#039;, &#039;Month&#039;, &#039;Day&#039;, &#039;Precipitation&#039;, &#039;MinimumTemp&#039;, and &#039;MaximumTemperature columns.
I have daily precipitation data ranging from 1950 to 2012. For now, I am just going to practice with one year of data (1950). I want Python to count the number of episodes with consecutive dry days within that year. Hopefully that was specific. Thank you!!&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>Hello! I have a data frame with &#8216;Year&#8217;, &#8216;Month&#8217;, &#8216;Day&#8217;, &#8216;Precipitation&#8217;, &#8216;MinimumTemp&#8217;, and &#8216;MaximumTemperature columns.<br />
I have daily precipitation data ranging from 1950 to 2012. For now, I am just going to practice with one year of data (1950). I want Python to count the number of episodes with consecutive dry days within that year. Hopefully that was specific. Thank you!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Claus		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-100429</link>

		<dc:creator><![CDATA[Claus]]></dc:creator>
		<pubDate>Fri, 02 Mar 2018 09:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-100429</guid>

					<description><![CDATA[&lt;p&gt;Dear Jocelyn,
the code above takes daily input data. The second argument, &lt;code&gt;threshold&lt;/code&gt; acts as an indicator, everything below counts as dry, everything above as wet. You could set &lt;code&gt;threshold&lt;/code&gt; to zero. However, I  would encourage you to use some value slightly larger than zero, because a precipitation of 0.1mm does not contribute to any flow.&lt;/p&gt;

&lt;p&gt;How does your data look like - could you be more specific?&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>Dear Jocelyn,<br />
the code above takes daily input data. The second argument, <code>threshold</code> acts as an indicator, everything below counts as dry, everything above as wet. You could set <code>threshold</code> to zero. However, I  would encourage you to use some value slightly larger than zero, because a precipitation of 0.1mm does not contribute to any flow.</p>
<p>How does your data look like &#8211; could you be more specific?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Pandas in Python: Use with Hydrological Time Series by Jocelyn		</title>
		<link>https://www.planetwater.org/2012/11/20/pandas-in-python-use-with-hydrological-time-series/comment-page-1/#comment-100418</link>

		<dc:creator><![CDATA[Jocelyn]]></dc:creator>
		<pubDate>Thu, 01 Mar 2018 21:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=1852#comment-100418</guid>

					<description><![CDATA[&lt;p&gt;Hello, I stumbled on your page when I was googling how to count consecutive dry days. I am brand new to Python, and I am currently practicing with daily precipitation data (60 or so years worth of data). So far, I have managed to separate year, month, and day into three separate columns. I need to count how many episodes there is with consecutive dry days (0 mm of precipitation). How would I go about it? I did try your codes, but I think I am doing something wrong as it doesn&#039;t work with my data. Thank you for your time!&lt;/p&gt;]]></description>
			<content:encoded><![CDATA[<p>Hello, I stumbled on your page when I was googling how to count consecutive dry days. I am brand new to Python, and I am currently practicing with daily precipitation data (60 or so years worth of data). So far, I have managed to separate year, month, and day into three separate columns. I need to count how many episodes there is with consecutive dry days (0 mm of precipitation). How would I go about it? I did try your codes, but I think I am doing something wrong as it doesn&#8217;t work with my data. Thank you for your time!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Contact by Paul Kremer		</title>
		<link>https://www.planetwater.org/contact/comment-page-1/#comment-16273</link>

		<dc:creator><![CDATA[Paul Kremer]]></dc:creator>
		<pubDate>Sat, 11 Jul 2015 23:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/contact/#comment-16273</guid>

					<description><![CDATA[&lt;p&gt;Claus mein freund! Wie geht? It&#039;s been far too long! For this reason, I&#039;ve decided to travel to Stuttgart for some much overdo Claus time. Alright, that&#039;s not the sole reason I&#039;ll be there, but having a chance to catch up would certainly be a super bonus to the trip. I&#039;ll be in town from August 5th to 14th, right before Goldschmidt. Fire me an email when you get a chance, I sure hope you&#039;ll be around so we can grab some beers and schnitzel!&lt;/p&gt;
]]></description>
			<content:encoded><![CDATA[<p>Claus mein freund! Wie geht? It&#8217;s been far too long! For this reason, I&#8217;ve decided to travel to Stuttgart for some much overdo Claus time. Alright, that&#8217;s not the sole reason I&#8217;ll be there, but having a chance to catch up would certainly be a super bonus to the trip. I&#8217;ll be in town from August 5th to 14th, right before Goldschmidt. Fire me an email when you get a chance, I sure hope you&#8217;ll be around so we can grab some beers and schnitzel!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Beautiful Latex Equations in OmniOutliner by Claus		</title>
		<link>https://www.planetwater.org/2014/02/12/beautiful-latex-equations-in-omnioutliner/comment-page-1/#comment-11699</link>

		<dc:creator><![CDATA[Claus]]></dc:creator>
		<pubDate>Sat, 24 May 2014 15:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://planetwater.org/?p=2485#comment-11699</guid>

					<description><![CDATA[&lt;p&gt;Dear Peter, 
thanks for the tip -- and I agree with you that LaTeXiT is a beautiful tool, and I also use it, for example for putting formulae into keynote.
However, I also like the possibility to have latex equations beautifully rendered together with the latex source code in an omni outliner document.&lt;/p&gt;
]]></description>
			<content:encoded><![CDATA[<p>Dear Peter,<br />
thanks for the tip &#8212; and I agree with you that LaTeXiT is a beautiful tool, and I also use it, for example for putting formulae into keynote.<br />
However, I also like the possibility to have latex equations beautifully rendered together with the latex source code in an omni outliner document.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
