|
|
WIP |
|
|
\ No newline at end of file |
|
|
# WellLog entity : Meta only consistency
|
|
|
|
|
|
- Check unicity of the CurveID attribute (mandatory in the schema)
|
|
|
|
|
|
- Check that ReferenceCurveID value exists in the list of Curves.CurveID
|
|
|
|
|
|
example:
|
|
|
|
|
|
````python
|
|
|
"Curves": [
|
|
|
{
|
|
|
"CurveID": "ZONE_NAME",
|
|
|
"CurveUnit": null,
|
|
|
"Mnemonic": "ZONE_NAME",
|
|
|
"LogCurveFamilyID": "data-partition-id:reference-data--LogCurveFamily:Zone%20Name:",
|
|
|
"NumberOfColumns": 1
|
|
|
},
|
|
|
{
|
|
|
"CurveID": "MD",
|
|
|
"CurveUnit": "data-partition-id:reference-data--UnitOfMeasure:ft:",
|
|
|
"Mnemonic": "MD",
|
|
|
"LogCurveFamilyID": "data-partition-id:reference-data--LogCurveFamily:Measured%20Depth:",
|
|
|
"NumberOfColumns": 1
|
|
|
}
|
|
|
],
|
|
|
"ReferenceCurveID": "MD"
|
|
|
````
|
|
|
|
|
|
`ReferenceCurveID` is set and each `Curves.CurveID` is unique.
|
|
|
|
|
|
|
|
|
|
|
|
# WellLog entity : Meta & Bulk consistency
|
|
|
|
|
|
WellLog record can exist without bulk data
|
|
|
|
|
|
When bulk is added\edited or meta data is changed following checks to be done :
|
|
|
|
|
|
- Ensure **exact match** between **column name** and **curveID** attributes in the record.
|
|
|
|
|
|
- Identify in the bulk which column is associated to a **ReferenceCurveID** in the record.
|
|
|
|
|
|
- If ReferenceCurveID exists and there is a bulk associated to this column check that there's no **Nan** values.
|
|
|
|
|
|
- For each curve, ensure that the “Number of columns” in the record is matching the bulk.
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|