{
  "_id": "6a1016deacfb0bcc41c84bf2",
  "Package": "AHGestimation",
  "Title": "An R package for Computing Robust, Mass Preserving Hydraulic\nGeometries and Rating Curves",
  "Description": "Compute mass preserving 'At a station Hydraulic Geometry'\n(AHG) fits from river measurements.",
  "Version": "0.3.1",
  "Authors@R": "c(person(given = \"Mike\",\nfamily = \"Johnson\",\nrole = c(\"aut\", \"cre\"),\nemail = \"mike.johnson@noaa.gov\",\ncomment = c(ORCID = \"0000-0002-5288-8350\")),\nperson(given = \"Arash\",\nfamily = \"Modaresi Rad\",\nrole = c(\"ctb\"),\ncomment = c(ORCID = \"0000-0002-6030-7923\")),\nperson(given = \"NOAA OWP\",  role = \"fnd\"),\nperson(given = \"NSF\",  role = \"fnd\"))",
  "Maintainer": "Mike Johnson <mike.johnson@noaa.gov>",
  "BugReports": "https://github.com/mikejohnson51/AHGestimation/issues",
  "URL": "https://github.com/mikejohnson51/AHGestimation",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libuv1-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev libx11-dev zlib1g-dev",
  "Repository": "https://owp-spatial.r-universe.dev",
  "Date/Publication": "2025-04-10 19:05:31 UTC",
  "RemoteUrl": "https://github.com/mikejohnson51/AHGestimation",
  "RemoteRef": "HEAD",
  "RemoteSha": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-14 06:54:14 UTC",
    "User": "root"
  },
  "Author": "Mike Johnson [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-5288-8350>),\nArash Modaresi Rad [ctb] (ORCID:\n<https://orcid.org/0000-0002-6030-7923>),\nNOAA OWP [fnd],\nNSF [fnd]",
  "MD5sum": "376905e3c4ffe89bf40e12b92ff297ae",
  "_user": "owp-spatial",
  "_type": "src",
  "_file": "AHGestimation_0.3.1.tar.gz",
  "_fileid": "cf59f421aeda11f50372bb8fdf1795c528615cc7566d064b91ffedf20cffd3cf",
  "_filesize": 4347197,
  "_sha256": "cf59f421aeda11f50372bb8fdf1795c528615cc7566d064b91ffedf20cffd3cf",
  "_created": "2026-05-14T06:54:14.000Z",
  "_published": "2026-05-22T08:42:06.868Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77345649429,
      "time": 203,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6988941953"
    },
    {
      "job": 77345649678,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6988945077"
    },
    {
      "job": 77345649438,
      "time": 141,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6988926829"
    },
    {
      "job": 77345649419,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7010866172"
    },
    {
      "job": 77345648841,
      "time": 245,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988894896"
    },
    {
      "job": 77345649081,
      "time": 143,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156394791"
    },
    {
      "job": 77345649519,
      "time": 151,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6988929194"
    },
    {
      "job": 77345649889,
      "time": 169,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6988933259"
    },
    {
      "job": 77345649758,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6988925851"
    }
  ],
  "_buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mikejohnson51/AHGestimation",
  "_commit": {
    "id": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
    "author": "Mike Johnson <jjohnson@lynker.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #13 from arashmodrad/master\n\nupdated cross_section function to account for rectangular shapes and …",
    "time": 1744311931
  },
  "_maintainer": {
    "name": "Mike Johnson",
    "email": "mike.johnson@noaa.gov",
    "login": "mikejohnson51",
    "linkedin": "in/mikejohnson-phd",
    "orcid": "0000-0002-5288-8350",
    "uuid": 30052272
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "DescTools",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "geodist",
      "role": "Imports"
    },
    {
      "package": "mco",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "distill",
      "role": "Suggests"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "scatterplot3d",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "ggrepel",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "mikejohnson51",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "mikejohnson51",
      "count": 72,
      "uuid": 30052272
    },
    {
      "user": "arashmodrad",
      "count": 5,
      "uuid": 55070201
    }
  ],
  "_userbio": {
    "uuid": 190552155,
    "type": "organization",
    "name": "OWP Spatial",
    "description": "Open Data, Open Science"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/AHGestimation"
  },
  "_devurl": "https://github.com/mikejohnson51/ahgestimation",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/AHGestimation.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "ahg_estimate",
    "best_optimal",
    "calc_nsga",
    "compute_ahg",
    "compute_channel_slope",
    "compute_hydraulic_params",
    "compute_n",
    "cross_section",
    "date_filter",
    "extract_thalweg",
    "mad_filter",
    "min_max",
    "mismash",
    "nls_filter",
    "nrmse",
    "pbias",
    "qva_filter",
    "significance_check",
    "slope_matrix",
    "slope_mean",
    "slope_weighted"
  ],
  "_datasets": [
    {
      "name": "nwis",
      "title": "Sample gage data Manual measurements made at NWIS site 01096500 Q_cms is a mandatory argument and at least one of TW_m, V_ms, or Y_m.",
      "object": "nwis",
      "class": [
        "data.frame"
      ],
      "fields": [
        "siteID",
        "date",
        "Q_cms",
        "Y_m",
        "V_ms",
        "TW_m"
      ],
      "rows": 275,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ahg_estimate",
      "title": "Properly estimate AHG values",
      "concept": [
        "AHG"
      ],
      "topics": [
        "ahg_estimate"
      ]
    },
    {
      "page": "best_optimal",
      "title": "Report best optimal",
      "concept": [
        "AHG"
      ],
      "topics": [
        "best_optimal"
      ]
    },
    {
      "page": "calc_nsga",
      "title": "Calculate NSGA2 AHG",
      "concept": [
        "AHG"
      ],
      "topics": [
        "calc_nsga"
      ]
    },
    {
      "page": "compute_ahg",
      "title": "Approximate AHG relationships",
      "concept": [
        "AHG"
      ],
      "topics": [
        "compute_ahg"
      ]
    },
    {
      "page": "compute_channel_slope",
      "title": "Calculate the slope of 3D linestring",
      "concept": [
        "hydraulics"
      ],
      "topics": [
        "compute_channel_slope"
      ]
    },
    {
      "page": "compute_hydraulic_params",
      "title": "Approximate channel coeffiecent",
      "concept": [
        "hydraulics"
      ],
      "topics": [
        "compute_hydraulic_params"
      ]
    },
    {
      "page": "compute_n",
      "title": "Approximate Roughness",
      "concept": [
        "hydraulics"
      ],
      "topics": [
        "compute_n"
      ]
    },
    {
      "page": "cross_section",
      "title": "Approximate channel shape",
      "concept": [
        "hydraulics"
      ],
      "topics": [
        "cross_section"
      ]
    },
    {
      "page": "date_filter",
      "title": "Implements filtering by date",
      "concept": [
        "filters"
      ],
      "topics": [
        "date_filter"
      ]
    },
    {
      "page": "extract_thalweg",
      "title": "Extract Thalweg From a data.frame of cross sections, a classified thalweg can be extracted as the connected LINESTRING",
      "concept": [
        "hydraulics"
      ],
      "topics": [
        "extract_thalweg"
      ]
    },
    {
      "page": "mad_filter",
      "title": "Implements filtering by median absolute deviation",
      "concept": [
        "filters"
      ],
      "topics": [
        "mad_filter"
      ]
    },
    {
      "page": "min_max",
      "title": "Find thresholds for coefficient and exponent limits.",
      "concept": [
        "AHG"
      ],
      "topics": [
        "min_max"
      ]
    },
    {
      "page": "mismash",
      "title": "Compute all combos!",
      "concept": [
        "AHG"
      ],
      "topics": [
        "mismash"
      ]
    },
    {
      "page": "nls_filter",
      "title": "Implements NLS filtering",
      "concept": [
        "filters"
      ],
      "topics": [
        "nls_filter"
      ]
    },
    {
      "page": "nrmse",
      "title": "Normalized Root Mean Square Error",
      "concept": [
        "evaluation"
      ],
      "topics": [
        "nrmse"
      ]
    },
    {
      "page": "nwis",
      "title": "Sample gage data Manual measurements made at NWIS site 01096500 Q_cms is a mandatory argument and at least one of TW_m, V_ms, or Y_m.",
      "concept": [
        "data"
      ],
      "topics": [
        "nwis"
      ]
    },
    {
      "page": "pbias",
      "title": "Percent Bias",
      "concept": [
        "evaluation"
      ],
      "topics": [
        "pbias"
      ]
    },
    {
      "page": "qva_filter",
      "title": "Implements filtering by continuity",
      "concept": [
        "filters"
      ],
      "topics": [
        "qva_filter"
      ]
    },
    {
      "page": "significance_check",
      "title": "Implements significance check",
      "concept": [
        "filters"
      ],
      "topics": [
        "significance_check"
      ]
    },
    {
      "page": "slope_matrix",
      "title": "Calculate the gradient of line segments from a 3D matrix of coordinates",
      "concept": [
        "hydraulics"
      ],
      "topics": [
        "slope_matrix",
        "slope_mean",
        "slope_weighted"
      ]
    }
  ],
  "_pkglogo": "https://github.com/mikejohnson51/AHGestimation/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/mikejohnson51/AHGestimation/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "boot",
    "cellranger",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "DBI",
    "DescTools",
    "dplyr",
    "e1071",
    "Exact",
    "expm",
    "forcats",
    "fs",
    "generics",
    "geodist",
    "gld",
    "glue",
    "haven",
    "hms",
    "httr",
    "jsonlite",
    "KernSmooth",
    "lattice",
    "lifecycle",
    "lmom",
    "magrittr",
    "MASS",
    "Matrix",
    "mco",
    "mime",
    "mvtnorm",
    "openssl",
    "pbapply",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "R6",
    "Rcpp",
    "readr",
    "readxl",
    "rematch",
    "rlang",
    "rootSolve",
    "rstudioapi",
    "s2",
    "sf",
    "sys",
    "tibble",
    "tidyselect",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "improved-ahg.Rmd",
      "filename": "improved-ahg.html",
      "title": "Improving AHG Estimates",
      "author": "Mike Johnson",
      "engine": "knitr::knitr",
      "headings": [
        "Increasing AHG skill:",
        "Curve Fitting Approaches",
        "OLS",
        "NLS",
        "NSGA-II",
        "Combination Approach",
        "Packaged Functionality"
      ],
      "created": "2023-09-14 05:33:03",
      "modified": "2024-02-07 18:37:15",
      "commits": 7
    },
    {
      "source": "data-filtering.Rmd",
      "filename": "data-filtering.html",
      "title": "Data Preprocessing",
      "author": "Mike Johnson",
      "engine": "knitr::knitr",
      "headings": [
        "Data Filtering Functions",
        "1. Median Absolute Deviation (mad)",
        "2. Temporal",
        "3. Q = vA Assumption",
        "4. NLS prediciton",
        "Chaining Commands",
        "Example(s)",
        "Significance"
      ],
      "created": "2023-09-14 05:33:03",
      "modified": "2024-01-17 04:33:19",
      "commits": 7
    },
    {
      "source": "hydraulics.Rmd",
      "filename": "hydraulics.html",
      "title": "Hydraulic Data Generation",
      "author": "Mike Johnson, Arash Modaresi Rad",
      "engine": "knitr::knitr",
      "headings": [
        "Hydraulic Estimation",
        "Example data",
        "Compute Roughness",
        "Compute r, d, R and p",
        "r",
        "p, q, k",
        "d, R",
        "Implications",
        "Generate Cross sections"
      ],
      "created": "2023-09-14 05:33:03",
      "modified": "2024-02-07 19:03:27",
      "commits": 8
    },
    {
      "source": "optimize-nsga2.Rmd",
      "filename": "optimize-nsga2.html",
      "title": "Fine Tuning NSGA-2",
      "author": "Mike Johnson",
      "engine": "knitr::knitr",
      "headings": [
        "Solver",
        "Defining bounds",
        "Parameterizing the model",
        "Population & Generation",
        "Cross over and Mutation Probability",
        "Winner",
        "Influence of Seed",
        "Flexibility"
      ],
      "created": "2023-09-14 05:33:03",
      "modified": "2024-01-17 00:14:14",
      "commits": 7
    },
    {
      "source": "traditonal-ahg.Rmd",
      "filename": "traditonal-ahg.html",
      "title": "Traditional AHG fitting",
      "author": "Mike Johnson",
      "engine": "knitr::knitr",
      "headings": [
        "The AHG relationships",
        "Traditonal Fitting Technique",
        "Example:",
        "Full Fits",
        "Continuity check",
        "System Error"
      ],
      "created": "2023-09-14 05:33:03",
      "modified": "2024-12-05 22:39:21",
      "commits": 9
    }
  ],
  "_score": 4.243038048686294,
  "_indexed": false,
  "_nocasepkg": "ahgestimation",
  "_universes": [
    "owp-spatial"
  ],
  "_indexurl": "https://mikejohnson51.r-universe.dev/AHGestimation",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-05-14T06:57:09.000Z",
      "distro": "noble",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "7abfc89b2bba8c78147dc9f911c17db2c187221403feacbcc50ed87ccc803e68",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-05-14T06:57:22.000Z",
      "distro": "noble",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "198192d5f40fc20132e634187c02ff0dbd69ac19c39908c1e4c6c3c7723be973",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-05-14T06:56:30.000Z",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "afe9d9ec53b5a45dfc0703ed7c1c00a14d1edb227f12c34e1438225368f9f894",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-05-15T05:43:19.000Z",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "12e6340e350be840c0bcb39859cbe1bc9487b12ae30233480f6156ea14ce914a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-05-14T06:55:59.000Z",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "66749c3893fb92056eb8a5a357935df47014dde34188b9f58cd75c242b249cb4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-05-14T06:55:59.000Z",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "d3afa8e857a11db3448449b748686ba9f2241f91f5b26c3b9c54067dfffc45e4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-05-14T06:55:48.000Z",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "4361368e31f0f942e5990faaf15a1baaed6fa9294faafd95c1e01996be438cbc",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-05-22T08:41:48.000Z",
      "commit": "76a6ed0b7bb540365323e827f8bac191157c2fd6",
      "fileid": "3d4d84fffb7893b201ffc1e622a1c7eb12811e5b95e8040a8a9130426acbf66a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/owp-spatial/actions/runs/25846332963"
    }
  ]
}