<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forum — 3.2.4 Period within year rule]]></title>
		<link>https://forums.nbn.org.uk/viewtopic.php?id=6376</link>
		<atom:link href="https://forums.nbn.org.uk/extern.php?action=feed&amp;tid=6376&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in 3.2.4 Period within year rule.]]></description>
		<lastBuildDate>Tue, 17 May 2016 13:35:50 +0000</lastBuildDate>
		<generator>PunBB 1.4.6</generator>
		<item>
			<title><![CDATA[Re: 3.2.4 Period within year rule]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=24615#p24615</link>
			<description><![CDATA[<p>Graham,</p><p>Having had another play over lunch it seems it does work and quite well too - no idea what I was thinking on Sunday. I did also try over lunch to have two adult [Data] entries with a gap in the date bands but this failed.<br /></p><div class="codebox"><pre><code>...
[Data]
Stage=Adult
StartDate=0401
EndDate=0531

Stage=Adult
StartDate=0801
EndDate=0931</code></pre></div><p>I suspect here I will need to create separate rules for each flight period.</p>]]></description>
			<author><![CDATA[null@example.com (nmrs)]]></author>
			<pubDate>Tue, 17 May 2016 13:35:50 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=24615#p24615</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3.2.4 Period within year rule]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=24614#p24614</link>
			<description><![CDATA[<p>Graham,</p><p>Many thanks for have a look. I&#039;ll keep playing; if it does appear not to be applying the rule correctly I&#039;ll advise here with practical examples.</p><p>Best wishes,</p>]]></description>
			<author><![CDATA[null@example.com (nmrs)]]></author>
			<pubDate>Tue, 17 May 2016 09:14:07 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=24614#p24614</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3.2.4 Period within year rule]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=24613#p24613</link>
			<description><![CDATA[<p>Hello Les</p><p>I am not aware of any of the current rules on the NBN Record Cleaner that includes multiple stages though Stuart Ball wrote an example rule back in 2009 </p><p>[Metadata]<br />TestType=PeriodWithinYear<br />Group=Hoverflies<br />ShortName=Volucella bombylans: check date is during flight period<br />Description=Check date is during the known flight period for Volucella bombylans<br />tvk=NBNSYS0000007094<br />ErrorMsg=Date is outside flight period for Volucella bombylans<br />DataFieldName=SpeciesStage<br />StartDate=0131<br />EndDate=1218<br />LastChanged=20090615<br />[EndMetadata]</p><p>[Data]<br />Stage=All<br />startDate=0131<br />endDate=1218</p><p>Stage=Adult,Adult Male,Adult Female,Male,Female<br />startDate=0131<br />endDate=1218</p><p>Comparing this hoverfly example, your example looks OK and I can&#039;t see any issues. It looks like it should work in the NBN Record Cleaner</p><p>Best wishes</p><p>Graham</p>]]></description>
			<author><![CDATA[null@example.com (Graham French)]]></author>
			<pubDate>Tue, 17 May 2016 09:11:41 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=24613#p24613</guid>
		</item>
		<item>
			<title><![CDATA[3.2.4 Period within year rule]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=24605#p24605</link>
			<description><![CDATA[<p>Hi,</p><p>Section 3.2.4 of the Rule Guide I cannot get to work if I incorporate a [Data] section. In fact the examples confuse the issue as opposed to helping (sorry!)</p><p>I want to create a single species rule that incorporates multiple stages. My species has an adult phenology of 1 April to 31 May and larval phenology is 1 May to 31 July; therefore, all stages span from 1 April to 31 July but I want records for a specific stage to fail outside their specific and total phenology span.</p><p>I&#039;ve tried all morning to get this to work and failed so I&#039;m assuming this doesn&#039;t work.</p><p>Has anyone tried this and succeeded or can anyone provide a template rule that will work?</p><p>Here&#039;s my code:<br /></p><div class="codebox"><pre><code>[Metadata]
TestType=PeriodWithinYear
Group=Moths Phenology
ShortName=Dyseriocrania subpurpurella
Description=Checks date is within known phenology of Dyseriocrania subpurpurella
ErrorMsg=Date is outside known phenology of Dyseriocrania subpurpurella
Tvk=NHMSYS0021142333
DataFieldName=Stage
StartDate=0401
EndDate=0731
LastChanged=20160515
[EndMetadata]

[Data]
Stage=Adult
StartDate=0401
EndDate=0531

Stage=Larval
StartDate=0501
EndDate=0731</code></pre></div><p>Any help appreciated to show me where I&#039;m clearly misunderstanding the issue.</p>]]></description>
			<author><![CDATA[null@example.com (nmrs)]]></author>
			<pubDate>Sun, 15 May 2016 11:37:16 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=24605#p24605</guid>
		</item>
	</channel>
</rss>
