Skip to content

API for retrieval of catchment data for land cover and livestock

License

Notifications You must be signed in to change notification settings

GOBLIN-Proj/catchment_data_api

Repository files navigation

catchment_data_api

license python Code style: black

API for retrieval of catchment data for land cover and livestock. The package uses data derived from the National Landcover Map, the Teagasc Soils Map and LUCAS crop map.

Installation

Install from github

pip install "cathment_data_api@git+https://github.com/GOBLIN-Proj/catchment_data_api.git@main" 

Install from PyPI

pip install catchment_data_api

Usage

from catchment_data_api import catchment_data_api

def main():
    api = catchment_data_api.CatchmentDataAPI()
    df = api.get_catchment_livestock_data()

    print(df.head())

    df1 = api.get_catchment_livestock_data_by_catchment_name("blackwater")

    print(df1.head())

    print(api.get_catchment_names())

    df2 = api.get_catchment_livestock_total_pop_by_catchment_name("blackwater")

    print(df2.head())



if __name__ == "__main__":
    main()

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

catchment_data_api was created by Colm Duffy. It is licensed under the terms of the MIT license.

Credits

catchment_data_api was created with cookiecutter and the py-pkgs-cookiecutter template.

About

API for retrieval of catchment data for land cover and livestock

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages