{"id":1124,"date":"2023-10-01T14:54:34","date_gmt":"2023-10-01T18:54:34","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/?post_type=chapter&#038;p=1124"},"modified":"2024-09-24T20:42:18","modified_gmt":"2024-09-25T00:42:18","slug":"tutorial-uncertainty-in-time-series-data","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/chapter\/tutorial-uncertainty-in-time-series-data\/","title":{"raw":"Tutorial: Uncertainty in time series data","rendered":"Tutorial: Uncertainty in time series data"},"content":{"raw":"<p style=\"font-weight: 400\">The Multi-sim tutorial is designed to address uncertainty in time series data, be they environmental forcing functions, fishing effort, biomass series or other, see the EwE User Guide guidelines for <a href=\"https:\/\/pressbooks.bccampus.ca\/eweguide\/chapter\/multi-sim\/\">Multi-sim<\/a>.. Use the Anchovy Bay true.ewemdb database (<a href=\"https:\/\/ln5.sync.com\/dl\/20358ca30\/9zdktdsp-hiphthjc-gxetndrk-pgr4vvc4\">download<\/a>). Open the database, and go to <em>Ecosim &gt; Tools &gt; Multi-sim<\/em>. The EwE\u00a0Multi-sim can read in time series files with varying forcing functions. You can get the format for the CSV file to use if you click <em>Example<\/em> on the Multi-sim interface. For your own use, use that file derived from your own model. Here, we will instead download a zipped file that holds a folder with 20 CSV files. Each of these 20 have a time series of environmental productivity that is derived as auto-correlated values based on the original true time series values.<\/p>\r\n<p style=\"font-weight: 400\">Download the zipped <a href=\"https:\/\/ln5.sync.com\/dl\/ab40ff750\/5dcybhu2-p4x9bemi-e3b6a3vd-4camjk2k\">multisim csv.folder<\/a>, unzip and place it somewhere (where you can find it again).<\/p>\r\n<strong><img class=\"alignnone size-full wp-image-1125 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1.png\" alt=\"\" width=\"977\" height=\"172\" \/>Figure 1. Top part of one of the Anchovy Bay time series files used for the Multi-sim analysis in this tutorial.<\/strong>\r\n<p style=\"font-weight: 400\">Each CSV file looks like this, only difference is that the values in the Fitting column varies between files, but any of the time series in file can be varied, if so desired.<\/p>\r\n<p style=\"font-weight: 400\">Now check that the Fitting time series is applied to primary production. Go <em>Ecosim &gt; Input &gt; Forcing function &gt; Apply forcing (producer)<\/em> and check that F2 is applied to primary producers (or apply it, if it is not).<\/p>\r\n<p style=\"font-weight: 400\">Here\u2019s a sample showing how the \u201cFitting\u201d time series look for four of the CSV files,<\/p>\r\n<strong><img class=\"size-full wp-image-1126 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2.png\" alt=\"\" width=\"381\" height=\"266\" \/>\r\nFigure 2. Four series of auto-correlated time series for environmental productivity. The original time series is indicated in red on each plot.<\/strong>\r\n<p style=\"font-weight: 400\">On the Multi-sim interface, <em>Input &gt; Source<\/em> folder, select <em>Choose<\/em>, and browse to find the folder with the CSV files that you just downloaded. Select the 20 CSV files, by clicking <em>All<\/em> in the right column.<\/p>\r\n<p style=\"font-weight: 400\">On <em>Output<\/em>, select where you want Multi-sim to write output. Select which indicators you want to get output of, e.g., <em>Biomass<\/em>. Next click <em>Run<\/em>. Multi-sim will now run Ecosim 20 times, each time with a different time series for the environmental forcing function read in. If saving biomass as in this example, it will make a folder for each of the 20 runs, and save two files in each, biomass_annual.csv and biomass_monthly.csv. This structure lends itself easily for analysis in R.<\/p>\r\n<p style=\"font-weight: 400\">Compare the time series in some of the output files, play!<\/p>\r\n<p style=\"font-weight: 400\">There\u2019s a log file saved that shows what Multi-sim has done, in Figure 3 is an example.<\/p>\r\n<strong><img class=\"size-full wp-image-1127 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3.png\" alt=\"\" width=\"906\" height=\"597\" \/>\r\nFigure 3. Log-file from Anchovy Bay Multi-sim run<\/strong>","rendered":"<p style=\"font-weight: 400\">The Multi-sim tutorial is designed to address uncertainty in time series data, be they environmental forcing functions, fishing effort, biomass series or other, see the EwE User Guide guidelines for <a href=\"https:\/\/pressbooks.bccampus.ca\/eweguide\/chapter\/multi-sim\/\">Multi-sim<\/a>.. Use the Anchovy Bay true.ewemdb database (<a href=\"https:\/\/ln5.sync.com\/dl\/20358ca30\/9zdktdsp-hiphthjc-gxetndrk-pgr4vvc4\">download<\/a>). Open the database, and go to <em>Ecosim &gt; Tools &gt; Multi-sim<\/em>. The EwE\u00a0Multi-sim can read in time series files with varying forcing functions. You can get the format for the CSV file to use if you click <em>Example<\/em> on the Multi-sim interface. For your own use, use that file derived from your own model. Here, we will instead download a zipped file that holds a folder with 20 CSV files. Each of these 20 have a time series of environmental productivity that is derived as auto-correlated values based on the original true time series values.<\/p>\n<p style=\"font-weight: 400\">Download the zipped <a href=\"https:\/\/ln5.sync.com\/dl\/ab40ff750\/5dcybhu2-p4x9bemi-e3b6a3vd-4camjk2k\">multisim csv.folder<\/a>, unzip and place it somewhere (where you can find it again).<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1125 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1.png\" alt=\"\" width=\"977\" height=\"172\" srcset=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1.png 977w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1-300x53.png 300w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1-768x135.png 768w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1-65x11.png 65w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1-225x40.png 225w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture1-350x62.png 350w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/>Figure 1. Top part of one of the Anchovy Bay time series files used for the Multi-sim analysis in this tutorial.<\/strong><\/p>\n<p style=\"font-weight: 400\">Each CSV file looks like this, only difference is that the values in the Fitting column varies between files, but any of the time series in file can be varied, if so desired.<\/p>\n<p style=\"font-weight: 400\">Now check that the Fitting time series is applied to primary production. Go <em>Ecosim &gt; Input &gt; Forcing function &gt; Apply forcing (producer)<\/em> and check that F2 is applied to primary producers (or apply it, if it is not).<\/p>\n<p style=\"font-weight: 400\">Here\u2019s a sample showing how the \u201cFitting\u201d time series look for four of the CSV files,<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1126 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2.png\" alt=\"\" width=\"381\" height=\"266\" srcset=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2.png 381w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2-300x209.png 300w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2-65x45.png 65w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2-225x157.png 225w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture2-350x244.png 350w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><br \/>\nFigure 2. Four series of auto-correlated time series for environmental productivity. The original time series is indicated in red on each plot.<\/strong><\/p>\n<p style=\"font-weight: 400\">On the Multi-sim interface, <em>Input &gt; Source<\/em> folder, select <em>Choose<\/em>, and browse to find the folder with the CSV files that you just downloaded. Select the 20 CSV files, by clicking <em>All<\/em> in the right column.<\/p>\n<p style=\"font-weight: 400\">On <em>Output<\/em>, select where you want Multi-sim to write output. Select which indicators you want to get output of, e.g., <em>Biomass<\/em>. Next click <em>Run<\/em>. Multi-sim will now run Ecosim 20 times, each time with a different time series for the environmental forcing function read in. If saving biomass as in this example, it will make a folder for each of the 20 runs, and save two files in each, biomass_annual.csv and biomass_monthly.csv. This structure lends itself easily for analysis in R.<\/p>\n<p style=\"font-weight: 400\">Compare the time series in some of the output files, play!<\/p>\n<p style=\"font-weight: 400\">There\u2019s a log file saved that shows what Multi-sim has done, in Figure 3 is an example.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1127 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3.png\" alt=\"\" width=\"906\" height=\"597\" srcset=\"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3.png 906w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3-300x198.png 300w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3-768x506.png 768w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3-65x43.png 65w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3-225x148.png 225w, https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-content\/uploads\/sites\/1902\/2023\/10\/Picture3-350x231.png 350w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><br \/>\nFigure 3. Log-file from Anchovy Bay Multi-sim run<\/strong><\/p>\n","protected":false},"author":1909,"menu_order":11,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[49],"contributor":[],"license":[],"class_list":["post-1124","chapter","type-chapter","status-publish","hentry","chapter-type-numberless"],"part":1094,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/chapters\/1124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/wp\/v2\/users\/1909"}],"version-history":[{"count":5,"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/chapters\/1124\/revisions"}],"predecessor-version":[{"id":2901,"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/chapters\/1124\/revisions\/2901"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/parts\/1094"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/chapters\/1124\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/pressbooks\/v2\/chapter-type?post=1124"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/wp\/v2\/contributor?post=1124"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/ewemodel\/wp-json\/wp\/v2\/license?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}