pyndat


Namepyndat JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/savalann/pydat
SummaryA toolbox for analyzing hydrological drought
upload_time2024-03-22 04:42:40
maintainerNone
docs_urlNone
authorSavalan Naser Neisary
requires_python>=3.9
licenseApache License 2.0
keywords drought analysis hydrology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # What is pydat?

 The Python Drought Analysis Tool (pydat) is a python package that automatically derives multi-year streamflow deficit Severity-Duration-Frequency (SDF) curves from streamflow data and empowers users to effortlessly create SDF curves. Also, it synthesizes daily-scale streamflow time series called streamflow analogs representing those SDFs. Alongside its core function, pydat offers several other useful commands, including:

1.	Presenting a comprehensive list of the stations in each state or watershed. 
2.	Displaying the streamflow time series of each USGS station.

 The package has been designed to address the need for streamflow deficit SDFs information and their usage in operational water management amid persistent streamflow drought conditions nationally in the United States (US). The picture below shows a sample of the SDF curves for station 03098600 in the Ohio state. 
 
 ![index](https://user-images.githubusercontent.com/67179927/226765480-5383293e-856c-4ce3-8d6a-495e0418a55c.png)
 
 
 Rainfall and flood frequency analysis methods are well established and widely used in analysis and design studies, including but not limited to stormwater management and design studies and hydraulic structures designs, etc. In contrast, no standard method(s) exist for persistent streamflow drought analysis and guidelines for water planners and managers to use in water supply planning and management studies. Although indices related to streamflow deficits are available in the literature, their limitation in usage in planning and operational way hinders their adaptation and useability among water planning and management agencies and utilities. Pydat has been developed to bridge this research and operations gap.

# Methodology

 The first step in using the pydat package is to obtain the daily streamflow time series for a given region of interest. By utilizing a service called the [National Water Information System (NWIS)](https://waterdata.usgs.gov/nwis/) it obtains the daily mean stream values of U.S. Geological Survey (USGS) stream gauge data as its default source. The user can specify the state of interest by providing different inputs such as its two-letter abbreviation, after which all relevant USGS station information and their IDs will be displayed. The pydat package builds upon the python [USGS dataretrieval package](https://github.com/DOI-USGS/dataretrieval-python/) for data retrieval from the USGS website. Furthermore, it should be noted that pydat can also work with other data sources (such as CSV files) with just a few simple tips about the data table and heading columns, as explained in the upcoming sections. 
 
 Once a station is selected, pydat develops multi-year streamflow deficit SDFs for that station, allowing the user to specify the SDF duration. The SDFs are then displayed in both tabular and visual forms for the selected duration. It is important to note that the durations are calculated based on the moving average, and the deficit severity is calculated as a departure from the long-term average flow for each duration.
 
 The final step in using pydat is calculating the daily streamflow time series for the points of the developed streamflow deficit SDFs. Since each point on the SDFs represents a specific event of a deficit level, the duration of the deficit, and the return period, a corresponding daily streamflow time series exists for that point. By linking the SDFs with daily resolution streamflow time series, the SDFs can be operationalized, providing water planners and managers with information about the duration, deficit level, and return periods of selected daily streamflow time series. This allows them to test their water supply system’s response to a range of plausible persistent streamflow deficit scenarios. Overall, pydat provides a valuable tool for water planning and management agencies and water researchers in the face of persistent streamflow drought conditions. The figure below shows the steps of the pydat package.
 
 <img width="1024" alt="methodology" src="https://user-images.githubusercontent.com/67179927/226766889-523091ce-c749-484f-8987-c7a98560cea3.png">

# Installation

To use the package first it is required to clone the repository and install the required packages. 

The code needed for doing this part in Google Colab is written in the below cells. 

Some basic Git commands are:
```
!git clone https://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@github.com/savalann/pydat.git

%cd pydat/pydat/

!pip3 install -r requirements.txt
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/savalann/pydat",
    "name": "pyndat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Drought Analysis, Hydrology",
    "author": "Savalan Naser Neisary",
    "author_email": "savalan.neisary@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/3e/d6/6e0d69109f96f0a9fe7857cbdafba8ae54035bbee47f72a1f002527444e1/pyndat-0.0.2.tar.gz",
    "platform": null,
    "description": "# What is pydat?\n\n The Python Drought Analysis Tool (pydat) is a python package that automatically derives multi-year streamflow deficit Severity-Duration-Frequency (SDF) curves from streamflow data and empowers users to effortlessly create SDF curves. Also, it synthesizes daily-scale streamflow time series called streamflow analogs representing those SDFs. Alongside its core function, pydat offers several other useful commands, including:\n\n1.\tPresenting a comprehensive list of the stations in each state or watershed. \n2.\tDisplaying the streamflow time series of each USGS station.\n\n The package has been designed to address the need for streamflow deficit SDFs information and their usage in operational water management amid persistent streamflow drought conditions nationally in the United States (US). The picture below shows a sample of the SDF curves for station 03098600 in the Ohio state. \n \n ![index](https://user-images.githubusercontent.com/67179927/226765480-5383293e-856c-4ce3-8d6a-495e0418a55c.png)\n \n \n Rainfall and flood frequency analysis methods are well established and widely used in analysis and design studies, including but not limited to stormwater management and design studies and hydraulic structures designs, etc. In contrast, no standard method(s) exist for persistent streamflow drought analysis and guidelines for water planners and managers to use in water supply planning and management studies. Although indices related to streamflow deficits are available in the literature, their limitation in usage in planning and operational way hinders their adaptation and useability among water planning and management agencies and utilities. Pydat has been developed to bridge this research and operations gap.\n\n# Methodology\n\n The first step in using the pydat package is to obtain the daily streamflow time series for a given region of interest. By utilizing a service called the [National Water Information System (NWIS)](https://waterdata.usgs.gov/nwis/) it obtains the daily mean stream values of U.S. Geological Survey (USGS) stream gauge data as its default source. The user can specify the state of interest by providing different inputs such as its two-letter abbreviation, after which all relevant USGS station information and their IDs will be displayed. The pydat package builds upon the python [USGS dataretrieval package](https://github.com/DOI-USGS/dataretrieval-python/) for data retrieval from the USGS website. Furthermore, it should be noted that pydat can also work with other data sources (such as CSV files) with just a few simple tips about the data table and heading columns, as explained in the upcoming sections. \n \n Once a station is selected, pydat develops multi-year streamflow deficit SDFs for that station, allowing the user to specify the SDF duration. The SDFs are then displayed in both tabular and visual forms for the selected duration. It is important to note that the durations are calculated based on the moving average, and the deficit severity is calculated as a departure from the long-term average flow for each duration.\n \n The final step in using pydat is calculating the daily streamflow time series for the points of the developed streamflow deficit SDFs. Since each point on the SDFs represents a specific event of a deficit level, the duration of the deficit, and the return period, a corresponding daily streamflow time series exists for that point. By linking the SDFs with daily resolution streamflow time series, the SDFs can be operationalized, providing water planners and managers with information about the duration, deficit level, and return periods of selected daily streamflow time series. This allows them to test their water supply system\u2019s response to a range of plausible persistent streamflow deficit scenarios. Overall, pydat provides a valuable tool for water planning and management agencies and water researchers in the face of persistent streamflow drought conditions. The figure below shows the steps of the pydat package.\n \n <img width=\"1024\" alt=\"methodology\" src=\"https://user-images.githubusercontent.com/67179927/226766889-523091ce-c749-484f-8987-c7a98560cea3.png\">\n\n# Installation\n\nTo use the package first it is required to clone the repository and install the required packages. \n\nThe code needed for doing this part in Google Colab is written in the below cells. \n\nSome basic Git commands are:\n```\n!git clone https://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@github.com/savalann/pydat.git\n\n%cd pydat/pydat/\n\n!pip3 install -r requirements.txt\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A toolbox for analyzing hydrological drought",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/savalann/pydat"
    },
    "split_keywords": [
        "drought analysis",
        " hydrology"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a9bfb759e24b376ff8047f8cf0e458d1b5f61b935315b8794fd18d70aa1806e6",
                "md5": "7139c65eabb8d6f510d8ec891059b992",
                "sha256": "15f5dc6b79417adfa96faaa90a27427579c2b95f84180e5b951a953b67aa5018"
            },
            "downloads": -1,
            "filename": "pyndat-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7139c65eabb8d6f510d8ec891059b992",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 17340,
            "upload_time": "2024-03-22T04:42:38",
            "upload_time_iso_8601": "2024-03-22T04:42:38.982999Z",
            "url": "https://files.pythonhosted.org/packages/a9/bf/b759e24b376ff8047f8cf0e458d1b5f61b935315b8794fd18d70aa1806e6/pyndat-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ed66e0d69109f96f0a9fe7857cbdafba8ae54035bbee47f72a1f002527444e1",
                "md5": "1a10d9d0c25cc42e111ce5ac40637c74",
                "sha256": "26e9db455fd842c2530405a5c281bf84a5e38dddb63021c56b0fcad41ebf2bec"
            },
            "downloads": -1,
            "filename": "pyndat-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1a10d9d0c25cc42e111ce5ac40637c74",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 12519,
            "upload_time": "2024-03-22T04:42:40",
            "upload_time_iso_8601": "2024-03-22T04:42:40.173319Z",
            "url": "https://files.pythonhosted.org/packages/3e/d6/6e0d69109f96f0a9fe7857cbdafba8ae54035bbee47f72a1f002527444e1/pyndat-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-22 04:42:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "savalann",
    "github_project": "pydat",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyndat"
}
        
Elapsed time: 0.21478s