<codeBook xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="ddi:codebook:2_5 http://www.ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd" xmlns="ddi:codebook:2_5">
  <docDscr>
    <citation>
      <titlStmt>
        <titl xml:lang="sv">Data och kod för "Strong diel variation in the activity of insect taxa sampled by Malaise traps"</titl>
        <parTitl xml:lang="en">Data and code for "Strong diel variation in the activity of insect taxa sampled by Malaise traps"</parTitl>
        <IDNo agency="SND">2025-211-1</IDNo>
        <IDNo agency="slu.se">SLU.ekol.2025.4.2.IÄ-5</IDNo>
        <IDNo agency="DOI">https://doi.org/10.5878/7q5a-y443</IDNo>
      </titlStmt>
      <prodStmt>
        <producer xml:lang="en" abbr="SND">Swedish National Data Service</producer>
        <producer xml:lang="sv" abbr="SND">Svensk nationell datatjänst</producer>
      </prodStmt>
      <holdings URI="https://doi.org/10.5878/7q5a-y443">Landing page</holdings>
    </citation>
  </docDscr>
  <stdyDscr>
    <citation>
      <titlStmt>
        <titl xml:lang="sv">Data och kod för "Strong diel variation in the activity of insect taxa sampled by Malaise traps"</titl>
        <parTitl xml:lang="en">Data and code for "Strong diel variation in the activity of insect taxa sampled by Malaise traps"</parTitl>
        <IDNo agency="SND">2025-211-1</IDNo>
        <IDNo agency="slu.se">SLU.ekol.2025.4.2.IÄ-5</IDNo>
        <IDNo agency="DOI">https://doi.org/10.5878/7q5a-y443</IDNo>
      </titlStmt>
      <rspStmt>
        <AuthEnty xml:lang="en" affiliation="Department of Ecology, Swedish University of Agricultural Sciences">Gårdman, Viktor</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Institutionen för ekologi, Sveriges lantbruksuniversitet">Gårdman, Viktor</AuthEnty>
        <AuthEnty xml:lang="en" affiliation="Ramboll Sweden">McDonald, Emme</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Ramboll Sverige">McDonald, Emme</AuthEnty>
        <AuthEnty xml:lang="en" affiliation="Department of Ecology, Swedish University of Agricultural sciences">Roslin, Tomas</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Institutionen för ekologi, Sveriges lantbruksuniversitet">Roslin, Tomas</AuthEnty>
      </rspStmt>
      <prodStmt />
      <distStmt>
        <distrbtr xml:lang="en" abbr="SND" URI="https://snd.se">Swedish National Data Service</distrbtr>
        <distrbtr xml:lang="sv" abbr="SND" URI="https://snd.se">Svensk nationell datatjänst</distrbtr>
        <distDate xml:lang="en" date="2025-12-05" />
      </distStmt>
      <verStmt>
        <version elementVersion="1" elementVersionDate="2025-12-05" />
      </verStmt>
      <holdings URI="https://doi.org/10.5878/7q5a-y443">Landing page</holdings>
    </citation>
    <stdyInfo>
      <subject>
        <keyword xml:lang="en" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/22035">air temperature</keyword>
        <keyword xml:lang="sv" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/22035">lufttemperatur</keyword>
        <keyword xml:lang="en" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/21541">abundance</keyword>
        <keyword xml:lang="en" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/21579">air relative humidity</keyword>
        <keyword xml:lang="en" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/22086">community composition</keyword>
        <keyword xml:lang="en" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/20596">arthropods</keyword>
        <keyword xml:lang="en" vocab="INSPIRE Spatial Data Themes" vocabURI="http://inspire.ec.europa.eu/theme/sd">Species distribution</keyword>
        <keyword xml:lang="sv" vocab="INSPIRE Spatial Data Themes" vocabURI="http://inspire.ec.europa.eu/theme/sd">Arters utbredning</keyword>
        <keyword xml:lang="en" vocab="YSO" vocabURI="http://www.yso.fi/onto/yso/p19450">day</keyword>
        <keyword xml:lang="sv" vocab="YSO" vocabURI="http://www.yso.fi/onto/yso/p19450">dag</keyword>
        <keyword xml:lang="en" vocab="EnvThes" vocabURI="http://vocabs.lter-europe.net/EnvThes/30342">wind speed</keyword>
        <topcClas xml:lang="en" vocab="INSPIRE topic categories" vocabURI="http://inspire.ec.europa.eu/metadata-codelist/TopicCategory/biota">Biota</topcClas>
        <topcClas xml:lang="sv" vocab="INSPIRE topic categories" vocabURI="http://inspire.ec.europa.eu/metadata-codelist/TopicCategory/biota">Biologi och ekologi</topcClas>
      </subject>
      <abstract xml:lang="en" contentType="abstract">Here is presented all data and code used in the article "Strong diel variation in the activity of insect taxa sampled by Malaise traps" by Viktor Gårdman, Emme McDonald &amp; Tomas Roslin.

