-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from USEPA/flowsa2.0-release
Flowsa2.0 release
- Loading branch information
Showing
377 changed files
with
38,762 additions
and
14,309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
method: | ||
description: "FBS" | ||
required: true | ||
default: "CAP_HAP_national_2017" | ||
default: "CAP_HAP_national_2017_m1" | ||
|
||
jobs: | ||
build: | ||
|
@@ -39,14 +39,14 @@ jobs: | |
METHOD: ${{ github.event.inputs.method }} | ||
run: | | ||
echo "Method: ${{ github.event.inputs.method }}" | ||
python flowsa/test_single_FBS.py --method $METHOD | ||
python tests/test_single_FBS.py --method $METHOD | ||
- name: Upload files | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: FBS diff files | ||
name: "${{ github.event.inputs.method }}" | ||
# A file, directory or wildcard patter that describes what to upload | ||
path: | # uses local user data dir for macos | ||
~/Library/Application Support/flowsa/FBSComparisons/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
<!-- badges: end --> | ||
|
||
# flowsa | ||
`flowsa` is a data processing library attributing resources (environmental, | ||
monetary, and human), wastes, emissions, and losses to sectors, typically | ||
`flowsa` is a data processing library attributing the flows of resources | ||
(environmental, monetary, and human), wastes, emissions, and losses to sectors, typically | ||
[NAICS codes](https://www.census.gov/naics/). `flowsa` aggregates, combines, | ||
and allocates data from a variety of sources. The sources can be found in the | ||
[GitHub wiki](https://github.com/USEPA/flowsa/wiki/Available-Data#flow-by-activity-datasets) | ||
|
@@ -23,22 +23,35 @@ created in FLOWSA are the environmental inputs to | |
## Usage | ||
### Flow-By-Activity (FBA) Datasets | ||
Flow-By-Activity datasets are formatted tables from a variety of sources. | ||
They are largely unchanged from the original data source, with the | ||
exception of formatting. A list of available FBA datasets can be found in | ||
They are largely unchanged from the original data source, except for | ||
formatting. A list of available FBA datasets can be found in | ||
the [Wiki](https://github.com/USEPA/flowsa/wiki/Available-Data#flow-by-activity-datasets). | ||
|
||
`import flowsa` \ | ||
Return list of all available FBA datasets, including years | ||
`flowsa.seeAvailableFlowByModels('FBA')` \ | ||
`flowsa.getFlowByActivity(datasource="USDA_CoA_Cropland", year=2017)` | ||
Generate and return pandas dataframe for 2014 Energy Information | ||
Administration (EIA) Manufacturing Energy Consumption Survey (MECS) land use \ | ||
`fba = flowsa.getFlowByActivity(datasource="EIA_MECS_Land", year=2014)` | ||
|
||
### Flow-By-Sector (FBS) Datasets | ||
Flow-By-Sector datasets are tables of environmental and other data | ||
attributed to [sectors](https://www.census.gov/naics/). A list of available | ||
FBS datasets can be found in the [Wiki](https://github.com/USEPA/flowsa/wiki/Available-Data#flow-by-sector-datasets). | ||
FBS datasets can be found in the | ||
[Wiki](https://github.com/USEPA/flowsa/wiki/Available-Data#flow-by-sector-datasets). | ||
|
||
`import flowsa` \ | ||
Return list of all available FBS datasets | ||
`flowsa.seeAvailableFlowByModels('FBS')` \ | ||
`flowsa.getFlowBySector('Water_national_2015_m1')` | ||
Generate and return pandas dataframe for national water withdrawals | ||
attributed to 6-digit sectors. Download all required FBA datasets from | ||
Data Commons. \ | ||
`fbs = flowsa.getFlowBySector('Water_national_2015_m1', | ||
download_FBAs_if_missing=True)` | ||
|
||
### Examples | ||
Additional example code can be found in the [examples](https://github. | ||
com/USEPA/flowsa/tree/master/examples) folder. | ||
|
||
## Installation | ||
`pip install git+https://github.com/USEPA/[email protected]#egg=flowsa` | ||
|
@@ -49,6 +62,10 @@ where vX.X.X can be replaced with the version you wish to install under | |
### Additional Information on Installation, Examples, Detailed Documentation | ||
For more information on `flowsa` see the [wiki](https://github.com/USEPA/flowsa/wiki). | ||
|
||
### Accessing datsets output by FLOWSA | ||
FBA and FBS datasets can be accessed on | ||
[EPA's Data Commons](https://dmap-data-commons-ord.s3.amazonaws.com/index.html?prefix=flowsa/) without running the Python code. | ||
|
||
## Disclaimer | ||
|
||
The United States Environmental Protection Agency (EPA) GitHub project code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.