<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum — 3.2.4 Period within year rule]]></title>
	<link rel="self" href="https://forums.nbn.org.uk/extern.php?action=feed&amp;tid=6376&amp;type=atom" />
	<updated>2016-05-17T13:35:50Z</updated>
	<generator version="1.4.6">PunBB</generator>
	<id>https://forums.nbn.org.uk/viewtopic.php?id=6376</id>
		<entry>
			<title type="html"><![CDATA[Re: 3.2.4 Period within year rule]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=24615#p24615" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nmrs]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=189</uri>
			</author>
			<updated>2016-05-17T13:35:50Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=24615#p24615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3.2.4 Period within year rule]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=24614#p24614" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nmrs]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=189</uri>
			</author>
			<updated>2016-05-17T09:14:07Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=24614#p24614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3.2.4 Period within year rule]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=24613#p24613" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Graham French]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=54</uri>
			</author>
			<updated>2016-05-17T09:11:41Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=24613#p24613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[3.2.4 Period within year rule]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=24605#p24605" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nmrs]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=189</uri>
			</author>
			<updated>2016-05-15T11:37:16Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=24605#p24605</id>
		</entry>
</feed>