The sampling of insects through Malaise traps was conducted by the authors. 24 malaise traps were erected in a boreal forest in central Sweden (Lat. 60.024855, long. 17.751336) and emptied every second hour, with the exception of night (samplng events during night = 22:00, 02:00, 06:00) for five consecutive days between 14-19th of July 2022. The sampling design is described in further detail in the article (Fig. 1B). Insects were identified to taxonomic Family for Diptera, Coleoptera, and Hymenoptera, except for the superfamilies of Chalcidoidea and Cynipoidea (Hymenoptera). Chalcidoids and Cynipoids were only identified to the superfamily level, due to difficulties in assigning lower taxonomic levels without risking misidentification. Hemiptera was divided into taxonomic families for Heteroptera, and into suborders for Auchenorrhyncha and Sternorrhyncha. To simplify identification of a large group with similar morphology, all microlepidopteras were grouped as such with no further identification. Furthermore, to speed up the identification task, all insects not belonging to Diptera, Hymenoptera, Coleoptera, Lepidoptera or Hemiptera were identified to Order alone.

The HRS_SpeciesData file contains information about each captured individual across all taxa for each 2 hour sampling interval during the five days of sampling. Dates are given as DD/M. TrapID refers to which of the 24 traps used the individual was found in. Time is given in hh:mm and refers to the time of sampling, Time_con refers to time in only hh, and time_Num shows time of day as a fraction between 0 (00:00) and 1 (23:59). The superfamily belonging for each taxon used is given. Note that for taxa were only taxonomic Order or Suborders are given, the superfamily column refers to this Order or Suborder.

