[{"data":1,"prerenderedAt":516},["ShallowReactive",2],{"page-\u002Futils\u002Fapi\u002Ffunctions\u002FgetMeterIntervals":3,"navigation":129},{"collection":4,"page":5},"docs_en",{"id":6,"title":7,"body":8,"description":119,"extension":120,"meta":121,"navigation":123,"path":124,"rawbody":125,"seo":126,"stem":127,"__hash__":128},"docs_en\u002Futils\u002Fapi\u002Ffunctions\u002FgetMeterIntervals.md","getMeterIntervals",{"type":9,"value":10,"toc":110},"minimark",[11,36,47,74,85,90,93,98,102],[12,13,14],"blockquote",{},[15,16,17,20,21,25,26,33],"p",{},[18,19,7],"strong",{},"(",[22,23,24],"code",{},"well","): ",[27,28,30],"a",{"href":29},"\u002Futils\u002Fapi\u002Ftype-aliases\u002FMeterInterval",[22,31,32],{},"MeterInterval",[34,35],"span",{},[15,37,38,39,42,43,46],{},"Derives the volume of every interval between consecutive readings of the\nsame meter (.well v2.3 volume derivation, normative). Only effective\n(non-retracted) ",[22,40,41],{},"meter_reading"," entries count; readings of each meter are\nordered by instant, then ",[22,44,45],{},"sequence"," (lower first, absent first), then file\norder.",[48,49,50,54,64],"ul",{},[51,52,53],"li",{},"r₂ ≥ r₁ → r₂ − r₁.",[51,55,56,57,60,61,63],{},"r₂ \u003C r₁ with ",[22,58,59],{},"max_reading"," → (",[22,62,59],{}," − r₁) + r₂ (rollover).",[51,65,66,67,69,70,73],{},"r₂ \u003C r₁ without ",[22,68,59],{}," → ",[22,71,72],{},"volume: null"," (unknown).",[15,75,76,77,80,81,84],{},"Intervals never span two meters, so a meter swap leaves the gap between\nthe removal and installation readings unmetered. Production before a\nmeter's first reading is unknown and yields no interval. Readings whose\n",[22,78,79],{},"meter_id"," does not resolve are still paired (without rollover). The result\nis sorted by ",[22,82,83],{},"end"," instant.",[86,87,89],"h2",{"id":88},"parameters","Parameters",[91,92,24],"h3",{"id":24},[15,94,95],{},[22,96,97],{},"Well",[86,99,101],{"id":100},"returns","Returns",[15,103,104,108],{},[27,105,106],{"href":29},[22,107,32],{},[34,109],{},{"title":111,"searchDepth":112,"depth":112,"links":113},"",2,[114,118],{"id":88,"depth":112,"text":89,"children":115},[116],{"id":24,"depth":117,"text":24},3,{"id":100,"depth":112,"text":101},"Derives the volume of every interval between consecutive readings of the same meter (.well v2.3 volume derivation, normative). Only effective (non-retracted) meterreading entries count; readings of each meter are ordered by instant, then sequence (lower first, absent first), then file order.","md",{"generated":122},true,false,"\u002Futils\u002Fapi\u002Ffunctions\u002FgetMeterIntervals","---\npath: \"\u002Futils\u002Fapi\u002Ffunctions\u002FgetMeterIntervals\"\ntitle: getMeterIntervals\ndescription: \"Derives the volume of every interval between consecutive readings of the same meter (.well v2.3 volume derivation, normative). Only effective (non-retracted) meterreading entries count; readings of each meter are ordered by instant, then sequence (lower first, absent first), then file order.\"\ngenerated: true\nnavigation: false\n---\n\n> **getMeterIntervals**(`well`): [`MeterInterval`](\u002Futils\u002Fapi\u002Ftype-aliases\u002FMeterInterval)[]\n\nDerives the volume of every interval between consecutive readings of the\nsame meter (.well v2.3 volume derivation, normative). Only effective\n(non-retracted) `meter_reading` entries count; readings of each meter are\nordered by instant, then `sequence` (lower first, absent first), then file\norder.\n\n- r₂ ≥ r₁ → r₂ − r₁.\n- r₂ \u003C r₁ with `max_reading` → (`max_reading` − r₁) + r₂ (rollover).\n- r₂ \u003C r₁ without `max_reading` → `volume: null` (unknown).\n\nIntervals never span two meters, so a meter swap leaves the gap between\nthe removal and installation readings unmetered. Production before a\nmeter's first reading is unknown and yields no interval. Readings whose\n`meter_id` does not resolve are still paired (without rollover). The result\nis sorted by `end` instant.\n\n## Parameters\n\n### well\n\n`Well`\n\n## Returns\n\n[`MeterInterval`](\u002Futils\u002Fapi\u002Ftype-aliases\u002FMeterInterval)[]\n",{"title":7,"description":119},"utils\u002Fapi\u002Ffunctions\u002FgetMeterIntervals","6SXJ05UwdwWYreJLCpjVnyyYjn8fGckHEWsBEH3L0Pc",{"docs_en":130,"spec":447,"changelogs":497},[131,151,170,225,335,389],{"title":132,"path":133,"stem":134,"children":135},"Ai","\u002Fai","ai",[136,139,143,147],{"title":137,"path":133,"stem":138},"Introduction","ai\u002Findex",{"title":140,"path":141,"stem":142},"Converting reports with an assistant","\u002Fai\u002Fconversion-skill","ai\u002Fconversion-skill",{"title":144,"path":145,"stem":146},"llms.txt and Markdown pages","\u002Fai\u002Fllms","ai\u002Fllms",{"title":148,"path":149,"stem":150},"MCP server","\u002Fai\u002Fmcp","ai\u002Fmcp",{"title":152,"path":153,"stem":154,"children":155},"Contributing","\u002Fcontributing","contributing",[156,158,162,166],{"title":137,"path":153,"stem":157},"contributing\u002Findex",{"title":159,"path":160,"stem":161},"Writing docs","\u002Fcontributing\u002Fwriting-docs","contributing\u002F1.writing-docs",{"title":163,"path":164,"stem":165},"Update rules","\u002Fcontributing\u002Fupdate-rules","contributing\u002F2.update-rules",{"title":167,"path":168,"stem":169},"Content components","\u002Fcontributing\u002Fcomponents","contributing\u002Fcomponents",{"title":171,"path":172,"stem":173,"children":174},"Core","\u002Fcore","core",[175,177,190,219],{"title":137,"path":172,"stem":176},"core\u002Findex",{"title":178,"path":179,"stem":180,"children":181,"page":123},"Getting Started","\u002Fcore\u002Fgetting-started","core\u002F1.getting-started",[182,186],{"title":183,"path":184,"stem":185},"Installation","\u002Fcore\u002Fgetting-started\u002Finstallation","core\u002F1.getting-started\u002F1.installation",{"title":187,"path":188,"stem":189},"First use","\u002Fcore\u002Fgetting-started\u002Ffirst-use","core\u002F1.getting-started\u002F2.first-use",{"title":191,"path":192,"stem":193,"children":194,"page":123},"Guides","\u002Fcore\u002Fguides","core\u002F2.guides",[195,199,203,207,211,215],{"title":196,"path":197,"stem":198},"Parsing and validating","\u002Fcore\u002Fguides\u002Fparsing-and-validating","core\u002F2.guides\u002F1.parsing-and-validating",{"title":200,"path":201,"stem":202},"Serializing and sharing","\u002Fcore\u002Fguides\u002Fserializing-and-sharing","core\u002F2.guides\u002F2.serializing-and-sharing",{"title":204,"path":205,"stem":206},"Unit conversion","\u002Fcore\u002Fguides\u002Funit-conversion","core\u002F2.guides\u002F3.unit-conversion",{"title":208,"path":209,"stem":210},"Vocabularies and textures","\u002Fcore\u002Fguides\u002Fvocabularies-and-textures","core\u002F2.guides\u002F4.vocabularies-and-textures",{"title":212,"path":213,"stem":214},"Water quality vocabulary","\u002Fcore\u002Fguides\u002Fwater-quality-vocabulary","core\u002F2.guides\u002F5.water-quality-vocabulary",{"title":216,"path":217,"stem":218},"Versions and time zones","\u002Fcore\u002Fguides\u002Fversions-and-time-zones","core\u002F2.guides\u002F6.versions-and-time-zones",{"title":220,"path":221,"stem":222,"children":223},"API reference","\u002Fcore\u002Fapi","core\u002Fapi\u002Findex",[224],{"title":220,"path":221,"stem":222},{"title":226,"path":227,"stem":228,"children":229},"Format","\u002Fformat","format",[230,232,252,281,305,325,331],{"title":137,"path":227,"stem":231},"format\u002Findex",{"title":178,"path":233,"stem":234,"children":235,"page":123},"\u002Fformat\u002Fgetting-started","format\u002F1.getting-started",[236,240,244,248],{"title":237,"path":238,"stem":239},"What is .well?","\u002Fformat\u002Fgetting-started\u002Fwhat-is-well","format\u002F1.getting-started\u002F1.what-is-well",{"title":241,"path":242,"stem":243},"For geologists","\u002Fformat\u002Fgetting-started\u002Ffor-geologists","format\u002F1.getting-started\u002F2.for-geologists",{"title":245,"path":246,"stem":247},"For developers","\u002Fformat\u002Fgetting-started\u002Ffor-developers","format\u002F1.getting-started\u002F3.for-developers",{"title":249,"path":250,"stem":251},"Your first .well file","\u002Fformat\u002Fgetting-started\u002Ffirst-well-file","format\u002F1.getting-started\u002F4.first-well-file",{"title":253,"path":254,"stem":255,"children":256,"page":123},"Concepts","\u002Fformat\u002Fconcepts","format\u002F2.concepts",[257,261,265,269,273,277],{"title":258,"path":259,"stem":260},"Depths and intervals","\u002Fformat\u002Fconcepts\u002Fdepths-and-intervals","format\u002F2.concepts\u002F1.depths-and-intervals",{"title":262,"path":263,"stem":264},"Units and precision","\u002Fformat\u002Fconcepts\u002Funits-and-precision","format\u002F2.concepts\u002F2.units-and-precision",{"title":266,"path":267,"stem":268},"Vocabularies","\u002Fformat\u002Fconcepts\u002Fvocabularies","format\u002F2.concepts\u002F3.vocabularies",{"title":270,"path":271,"stem":272},"Profiles","\u002Fformat\u002Fconcepts\u002Fprofiles","format\u002F2.concepts\u002F4.profiles",{"title":274,"path":275,"stem":276},"Versions and deprecation","\u002Fformat\u002Fconcepts\u002Fversions-and-deprecation","format\u002F2.concepts\u002F5.versions-and-deprecation",{"title":278,"path":279,"stem":280},"Extensibility","\u002Fformat\u002Fconcepts\u002Fextensibility","format\u002F2.concepts\u002F6.extensibility",{"title":191,"path":282,"stem":283,"children":284,"page":123},"\u002Fformat\u002Fguides","format\u002F3.guides",[285,289,293,297,301],{"title":286,"path":287,"stem":288},"Writing a .well by hand","\u002Fformat\u002Fguides\u002Fwriting-by-hand","format\u002F3.guides\u002F1.writing-by-hand",{"title":290,"path":291,"stem":292},"Converting a report","\u002Fformat\u002Fguides\u002Fconverting-a-report","format\u002F3.guides\u002F2.converting-a-report",{"title":294,"path":295,"stem":296},"Validating","\u002Fformat\u002Fguides\u002Fvalidating","format\u002F3.guides\u002F3.validating",{"title":298,"path":299,"stem":300},"Extending for your own needs","\u002Fformat\u002Fguides\u002Fextending","format\u002F3.guides\u002F4.extending",{"title":302,"path":303,"stem":304},"Building an editor or database on .well","\u002Fformat\u002Fguides\u002Fbuilding-on-well","format\u002F3.guides\u002F5.building-on-well",{"title":306,"path":307,"stem":308,"children":309},"Overview","\u002Fformat\u002Freference","format\u002F4.reference\u002Findex",[310,311,315,319],{"title":306,"path":307,"stem":308},{"title":312,"path":313,"stem":314},"JSON Schema","\u002Fformat\u002Freference\u002Fjson-schema","format\u002F4.reference\u002F1.json-schema",{"title":316,"path":317,"stem":318},"Example wells","\u002Fformat\u002Freference\u002Fexamples","format\u002F4.reference\u002F2.examples",{"title":320,"path":321,"stem":322,"children":323},"Object reference","\u002Fformat\u002Freference\u002Fobjects","format\u002Freference\u002Fobjects\u002Findex",[324],{"title":320,"path":321,"stem":322},{"title":326,"path":327,"stem":328,"children":329},"About the spec","\u002Fformat\u002Fspec","format\u002F5.spec\u002Findex",[330],{"title":326,"path":327,"stem":328},{"title":332,"path":333,"stem":334},"Changelog","\u002Fformat\u002Fchangelog","format\u002F6.changelog",{"title":336,"path":337,"stem":338,"children":339},"Render","\u002Frender","render",[340,342,352,384],{"title":137,"path":337,"stem":341},"render\u002Findex",{"title":178,"path":343,"stem":344,"children":345,"page":123},"\u002Frender\u002Fgetting-started","render\u002F1.getting-started",[346,349],{"title":183,"path":347,"stem":348},"\u002Frender\u002Fgetting-started\u002Finstallation","render\u002F1.getting-started\u002F1.installation",{"title":187,"path":350,"stem":351},"\u002Frender\u002Fgetting-started\u002Ffirst-use","render\u002F1.getting-started\u002F2.first-use",{"title":191,"path":353,"stem":354,"children":355,"page":123},"\u002Frender\u002Fguides","render\u002F2.guides",[356,360,364,368,372,376,380],{"title":357,"path":358,"stem":359},"Panels and layout","\u002Frender\u002Fguides\u002Fpanels-and-layout","render\u002F2.guides\u002F1.panels-and-layout",{"title":361,"path":362,"stem":363},"Layers and labels","\u002Frender\u002Fguides\u002Flayers-and-labels","render\u002F2.guides\u002F2.layers-and-labels",{"title":365,"path":366,"stem":367},"Theming","\u002Frender\u002Fguides\u002Ftheming","render\u002F2.guides\u002F3.theming",{"title":369,"path":370,"stem":371},"Locale and units","\u002Frender\u002Fguides\u002Flocale-and-units","render\u002F2.guides\u002F4.locale-and-units",{"title":373,"path":374,"stem":375},"Legends","\u002Frender\u002Fguides\u002Flegends","render\u002F2.guides\u002F5.legends",{"title":377,"path":378,"stem":379},"Zoom, pan and highlights","\u002Frender\u002Fguides\u002Finteraction","render\u002F2.guides\u002F6.interaction",{"title":381,"path":382,"stem":383},"Using it in a framework","\u002Frender\u002Fguides\u002Fframeworks","render\u002F2.guides\u002F7.frameworks",{"title":220,"path":385,"stem":386,"children":387},"\u002Frender\u002Fapi","render\u002Fapi\u002Findex",[388],{"title":220,"path":385,"stem":386},{"title":390,"path":391,"stem":392,"children":393},"Utils","\u002Futils","utils",[394,396,406,442],{"title":137,"path":391,"stem":395},"utils\u002Findex",{"title":178,"path":397,"stem":398,"children":399,"page":123},"\u002Futils\u002Fgetting-started","utils\u002F1.getting-started",[400,403],{"title":183,"path":401,"stem":402},"\u002Futils\u002Fgetting-started\u002Finstallation","utils\u002F1.getting-started\u002F1.installation",{"title":187,"path":404,"stem":405},"\u002Futils\u002Fgetting-started\u002Ffirst-use","utils\u002F1.getting-started\u002F2.first-use",{"title":191,"path":407,"stem":408,"children":409,"page":123},"\u002Futils\u002Fguides","utils\u002F2.guides",[410,414,418,422,426,430,434,438],{"title":411,"path":412,"stem":413},"Geometry and volumes","\u002Futils\u002Fguides\u002Fgeometry-and-volumes","utils\u002F2.guides\u002F1.geometry-and-volumes",{"title":415,"path":416,"stem":417},"Water levels and pumping tests","\u002Futils\u002Fguides\u002Fpumping-tests","utils\u002F2.guides\u002F2.pumping-tests",{"title":419,"path":420,"stem":421},"Permits","\u002Futils\u002Fguides\u002Fpermits","utils\u002F2.guides\u002F3.permits",{"title":423,"path":424,"stem":425},"Operation and production","\u002Futils\u002Fguides\u002Foperation","utils\u002F2.guides\u002F4.operation",{"title":427,"path":428,"stem":429},"Water quality","\u002Futils\u002Fguides\u002Fwater-quality","utils\u002F2.guides\u002F5.water-quality",{"title":431,"path":432,"stem":433},"Logger import","\u002Futils\u002Fguides\u002Flogger-import","utils\u002F2.guides\u002F6.logger-import",{"title":435,"path":436,"stem":437},"SIAGAS import","\u002Futils\u002Fguides\u002Fsiagas-import","utils\u002F2.guides\u002F7.siagas-import",{"title":439,"path":440,"stem":441},"Formatting","\u002Futils\u002Fguides\u002Fformatting","utils\u002F2.guides\u002F8.formatting",{"title":220,"path":443,"stem":444,"children":445},"\u002Futils\u002Fapi","utils\u002Fapi\u002Findex",[446],{"title":220,"path":443,"stem":444},[448],{"title":226,"path":227,"stem":228,"children":449,"page":123},[450],{"title":451,"path":327,"stem":452,"children":453,"page":123},"Spec","format\u002Fspec",[454,463,472],{"title":455,"path":456,"stem":457,"children":458,"page":123},"Reference","\u002Fformat\u002Fspec\u002Freference","format\u002Fspec\u002Freference",[459],{"title":460,"path":461,"stem":462},"FGDC Texture Patterns Reference","\u002Fformat\u002Fspec\u002Freference\u002Ffgdc-textures","format\u002Fspec\u002Freference\u002Ffgdc-textures",{"title":464,"path":465,"stem":466,"children":467,"page":123},"V1","\u002Fformat\u002Fspec\u002Fv1","format\u002Fspec\u002Fv1",[468],{"title":469,"path":470,"stem":471},".well File Format Specification","\u002Fformat\u002Fspec\u002Fv1\u002Fwell-format","format\u002Fspec\u002Fv1\u002Fwell-format",{"title":473,"path":474,"stem":475,"children":476,"page":123},"V2","\u002Fformat\u002Fspec\u002Fv2","format\u002Fspec\u002Fv2",[477,481,485,489,493],{"title":478,"path":479,"stem":480},".well File Format Specification — Version 2.4: Format Reference","\u002Fformat\u002Fspec\u002Fv2\u002Fformat-reference","format\u002Fspec\u002Fv2\u002Fformat-reference",{"title":482,"path":483,"stem":484},".well File Format Specification — Version 2.4: Interoperability","\u002Fformat\u002Fspec\u002Fv2\u002Finteroperability","format\u002Fspec\u002Fv2\u002Finteroperability",{"title":486,"path":487,"stem":488},".well File Format Specification — Version 2.4: Object Schemas","\u002Fformat\u002Fspec\u002Fv2\u002Fobject-schemas","format\u002Fspec\u002Fv2\u002Fobject-schemas",{"title":490,"path":491,"stem":492},".well File Format Specification — Version 2.4: Overview","\u002Fformat\u002Fspec\u002Fv2\u002Foverview","format\u002Fspec\u002Fv2\u002Foverview",{"title":494,"path":495,"stem":496},".well File Format Specification — Version 2.4: Water Quality","\u002Fformat\u002Fspec\u002Fv2\u002Fwater-quality","format\u002Fspec\u002Fv2\u002Fwater-quality",[498,504,510],{"title":171,"path":172,"stem":173,"children":499,"page":123},[500],{"title":501,"path":502,"stem":503},"@welldot\u002Fcore","\u002Fcore\u002Fchangelog","core\u002FCHANGELOG",{"title":336,"path":337,"stem":338,"children":505,"page":123},[506],{"title":507,"path":508,"stem":509},"@welldot\u002Frender","\u002Frender\u002Fchangelog","render\u002FCHANGELOG",{"title":390,"path":391,"stem":392,"children":511,"page":123},[512],{"title":513,"path":514,"stem":515},"@welldot\u002Futils","\u002Futils\u002Fchangelog","utils\u002FCHANGELOG",1793050500492]