<?xml version='1.0' encoding='UTF-8'?>
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idinfo>
    <citation>
      <citeinfo>
        <origin>Julieta Gomez-Fragoso</origin>
        <origin>Yanire Martinez-Martinez</origin>
        <pubdate>20260330</pubdate>
        <title>Scripts for Running Water Quality Trends Analysis for Selected Streams throughout Puerto Rico, Water Years 1958 - 2022</title>
        <geoform>publication</geoform>
        <onlink>https://doi.org/10.5066/P13YAAPN</onlink>
      </citeinfo>
    </citation>
    <descript>
      <abstract>This Child Item contains the scripts for running water quality trends analysis for selected streams throughout Puerto Rico, Water Years 1958–2022 and  a README file (readme_scripts.txt) that describes the structure of the attached folder titled Scripts.zip. 

Scripts.zip – contains the following R scripts:
Data_retrieval_screening.R - script used to generate the input file that would be used in the trend analysis. 
Trend_analysis_script_POR.R - script for running trend analysis over the full length of record. 
MK_script_identicalPOR.R - script for running trend analysis for two time periods.</abstract>
      <purpose>The purpose of this data release is to provide all the scripts that were used to complete the trend analysis of water quality data from streams in Puerto Rico; the basic steps for running the scripts are provided in this file and also as comments in each script. The trend analyses were done using the Mann-Kendall and the Seasonal Kendall trend tests; this latter trend test used both flow adjusted and non-flow adjusted water quality data. Trends are evaluated over the full length of record at each site and over the following two (2) periods: 2008-2022 (POR1), and 2013-2022 (POR2)</purpose>
    </descript>
    <timeperd>
      <timeinfo>
        <rngdates>
          <begdate>1958</begdate>
          <enddate>2022</enddate>
        </rngdates>
      </timeinfo>
      <current>ground condition</current>
    </timeperd>
    <status>
      <progress>Complete</progress>
      <update>None planned</update>
    </status>
    <spdom>
      <descgeog>World</descgeog>
      <bounding>
        <westbc>-67.3242</westbc>
        <eastbc>-65.1874</eastbc>
        <northbc>18.6827</northbc>
        <southbc>17.7801</southbc>
      </bounding>
    </spdom>
    <keywords>
      <theme>
        <themekt>ISO 19115 Topic Category</themekt>
        <themekey>biota</themekey>
      </theme>
      <theme>
        <themekt>Water quality trends</themekt>
        <themekey>Mann Kendall Trend test</themekey>
        <themekey>Seasonal Kendall trend test</themekey>
        <themekey>Major ions</themekey>
        <themekey>Ammonia</themekey>
        <themekey>Temperature, water</themekey>
        <themekey>Specific conductance</themekey>
        <themekey>Nitrite</themekey>
        <themekey>Inorganic nitrogen (nitrate and nitrite)</themekey>
        <themekey>Phosphorus</themekey>
        <themekey>Copper</themekey>
        <themekey>Lead</themekey>
        <themekey>Magnesium</themekey>
        <themekey>Cadmium</themekey>
        <themekey>Chromium</themekey>
        <themekey>Stream flow, instantaneous</themekey>
        <themekey>Dissolved oxygen</themekey>
        <themekey>Total nitrogen</themekey>
        <themekey>Selenium</themekey>
      </theme>
      <theme>
        <themekt>USGS Metadata Identifier</themekt>
        <themekey>USGS:65b0fbecd34ef34c35075790</themekey>
      </theme>
      <place>
        <placekt>Common geographic areas</placekt>
        <placekey>Puerto Rico</placekey>
        <placekey>Caribbean Islands</placekey>
      </place>
    </keywords>
    <accconst>None.  Please see 'Distribution Info' for details.</accconst>
    <useconst>None.  Users are advised to read the dataset's metadata thoroughly to understand appropriate use and data limitations.</useconst>
    <ptcontac>
      <cntinfo>
        <cntperp>
          <cntper>Julieta M Gomez-Fragoso</cntper>
          <cntorg>U.S. Geological Survey, SOUTHEAST REGION</cntorg>
        </cntperp>
        <cntpos>Civil Engineer</cntpos>
        <cntaddr>
          <addrtype>mailing address</addrtype>
          <address>B Street, Lot 38</address>
          <city>Bayamon</city>
          <state>PR</state>
          <postal>00961</postal>
          <country>US</country>
        </cntaddr>
        <cntvoice>787-749-7479</cntvoice>
        <cntfax>787-749-7401</cntfax>
        <cntemail>jgomez-fragoso@usgs.gov</cntemail>
      </cntinfo>
    </ptcontac>
    <datacred>Water Quality Portal (www.waterqualitydata.us)</datacred>
  </idinfo>
  <dataqual>
    <attracc>
      <attraccr>No formal attribute accuracy tests were conducted.</attraccr>
    </attracc>
    <logic>Data were checked for duplication and expected ranges.</logic>
    <complete>This data set represents surface-water-quality data retrieved from the Water Quality Portal. Users are advised to read the rest of the metadata record for additional details.</complete>
    <posacc>
      <horizpa>
        <horizpar>No formal positional accuracy tests were conducted.</horizpar>
      </horizpa>
      <vertacc>
        <vertaccr>No formal positional accuracy tests were conducted.</vertaccr>
      </vertacc>
    </posacc>
    <lineage>
      <procstep>
        <procdesc>This data release contains the input data that were used for trend analysis, documentation of the R scripts used for preparing data and conducting trend tests, and the output files from the trend model.</procdesc>
        <procdate>2024</procdate>
      </procstep>
    </lineage>
  </dataqual>
  <distinfo>
    <distrib>
      <cntinfo>
        <cntperp>
          <cntper>GS ScienceBase</cntper>
          <cntorg>U.S. Geological Survey</cntorg>
        </cntperp>
        <cntaddr>
          <addrtype>mailing address</addrtype>
          <address>Denver Federal Center, Building 810, Mail Stop 302</address>
          <city>Denver</city>
          <state>CO</state>
          <postal>80225</postal>
          <country>United States</country>
        </cntaddr>
        <cntvoice>1-888-275-8747</cntvoice>
        <cntemail>sciencebase@usgs.gov</cntemail>
      </cntinfo>
    </distrib>
    <distliab>Unless otherwise stated, all data, metadata and related materials are considered to satisfy the quality standards relative to the purpose for which the data were collected. Although these data and associated metadata have been reviewed for accuracy and completeness and approved for release by the U.S. Geological Survey (USGS), no warranty expressed or implied is made regarding the display or utility of the data on any other system or for general or scientific purposes, nor shall the act of distribution constitute any such warranty.</distliab>
    <stdorder>
      <digform>
        <digtinfo>
          <formname>Digital Data</formname>
        </digtinfo>
        <digtopt>
          <onlinopt>
            <computer>
              <networka>
                <networkr>https://doi.org/10.5066/P13YAAPN</networkr>
              </networka>
            </computer>
          </onlinopt>
        </digtopt>
      </digform>
      <fees>None</fees>
    </stdorder>
  </distinfo>
  <metainfo>
    <metd>20260330</metd>
    <metc>
      <cntinfo>
        <cntperp>
          <cntper>Julieta M Gomez-Fragoso</cntper>
          <cntorg>U.S. Geological Survey, SOUTHEAST REGION</cntorg>
        </cntperp>
        <cntpos>Civil Engineer</cntpos>
        <cntaddr>
          <addrtype>mailing address</addrtype>
          <address>B Street, Lot 38</address>
          <city>Bayamon</city>
          <state>PR</state>
          <postal>00961</postal>
          <country>US</country>
        </cntaddr>
        <cntvoice>787-749-7479</cntvoice>
        <cntfax>787-749-7401</cntfax>
        <cntemail>jgomez-fragoso@usgs.gov</cntemail>
      </cntinfo>
    </metc>
    <metstdn>FGDC Biological Data Profile of the Content Standard for Digital Geospatial Metadata</metstdn>
    <metstdv>FGDC-STD-001.1-1999</metstdv>
  </metainfo>
</metadata>
