How yous3ry/python_automated_dca works
This repository automates petroleum-well decline-curve analysis, from production-history acquisition through change detection, decline fitting, and forecasting. The principal workflow is the multiwell database run in Compiled_Script.py; Python_DCA.py also provides a sample-data, single-well analysis and plot. README documentation establishes the integrated database workflow and forecast export, while excerpts show the analysis steps and plotting. The R change-detection implementation is documented but not present in the supplied tree; connections not evidenced by excerpts or README are omitted.
Main entry points: Compiled_Script.py Multiwell runner · Python_DCA.py Single-well analysis · Change_Detection.R Change detection · DB_Connect.py Database access
Components 14
Data acquisition
- Multiwell runner
Compiled_Script.py - Database access
DB_Connect.py - Sample well data
Sample_Well.csv
Well analysis
- Single-well analysis
Python_DCA.py - Change detection
Change_Detection.R - EnvCpt
- Stable-period selection
Python_DCA.py - Decline fitting
Python_DCA.py - Rate forecasting
Python_DCA.py
Forecast outputs
- Well summaries
Compiled_Script.py - Field forecast
Compiled_Script.py - Forecast plots
Python_DCA.py
Other components
- Analyst
- Production database
Connections 15
- Analyst → Multiwell runner: runs
README.md - Multiwell runner → Database access: reads well data
README.md - Database access → Production database: queries
DB_Connect.py - Analyst → Single-well analysis: runs
README.md - Single-well analysis → Sample well data: loads
Python_DCA.py - Single-well analysis → Change detection: detects changes
README.md - Change detection → EnvCpt: calls
- Single-well analysis → Stable-period selection: selects period
Python_DCA.py - Stable-period selection → Decline fitting: provides history
Python_DCA.py - Decline fitting → Rate forecasting: provides parameters
Python_DCA.py - Single-well analysis → Forecast plots: plots forecast
Python_DCA.py - Multiwell runner → Well summaries: summarizes wells
Compiled_Script.py - Multiwell runner → Field forecast: aggregates forecast
Compiled_Script.py - Multiwell runner → Change detection: detects changes
README.md - Multiwell runner → Rate forecasting: forecasts wells