|
|
# WellLog entity : Meta only (record) consistency
|
|
|
|
|
|
- Check unicity of the [data.Curves.CurveID](https://community.opengroup.org/osdu/data/data-definitions/-/blob/v0.14.0/E-R/work-product-component/WellLog.1.2.0.md#L168) attribute (mandatory in the schema)
|
|
|
see [WellLog schema](https://community.opengroup.org/osdu/data/data-definitions/-/blob/v0.14.0/E-R/work-product-component/WellLog.1.2.0.md).
|
|
|
|
|
|
- Check that [data.ReferenceCurveID](https://community.opengroup.org/osdu/data/data-definitions/-/blob/v0.14.0/E-R/work-product-component/WellLog.1.2.0.md#L191)value exists in the list of Curves.CurveID
|
|
|
- _rule 1_: Each `CurveID` listed in `data.Curves.CurveID` must be unique.
|
|
|
|
|
|
example:
|
|
|
- _rule 2_: Ensure `data.ReferenceCurveID` exists in `data.Curves.CurveID` list.
|
|
|
|
|
|
Welllog record example:
|
|
|
|
|
|
````json
|
|
|
{
|
... | ... | @@ -32,24 +34,25 @@ example: |
|
|
}
|
|
|
````
|
|
|
|
|
|
In the example, `ReferenceCurveID` is set to `MD` and `MD` exists `Curves.CurveID` list.
|
|
|
Each `Curves.CurveID` is unique, here `MD` and `CSHG`.
|
|
|
In the example:
|
|
|
|
|
|
- _rule 1_: Each `Curves.CurveID` is unique, here `MD` and `CSHG`.
|
|
|
|
|
|
- _rule 2_: `ReferenceCurveID` is set to `MD` and `MD` exists `Curves.CurveID` list.
|
|
|
|
|
|
|
|
|
# WellLog entity : Meta data (record) & Bulk consistency
|
|
|
|
|
|
# WellLog entity : Meta data (record) & Bulk data consistency
|
|
|
|
|
|
WellLog record can exist without bulk data.
|
|
|
|
|
|
When bulk is added\edited following checks to be done :
|
|
|
|
|
|
- Ensure **exact match** between **column names** in the bulk and **curveID** attributes in the record.
|
|
|
|
|
|
- Identify in the bulk which column is associated to a **ReferenceCurveID** in the record.
|
|
|
- _rule 3_: Ensure `Curves.CurveID` listed in the record **match** the `column names` in the bulk.
|
|
|
|
|
|
- If ReferenceCurveID exists and there is a bulk associated to this column check that there's no **Nan** values.
|
|
|
- _rule 4_: The values associated to the `ReferenceCurveID` in the record are monotonic.
|
|
|
|
|
|
- For each curve, ensure that the “Number of columns” in the record is matching the bulk.
|
|
|
- _rule 5_: For each curve, ensure that `NumberOfColumns` **matches** the `column` count in the bulk for this curve.
|
|
|
|
|
|
|
|
|

|
... | ... | |