Checking for missing content type metadata ...

Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

Data and code for investigating phase portraits of groundwater hydrographs as indicators of fracture density in a crystalline aquifer (Berambadi catchment, India)


Authors:
Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Type: Resource
Storage: The size of this resource is 1.9 MB
Created: Nov 15, 2026 at 12:35 a.m. (UTC)
Last updated: Nov 19, 2026 at 3:41 a.m. (UTC) (Metadata update)
Published date: Nov 19, 2026 at 3:41 a.m. (UTC)
DOI: 10.4211/hs.8e5a79dfefff439cacd7bfb69efc4ca0
Citation: See how to cite this resource
Content types: CSV Content 
Sharing Status: Published
Views: 291
Downloads: 83
+1 Votes: Be the first one to 
 this.
Comments: No comments (yet)

Abstract

The resource contains data and code for investigating phase portraits of groundwater hydrographs as indicators of fracture density in a crystalline aquifer.
The study area is the Berambadi catchment (84 km²), a gneissic hard-rock watershed in the Kabini sub-basin of the Cauvery River, southern India.
The data comprise monthly hydraulic heads of 120 monitoring wells from May 2010 to July 2021 (121 dates); the logs of 84 borehole-camera surveys made between November 2025 and January 2026 (fracture depths as recorded, drilled depths and static water levels), with corrections documented from the field sheets; the catchment boundary and the 4 × 4 groundwater zonation as shapefiles; and the coordinates of all wells and boreholes.
The code derives submerged fracture density for boreholes and computes six phase-portrait descriptors for each hydrograph: lag-1 autocorrelation, falling fraction, forced-portrait loop area, EOF mode-2 loading, second-order curvature and sample entropy. It compares these with fracture density at four spatial scales and reproduces every table, figure and number in the manuscript, including the sensitivity tests.
Running code/run_all.py regenerates all results and figures in under a minute. The README describes every file, column and processing step.

Subject Keywords

Coverage

Spatial

Coordinate System/Geographic Projection:
WGS 84 EPSG:4326
Coordinate Units:
Decimal degrees
Place/Area Name:
Berambadi catchment, South Gundal basin, Karnataka, India
North Latitude
11.8152°
East Longitude
76.6608°
South Latitude
11.7257°
West Longitude
76.5149°

Temporal

Start Date:
End Date:

Content

README.md

Phase portraits of groundwater hydrographs and submerged fracture density, Berambadi catchment, India

Data and code for:

Bhaduri, B., Chaudhuri, A., Ruiz, L., & Muddu, S. Investigating Phase Portraits of Groundwater Hydrographs as Indicators of Fracture Density in a Crystalline Aquifer. Submitted to JGR: Solid Earth.

Corresponding author: Baibaswata Bhaduri (bbhaduri@ucdavis.edu)

The package computes six phase-portrait descriptors of 120 monthly groundwater-level records (2010–2021), compares them with submerged fracture density (FD) derived from 84 borehole-camera logs (83 used) at four spatial scales, and reproduces every number in Tables 2 and 3, every quantity quoted in the text, and Figures 1–8, A1 and A2 of the manuscript. Every quantity is computed from the files in data/; nothing is entered by hand except the archived SampEn values (see Notes), whose effect is checked by a sensitivity test, as are the choices made in deriving FD from the camera logs.

Contents

data/ input data (read by the code) heads_m.csv hydraulic head, m, 121 dates x 120 wells monitoring_wells.csv well coordinates and sample entropy camera_boreholes_raw_84.csv camera logs of the 84 surveyed boreholes (fracture depths as recorded, feet) camera_log_corrections.csv documented corrections of 7 log entries and 1 field exclusion, from the field sheets india_outline_naturalearth.geojson India outline for the Figure 1 inset (Natural Earth, public domain) shapefiles.zip ESRI shapefiles, WGS 84 / UTM zone 43N (EPSG:32643), each with .prj; the code reads them from the zip, so it need not be extracted: catchment_boundary.* Berambadi catchment boundary zones_4x4.* original 4 x 4 zonation; its extent defines all grid scales monitoring_wells.* 120 monitoring wells (points) code/ portraits.py analysis library (preprocessing, descriptors, scales, statistics) run_analysis.py writes all results to results/ make_figures.py, figstyle.py draw Figures 1-8, A1 and A2 to figures/ (PDF; PNG is also written when run) run_all.py runs both results/ CSV outputs and a zipped camera-borehole shapefile (regenerated by the code) figures/ Figure1.pdf ... Figure8.pdf, FigureA1.pdf, FigureA2.pdf requirements.txt exact package versions used to produce the archived outputs

Where each figure and table comes from

Manuscript Code Result files
Figure 1, study area and data figure1() camera_boreholes_fd.csv
Figure 2, spatial scales figure2() scale_units.csv, camera_boreholes_fd.csv
Figure 3, shared signal and persistence figure3() eof_variance.csv, eof_mode_scores.csv, descriptors_by_well.csv (r1)
Figure 4, correlation across scales figure4() table2_correlations_long.csv, table2_summary.csv, bootstrap_A_minus_l2.csv
Figure 5, descriptors against FD at 8 × 8 figure5() scale_units.csv (8 × 8 rows)
Figure 6, portraits by FD class figure6() descriptors_by_well.csv (FD_class_8x8_cell)
Figure 7, timing of the seasonal response figure7() descriptors_by_well.csv, classification_8x8_cells.csv, representative_wells.csv
Figure 8, tertile classes at 8 × 8 figure8() classification_8x8_cells.csv, confusion_matrices_8x8.csv
Figure A1, portrait constructions figureA1() representative_wells.csv
Figure A2, effect of differencing figureA2() descriptors_by_well.csv (seasonal_share_*)
Table 2 run_analysis.py table2_abs_correlation.csv, table2_summary.csv
Table 3 run_analysis.py table3_sensitivity.csv (all rows of each case in sensitivity_tests.csv)

How to run

pip install -r requirements.txt python code/run_all.py # under a minute; or run the two steps separately: python code/run_analysis.py # results/*.csv python code/make_figures.py # all figures; add names for selected figures, e.g. "3 7 A1"

Archived outputs were produced with Python 3.13.18, numpy 2.5.3, pandas 3.0.5, scipy 1.18.1, matplotlib 3.11.2, pyshp 3.1.6 and shapely 2.2.0 on Linux (pinned in requirements.txt). Figures use Arial when it is installed and otherwise Liberation Sans, which has identical character widths. The paired bootstrap uses a fixed seed (SEED = 7 in portraits.py), so results are reproducible run to run.

Descriptors

Name in files Symbol Tier Reference Definition (manuscript)
r1 r₁ simple self lag-1 autocorrelation of the standardized head over valid monthly steps (Table 1)
F F moderate self share of valid monthly steps in which the standardized head falls (Table 1)
A A moderate catchment signed loop area per step of the detrended, standardized head against its catchment reference (Table 1; Eqs. A2, A3)
l2 ℓ₂ moderate catchment loading on the second EOF mode of the detrended, standardized heads of all wells (Table 1; Eq. A4)
c2 c₂ complex self quadratic coefficient of the least-squares fit of Δ²z on Δz and (Δz)² over steps with two valid increments (Table 1; Eq. A5)
SampEn SampEn complex self sample entropy, m = 2, tolerance 0.2 standard deviations (Table 1; Eq. A6); archived input value, see Notes

Expected sign of the correlation with FD (used to orient descriptors for classification): negative for r1, F, A and c2; positive for l2 and SampEn.

Data dictionary

All coordinates are WGS 84 / UTM zone 43N (EPSG:32643), meters. Blank cells are missing values.

heads_m.csv: Date (YYYY-MM-DD), then one column per monitoring well (D001 ... D153). Values are hydraulic head h = −(depth to water below ground), m; heads are relative to the ground surface at each well. 121 dates from 2010-05-01 to 2021-07-19 (median interval 31 days); blank = not measured (0.6% of values). Source: Kabini Critical Zone Observatory (SNO M-TROPICS, OZCAR research infrastructure, https://mtropics.obs-mip.fr/).

monitoring_wells.csv: well_id; x_m, y_m (m); SampEn (dimensionless), the sample entropy of the 2011–2020 depth-to-water series from the original analysis (see Notes).

camera_boreholes_raw_84.csv: camera logs of all 84 surveyed boreholes, depths in feet below ground as recorded: camera_id; lat_deg, lon_deg (WGS 84); x_m, y_m (m); drilled_depth_ft; deepest_fracture_ft; n_fractures_all (number of logged intersections); fracture_depths_ft (comma-separated depths or depth ranges of visible fracture intersections; text in parentheses, such as BG for boulder gap, annotates an entry); casing_depth_ft; static_water_level_ft (at the time of the survey); dry_source_depths_ft (depths reported as dry); diameter_in (borehole diameter, inches). Imagery was collected between November 2025 and January 2026 with an R-Cam 1000 HD water-well inspection camera; this release contains the logs, not the imagery.

camera_log_corrections.csv: camera_id; field (column of camera_boreholes_raw_84.csv affected); recorded (value on the field sheet); corrected (value used; blank = borehole not used); basis. Two fracture-depth entries have transcription errors (C003: periods typed for commas; C040: commas lost when the entry was stored as a number). Five boreholes (C030, C031, C032, C050, C060) are recorded on the field sheet with an asterisk because they are closed above their reported drilled depth; the recorded depth is the depth reached by the camera and is used as the logged length, as it is for the other closed boreholes, whose closed depth was entered without an asterisk. C062 (closed at 25 ft) is marked on the field sheet as not to be considered and is not used.

Processing decisions

All are implemented in code/portraits.py; manuscript sections in brackets.

  1. Missing heads are filled by linear interpolation in sample index, nearest value at the ends [2.2].
  2. Monthly increments that span more than 50 days are excluded (index set V: 116 of 120 steps) [3.1].
  3. z: head standardized with the sample SD. z̃: head minus an ordinary least-squares linear trend in time, then standardized [Eq. 2]. c₂ uses the first and second differences of z [Table 1].
  4. Catchment reference: median of the other 119 wells at each date, detrended and standardized [Eq. 3].
  5. EOF: singular value decomposition of the column-centered 121 × 120 matrix of z̃. Mode-1 loadings are oriented positive; the sign of mode 2 is set so that its score series leads mode 1 [Appendix A]. Scores of modes 1 and 2 are standardized; the lead of mode 2 over mode 1 (48 days) is the phase difference of their annual harmonics [Figure 3c].
  6. Submerged fracture density [2.3; derive_camera_fd()]. The corrections of camera_log_corrections.csv are applied first. Each comma-separated entry of fracture_depths_ft is one intersection, and a depth range is one fracture zone placed at its upper limit. The water table at a borehole is the mean 2011–2020 depth to water (non-missing monthly values) of its nearest monitoring well; an intersection deeper than that is submerged. All boreholes except C062 are used (83). FD of a borehole = submerged intersections / logged length; pooled FD of a unit = sum of submerged intersections / sum of logged lengths of its boreholes [Eq. 1]. derive_camera_fd() also takes wt_stat='median', corrected=False (logs as recorded: 76 usable boreholes) and screen=True (local outlier screen: a borehole is set aside when the absolute modified z-score of its FD against its 5 nearest usable boreholes exceeds 3.5, Iglewicz & Hoaglin, 1993, with z = 0.6745 (FD − median) / MAD, or (FD − median) / (1.2533 × mean absolute deviation) when the MAD of the neighbors is 0); these are the sensitivity tests of Section 4.6.
  7. Scales: each borehole is paired with its nearest monitoring well (Euclidean distance); grid cells subdivide the extent of the 4 × 4 zonation (669 116–680 402 m E, 1 299 627–1 305 449 m N); a cell is active if it holds at least one borehole and one monitoring well; descriptors are averaged over the wells of a cell without weights [3.3].
  8. Pearson and Spearman correlations [Eq. A10]; Spearman correlations use average ranks for ties.
  9. Classification: tertiles by rank of FD and of each oriented descriptor over the 26 active 8 × 8 cells; quadratic-weighted kappa [3.4; Eq. A11].
  10. Bootstrap: 4000 resamples of units with replacement, seed 7; resamples with fewer than three distinct FD values are discarded; percentile intervals [3.5].
  11. Lead: phase of the annual harmonic of z̃ minus that of its reference, wrapped to ±6 months and converted to days (365.25/12 days per month); positive when the well peaks first [3.5; Appendix A].
  12. Seasonal share: R² of a three-harmonic annual cycle fitted to detrended levels and to their first and second differences over valid steps [Appendix A].
  13. Local FD for Figure 7d: pooled FD of the camera boreholes within 1 km of each well.
  14. Representative wells: the well pairs in the lowest (17 units) and highest (18 units) FD tertiles whose A is closest to the tertile median: D046 (FD = 0) and D119 (FD = 0.079 m⁻¹).

Outputs (results/)

File Contents
camera_boreholes_fd.csv all 84 camera boreholes: whether used and why not, whether a log entry was corrected, logged length (m), logged intersections, nearest monitoring well and distance (m), water-table depth used (m), submerged intersections, FD (m⁻¹), modified z-score against the 5 nearest usable boreholes; also written as a point shapefile (EPSG:32643) in camera_boreholes_shapefile.zip
descriptors_by_well.csv the six descriptors for each well, mode-1 loading l1, lag of the annual harmonic behind the reference (lag_months_vs_catchment, + = later) and lead (lead_days_vs_catchment, + = earlier), seasonal share of variance of levels and of first and second differences (fractions), intercept (m, at 2010-05-01) and slope (m yr⁻¹) of the linear trend removed from the head (trend_*) and from its catchment reference (ref_trend_*) before standardization (Eqs. 2 and 3), FD of the well pair, FD within 1 km, FD class of the 8 × 8 cell (1–3)
scale_units.csv every unit of the four scales: wells, boreholes, pooled FD (m⁻¹), mean descriptors, cell bounds (m)
table2_abs_correlation.csv Table 2, upper part: Pearson |r| and Spearman |ρ| at each scale
table2_correlations_long.csv the same with signed correlations, tier and reference
table2_summary.csv Table 2, lower part: mean |r|, mean |ρ|, worst case, range, combinations exceeding r₁, same class (%), weighted kappa
bootstrap_A_minus_l2.csv |corr(FD, A)| − |corr(FD, ℓ₂)| with paired-bootstrap 95% intervals (Figure 4d)
classification_8x8_cells.csv tertile class of FD and of each oriented descriptor for the 26 active 8 × 8 cells, and the cell-mean lead in days (Figures 7e and 8)
confusion_matrices_8x8.csv FD class against descriptor class at 8 × 8
eof_variance.csv variance fraction of the first ten EOF modes (Figure 3a)
eof_mode_scores.csv standardized scores of EOF modes 1 and 2 at each date (Figure 3c)
descriptor_intercorrelation_wells.csv Pearson correlation between descriptors across the 120 wells
representative_wells.csv descriptors of D046 (low FD) and D119 (high FD)
key_numbers.csv every other number quoted in the text, including the diffusivity and diffusion-length ranges of Section 5.2
sampen_check.csv archived SampEn and SampEn recomputed from heads_m.csv for each well
sensitivity_tests.csv Table 2 summary rows and per-scale correlations for the baseline and the four sensitivity tests
table3_sensitivity.csv Table 3: mean Pearson |r|, combinations exceeding r₁ (of 8) and weighted kappa at 8 × 8 for each case
sensitivity_bootstrap_A_minus_l2.csv the paired bootstrap of Figure 4d for the baseline and the four sensitivity tests

Sensitivity tests

run_analysis.py repeats the comparison four times and writes results/sensitivity_tests.csv, results/table3_sensitivity.csv and results/sensitivity_bootstrap_A_minus_l2.csv (manuscript Section 4.6 and Table 3). In every case A and ℓ₂ have the highest mean Pearson |r| (0.74–0.77), every bootstrap interval for their difference includes zero, and c₂ and SampEn together exceed r₁ in at most 2 of 16 scale–statistic combinations; the 8 × 8 classification ranking changes with the borehole set.

  • Median 2011–2020 water table: mean |r| changes by at most 0.01; counts of combinations exceeding r₁ and the classification are unchanged.
  • Camera logs as recorded, without the corrections: 76 boreholes; 49, 28, 26 and 10 units. A and ℓ₂ 0.74, r₁ 0.68; A and ℓ₂ exceed r₁ in 12 of 16 combinations, c₂ and SampEn in 1 of 16; weighted kappa 0.76 (F), 0.71 (A), 0.59 (ℓ₂), 0.53 (r₁).
  • Local FD outlier screen: removes C002, C012, C044, C052, C064, C065, C078, C079 (FD above their neighbors) and C083 (below); 74 boreholes; 47, 26, 23 and 9 units. A 0.77, ℓ₂ 0.75, r₁ 0.68; A and ℓ₂ exceed r₁ in 10 of 16 combinations, c₂ and SampEn in none; weighted kappa 0.60 (F) and 0.47 (r₁, A, ℓ₂).
  • SampEn recomputed from the archived heads: sample_entropy() in portraits.py (Richman & Moorman, 2000; m = 2, tolerance 0.2 sample SD, max norm, N − m templates for both lengths) applied to the gap-filled monthly heads gives values correlated at r = 0.91 with the archived ones (median absolute difference 0.09). With them, SampEn has mean |r| = 0.62 (0.61 with the archived values) and exceeds r₁ in 2 of 8 combinations (0 of 8).

Notes

  • SampEn. The archived values were computed in the original analysis on the 2011–2020 depth-to-water series and are used as inputs. No variant of the standard algorithm applied to heads_m.csv reproduces them exactly, which indicates that the original series differed from the archived monthly record; sampen_check.csv documents the difference and the sensitivity test shows its effect.
  • Outlier screen (sensitivity test). Iglewicz, B., & Hoaglin, D. C. (1993). How to detect and handle outliers. ASQC Quality Press.
  • Diffusion length (Section 5.2). key_numbers.csv evaluates L = sqrt(2D/ω) with D = T/S for the transmissivity (1–60 m² d⁻¹, 10th–90th percentiles) and specific yield (0.2–0.4%) reported for the catchment by Collins et al. (2020, Hydrogeology Journal, 28, 1371–1388); these are literature values, not results of this analysis.

Credits

Funding Agencies

This resource was created using funding from the following sources:
Agency Name Award Title Award Number
Agence Nationale de la Recherche (ANR) ATCHA ANR-16-CE03-0006
Indian Institute of Science None SP/INRA-17-0002

Contributors

People or Organizations that contributed technically, materially, financially, or provided general support for the creation of the resource's content but are not considered authors.

Name Organization Address Phone Author Identifiers
Abhijit Chaudhuri Department of Applied Mechanics and Biomedical Engineering, Indian Institute of Technology Madras, Chennai, 600 036, Tamil Nadu, India.

How to Cite

Bhaduri, B., Muddu, S., Ruiz, L. (2026). Data and code for investigating phase portraits of groundwater hydrographs as indicators of fracture density in a crystalline aquifer (Berambadi catchment, India), HydroShare, https://doi.org/10.4211/hs.8e5a79dfefff439cacd7bfb69efc4ca0

This resource is shared under the Creative Commons Attribution CC BY.

http://creativecommons.org/licenses/by/4.0/
CC-BY

Comments

There are currently no comments

New Comment

required