41 lines
956 B
Python
41 lines
956 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Submit NSRDB polygon archive requests for county-average GHI.
|
|
|
|
This is a GHI-specific wrapper around request_nsrdb_county_polygon_archives.py.
|
|
It reuses the shared state machine, polygon tiling, site-count, Polar fallback,
|
|
pacing, and manifest logic with GHI-specific defaults.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
import request_nsrdb_county_polygon_archives as polygon_request
|
|
|
|
|
|
DEFAULT_ARGS = [
|
|
"--requests-csv",
|
|
"data/nrel/county_polygon_ghi_request_manifest.csv",
|
|
"--error-csv",
|
|
"data/nrel/county_polygon_ghi_error_log.csv",
|
|
"--response-dir",
|
|
"data/nrel/polygon_request_responses",
|
|
"--artifact-label",
|
|
"ghi",
|
|
"--attributes",
|
|
"ghi",
|
|
]
|
|
|
|
|
|
def main() -> None:
|
|
"""Run the shared polygon requester with GHI-specific defaults."""
|
|
polygon_request.main(
|
|
[*DEFAULT_ARGS, *sys.argv[1:]],
|
|
description=__doc__,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|