The HRS_EnviData file contains information about how many individual were captured at each timestep for the 17 most common taxa (appearing as &gt;49 individuals or in &gt;19 timesteps), along with weather covariates for each timestep. The weather covariates are average values from the five half hour measurements per sampling period (expect for 22:00-02:00 and 02:00-06:00 where n=9). The taxonomic columns follow the same principle as in HRS_SpeciesData, with an additional column of taxonomic Order. Times and date also follow the same principle as in HRS_SpeciesData. ID is a unique mix of Date and time, given as DDHH (Date, Hour). The emptying of trap at 20:00 on the 15h would have ID 1520. Temperature is given in degrees Celsius (°C), wind speed in m/s, cloud cover as a fraction between 0 (no cloud) and 1 (complete cloud cover), rain in mm, wind direction in cardinal directions, and relative humidity in %. Data on weather covariates was provided by the Swedish Transport Administration (https://www.trafikverket.se/)  from weather station 327 Björklinge (Lat. 60.05042, long. 17.62149). 

All code was created using R version 4.4.0 and is presented through Rmarkdown</abstract>
      <abstract xml:lang="sv" contentType="abstract">Här presenteras all data och kod för artikeln "Strong diel variation in the activity of insect taxa sampled by Malaise traps" av Viktor Gårdman, Emme McDonald &amp; Tomas Roslin.

Provtagningen av insekter har utförts av författarna . 24 Malaisefällor sattes upp i en boreal skog i centrala Sverige  (Lat. 60.024855, long. 17.751336) och tömdes varannan timme under fem dagar, med undantag för nätter (22:00-06:00), som hade ett interval på fyra timmar (tömning 22:00, 02:00, 06:00). Malaisefällornas position i förhållande till varandra illustreras bäst via Fig. 1B i artikeln. Insekterna identifierades till taxonomisk familj för flugor (Diptera), skalbaggar (Coleoptera) och steklar (Hymenoptera). Överfamiljerna Chalcidoidea och Cynipoidea inom Parasitsteklar (Parasitica; Hymenoptera) identifierades enbart till överfamilj på grund av svårigheter med att familjebestämma arter inom dessa överfamiljer. Halvvingar (Hemiptera) bestämdes till familj inom skinbagggar (Heteroptera), men enbart till underordning för stritar (Auchenorrhyncha) och växtlöss (Sternorrhyncha). För att förenkla bestämningsprocessen så gjordes ingen vidare identifiering av småfjärilar (microlepidoptera) och för alla insektsordningar förutom Coleoptera, Diptera, Hymenoptera, Hemiptera och Lepidoptera identifierades arter enbart till ordning.

Filen "HRS_SpeciesData" innehåller information om varje individ som fångades under provtagningsperioden. Det inkluderar datum för fångsten ('Date', givet som DD/M); vilken fälla som individen hittades i (TrapID); tid i hh:mm (Time); tid i enbart timmar (Time_con), tid som en fraktion mellan 0 (00:00) och 1 (23:59) (Time_Num); superfamilj för varje taxon (Superfamily); taxon som varje individ delats in i (Taxon). För taxon med högre taxonomisk nivå än superfamilj anges den taxonomiska nivån i kolumnen för superfamilj.

Filen "HRS_EnviData" innehåller information om hur många individer per taxon som fångades vid varje provtagningstillfälle för de 17 mest frekventa taxa (förekommande som fler än 49 individer eller vid mer än 19 provtagningstillfällen), summerat över alla fällor. Kolumnerna "Taxon" och "Superfamily" följer samma princip som ovan, men här finns även en kolumn för taxonomisk ordning (Order). Kolumnerna för tid och datum följer samma princip som ovan. Kolumnen "ID" är en unik kombination av datum och tid anget som DDhh. T.ex tömningen 20:00 den 15:e har ID 1520. Utöver abundansen av individer för varje ID och taxa ges vädervariabler. Temperatur anges i grader Celsius (°C), vind i meter per sekund (m/s), molntäcke (cloud cover) som en fraktion mellan 0 (klar himmel) och 1 (totalt molntäcke), regn i mm, vindriktning i väderstreck och relativ luftfuktighet i %. Värdena är medelvärden från fem mätningar varje halvtimme från den förra provperioden till nästa, med undantag för nätter där medelvärden kommer från nio halvtimmesmätningar per tömning (tömning 22:00, 02:00, 06:00). Väderdatan kommer från väderstationen 327 Björklinge (Lat. 60.05042, long. 17.62149) och tillhandahålls av Trafikverket (https://www.trafikverket.se/).

All kod är skriven in R version 4.4.0 och presenteras via Rmarkdown</abstract>
      <sumDscr>
        <collDate xml:lang="en" date="2022-07-14" event="start">2022-07-14</collDate>
        <collDate xml:lang="en" date="2022-07-19" event="end">2022-07-19</collDate>
        <nation xml:lang="en" abbr="SE">Sweden</nation>
        <nation xml:lang="sv" abbr="SE">Sverige</nation>
        <dataKind xml:lang="en">Numeric</dataKind>
        <dataKind xml:lang="en">Text</dataKind>
      </sumDscr>
    </stdyInfo>
    <method>
      <dataColl>
        <collMode xml:lang="en">24 malaise traps were erected in a boreal forest in central Sweden (Lat. 60.024855, long. 17.751336) and emptied every second hour, with the exception of night (samplng events during night = 22:00, 02:00, 06:00) for five consecutive days between 14-19th of July 2022. The sampling design is described in further detail in the article (Fig. 1B). Insects were identified to taxonomic Family for Diptera, Coleoptera, and Hymenoptera, except for the superfamilies of Chalcidoidea and Cynipoidea (Hymenoptera). Chalcidoids and Cynipoids were only identified to the superfamily level, due to difficulties in assigning lower taxonomic levels without risking misidentification. Hemiptera was divided into taxonomic families for Heteroptera, and into suborders for Auchenorrhyncha and Sternorrhyncha. To simplify identification of a large group with similar morphology, all microlepidopteras were grouped as such with no further identification. Furthermore, to speed up the identification task, all insects not belonging to Diptera, Hymenoptera, Coleoptera, Lepidoptera or Hemiptera were identified to Order alone.<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=en-5.0.0">24 malaise traps were erected in a boreal forest in central Sweden (Lat. 60.024855, long. 17.751336) and emptied every second hour, with the exception of night (samplng events during night = 22:00, 02:00, 06:00) for five consecutive days between 14-19th of July 2022. The sampling design is described in further detail in the article (Fig. 1B). Insects were identified to taxonomic Family for Diptera, Coleoptera, and Hymenoptera, except for the superfamilies of Chalcidoidea and Cynipoidea (Hymenoptera). Chalcidoids and Cynipoids were only identified to the superfamily level, due to difficulties in assigning lower taxonomic levels without risking misidentification. Hemiptera was divided into taxonomic families for Heteroptera, and into suborders for Auchenorrhyncha and Sternorrhyncha. To simplify identification of a large group with similar morphology, all microlepidopteras were grouped as such with no further identification. Furthermore, to speed up the identification task, all insects not belonging to Diptera, Hymenoptera, Coleoptera, Lepidoptera or Hemiptera were identified to Order alone.</concept></collMode>
        <collMode xml:lang="sv">24 Malaisefällor sattes upp i en boreal skog i centrala Sverige  (Lat. 60.024855, long. 17.751336) och tömdes varannan timme under fem dagar, med undantag för nätter (22:00-06:00), som hade ett interval på fyra timmar (tömning 22:00, 02:00, 06:00). Malaisefällornas position i förhållande till varandra illustreras bäst via Fig. 1B i artikeln. Insekterna idenitifierades till taxonomisk familj för flugor (DIptera), skalbaggar (Coleoptera) och steklar (Hymenoptera). Överfamiljerna Chalcidiodea och Cyniopidea inom Parasitsteklar (Parasitica; Hymenoptera) identifierades enbart till överfamilj på grund av svårigheter med att familjebestämma arter inom dessa överfamiljer. Halvvingar (Hemiptera) bestämdes till familj inom skinbagggar (Heteroptera), men enbart till underordning för stritar (Auchenorrhyncha) och växtlöss (Sternorrhyncha). För att förenkla bestämningsprocessen så gjordes ingen vidare identifiering av småfjärilar (microlepidoptera) och för alla insektsordningar förutom Coleoptera, Diptera, Hymenoptera, Hemiptera och Lepidoptera identifierades arter enbart till ordning.<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=sv-5.0.0">24 Malaisefällor sattes upp i en boreal skog i centrala Sverige  (Lat. 60.024855, long. 17.751336) och tömdes varannan timme under fem dagar, med undantag för nätter (22:00-06:00), som hade ett interval på fyra timmar (tömning 22:00, 02:00, 06:00). Malaisefällornas position i förhållande till varandra illustreras bäst via Fig. 1B i artikeln. Insekterna idenitifierades till taxonomisk familj för flugor (DIptera), skalbaggar (Coleoptera) och steklar (Hymenoptera). Överfamiljerna Chalcidiodea och Cyniopidea inom Parasitsteklar (Parasitica; Hymenoptera) identifierades enbart till överfamilj på grund av svårigheter med att familjebestämma arter inom dessa överfamiljer. Halvvingar (Hemiptera) bestämdes till familj inom skinbagggar (Heteroptera), men enbart till underordning för stritar (Auchenorrhyncha) och växtlöss (Sternorrhyncha). För att förenkla bestämningsprocessen så gjordes ingen vidare identifiering av småfjärilar (microlepidoptera) och för alla insektsordningar förutom Coleoptera, Diptera, Hymenoptera, Hemiptera och Lepidoptera identifierades arter enbart till ordning.</concept></collMode>
        <collMode xml:lang="en">Biological tests<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=en-5.0.0">Biological tests</concept></collMode>
        <collMode xml:lang="sv">Biologiska provtagningar<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=sv-5.0.0">Biologiska provtagningar</concept></collMode>
      </dataColl>
    </method>
    <dataAccs>
      <useStmt>
        <restrctn xml:lang="en">Access to data through SND. Data are freely accessible.</restrctn>
        <restrctn xml:lang="sv">Åtkomst till data via SND. Data är fritt tillgängliga.</restrctn>
        <conditions elementVersion="info:eu-repo-Access-Terms vocabulary">openAccess</conditions>
      </useStmt>
    </dataAccs>
    <othrStdyMat />
  </stdyDscr>
</codeBook>