Skip to main content

This library code execute aggregate analysis for the Quality of Life Exporer variables

Project description

Aggregate Data Analysis with ArcPy

This package provides a Python class aggregate tailored for analyzing and aggregating spatial data using ArcPy. The class is designed for Urban Institute's Quality of Life (QOL) variables, offering methods for merging, spatial joining, and exporting data to CSV files.

Installation

Install aggregate from PyPI using pip:

pip install aggqol

Usage

import aggqol as ag

A = ag.aggregate()

A.withinNPA('NPA','Banks','BanksNPA')

A.withNPAID('CreditUnion','NPA', 'CreditNPAID')

Methods

Methods __init__(self, InFeatureClass)

Initialize the aggregate class with the input feature class.

merge(self, *FeatureClassesToBeMerged)

Combine feature classes from multiple sources into one feature class for analysis.

withinNPA(self, NPA, OutputName)

Aggregate all points feature classes that are completely contained by an NPA polygon.

withNPAID(self, NPA, OutputName) Assign NPA ID to all point feature classes that are completely within an NPA.

exportcsv(self, OutputDirectory, PopulationFile, PopulationColumn, FileName)

Export the results to a CSV file, joining population data and calculating summary statistics.

Additonal Information

  • The aggregate class is initialized with no arguments.This class has two methods:
    • The withinNPA method: This method aggregates point features classes that are completely contained by each NPA The withinNPA method takes two arguments:

      • NPA feature class
      • Point feature class to be aggregated
      • Name of output feature class
    • The withNPAID method: This method assign NPA IDs to point feature classes that are completely within each NPA

      • Point feature classes
      • NPA feature class
      • Name of output feature class

License This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qolagg-1.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

qolagg-1.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file qolagg-1.4.tar.gz.

File metadata

  • Download URL: qolagg-1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for qolagg-1.4.tar.gz
Algorithm Hash digest
SHA256 e4e4f0693ed19bd2ef7b72e5b92ecdea5935a1285f94a798196170f3f8747854
MD5 3efa4d28b29949c33db88a9078671341
BLAKE2b-256 5add6e83d022edebb6274e9c63d5820acadf1325db70e44e5f227d95b76da4fb

See more details on using hashes here.

File details

Details for the file qolagg-1.4-py3-none-any.whl.

File metadata

  • Download URL: qolagg-1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for qolagg-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bef5b43a3f2fbc9006beef7cfdcff1a244a22d3c430fee0c41338ae31c87c6b5
MD5 975fec3b1a780466a87c11c44a21053d
BLAKE2b-256 bab5f0ba767f8afec7f428a4e5de1d1901d7c146b944d573563c36fd4998e93f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page