... | ... | @@ -7,7 +7,9 @@ see [WellLog schema](https://community.opengroup.org/osdu/data/data-definitions/ |
|
|
|
|
|
- _rule 2_: Ensure `data.ReferenceCurveID` exists in `data.Curves.CurveID` list.
|
|
|
|
|
|
## Example
|
|
|
|
|
|
<details>
|
|
|
<summary>Example</summary>
|
|
|
|
|
|
wellog record:
|
|
|
````json
|
... | ... | @@ -41,7 +43,7 @@ wellog record: |
|
|
|
|
|
- _rule 2_: `ReferenceCurveID` is set to `MD` and `MD` exists `Curves.CurveID` list.
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
# WellLog entity : Meta data (record) & Bulk data consistency
|
|
|
|
... | ... | @@ -53,11 +55,10 @@ When bulk is added\edited following checks to be done : |
|
|
|
|
|
- _rule 3_: Ensure `Curves.CurveID` listed in the record **match** the `column names` in the bulk.
|
|
|
|
|
|
- _rule 4_: The values associated to the `ReferenceCurveID` in the record are monotonic.
|
|
|
|
|
|
- _rule 5_: For each curve, ensure that `NumberOfColumns` **matches** the `column` count in the bulk for this curve.
|
|
|
- _rule 4_: For each curve, ensure that `NumberOfColumns` **matches** the `column` count in the bulk for this curve.
|
|
|
|
|
|
## Example
|
|
|
<details>
|
|
|
<summary>Example</summary>
|
|
|
|
|
|
WellLog bulk data:
|
|
|
|
... | ... | @@ -73,11 +74,50 @@ WellLog bulk data: |
|
|
|
|
|
- _rule 3_: `Curves.CurveID` list, `DEPTH` and `CSHG` matches the `column names` in the bulk. Here `CSHG` is an array with 4 columns: CSHG[0], CSHG[1], CSHG[2], CSHG[3].
|
|
|
|
|
|
- _rule 4_: The values associated to the `ReferenceCurveID`,`DEPTH`, are monotonic: no duplicates, strictly increasing, no missing values.
|
|
|
- _rule 4_: `DEPTH.NumberOfColumns` **matches** the `column` count in the bulk ==> **1**. `CSHG.NumberOfColumns` **matches** the `column` count in the bulk ==> **4**, CSHG[0], CSHG[1], CSHG[2], CSHG[3].
|
|
|
</details>
|
|
|
|
|
|
# Additional rules when the reference is type **"Measured Depth"**.
|
|
|
|
|
|
The following rules are only applied if the reference is type **"Measured Depth"**.
|
|
|
|
|
|
## Rules
|
|
|
|
|
|
- _rule 5_: The values associated to the `ReferenceCurveID` in the record are monotonic.
|
|
|
|
|
|
- _rule 6_: The top and bottom bulk values associated to the `ReferenceCurveID` should match values `data.SamplingStart` and `data.SamplingStop` in the record.
|
|
|
|
|
|
|
|
|
<details>
|
|
|
<summary>Example</summary>
|
|
|
|
|
|
from previous record and bulk data:
|
|
|
|
|
|
record:
|
|
|
````json
|
|
|
{
|
|
|
"id": "...",
|
|
|
"data": {
|
|
|
"ReferenceCurveID": "MD",
|
|
|
"SamplingStart": 7627.0,
|
|
|
"SamplingStopt": 7627.6,
|
|
|
````
|
|
|
|
|
|
- _rule 5_: `DEPTH.NumberOfColumns` **matches** the `column` count in the bulk ==> **1**. `CSHG.NumberOfColumns` **matches** the `column` count in the bulk ==> **4**, CSHG[0], CSHG[1], CSHG[2], CSHG[3].
|
|
|
bulk:
|
|
|
| DEPTH | ... |
|
|
|
|--------|---------|
|
|
|
| **7627.0** | ... |
|
|
|
| 7627.1 | ... |
|
|
|
| 7627.2 | ... |
|
|
|
| 7627.3 | ... |
|
|
|
| 7627.4 | ... |
|
|
|
| 7627.5 | ... |
|
|
|
| **7627.6** | ... |
|
|
|
|
|
|
|
|
|

|
|
|
- _rule 5_: The values associated to the `ReferenceCurveID`,`DEPTH`, are monotonic: no duplicates, strictly increasing, no missing values.
|
|
|
-
|
|
|
- _rule 6_: `data.SamplingStart` matches bulk `DEPTH` top value ==> **7627.0**. `data.SamplingStop` matches bulk `DEPTH` bottom value ==> **7627.6**.
|
|
|
|
|
|
</details>
|
|
|
|