Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

natural gas pipelines proxies #33

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Jbollenbacher
Copy link
Collaborator

This PR completes tasks:
trans_pipelines_proxy
farms_pipelines_proxy

V3_DATA_PATH
)

lower_48_and_DC = ('AL', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA', 'IA', 'ID', 'IL',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we grab the keys from the us_state_to_abbrev_dict in utils.py for this list?

if verbose: print('loading state and pipeline data')

# Load state geometries and pipeline data (keeping existing code)
state_shapes = gpd.read_file(V3_DATA_PATH / 'geospatial/cb_2018_us_state_500k/cb_2018_us_state_500k.shp')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this path into the function parameters so it is clear this file is being used in the proxy creation?

us_state_to_abbrev_dict
)

lower_48_and_DC = ('AL', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA', 'IA', 'ID', 'IL',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use values from us_state_to_abbrev_dict in utils.py for this?

###############################################################

# load state geometries for continental US
state_shapes = gpd.read_file(V3_DATA_PATH / 'geospatial/cb_2018_us_state_500k/cb_2018_us_state_500k.shp')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this path into the parameters for the function so we can see it is being used.

Copy link
Collaborator

@nkruskamp nkruskamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

John just a couple housekeeping things. Looking really good.

@@ -0,0 +1,208 @@
#%%
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add the header here before it goes to main?

@@ -0,0 +1,98 @@
#%%
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add a header here before it goes to main?

croplands_path_template: Path = sector_data_dir_path / "nass_cdl/{year}_30m_cdls_all_crop_binary.tif",

#Outputs
output_path: Annotated[Path, Product] = proxy_data_dir_path / "farms_pipeline_proxy.parquet"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove s from farms -> farm_pipelines_proxy I've already changed the actual file name.


#Outputs
output_path: Annotated[Path, Product] = (
proxy_data_dir_path / "trans_pipeline_proxy.parquet"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ADD "s" to pipelines -> trans_pipelines_proxy. I've changed the file name already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants