@@ -216,6 +216,10 @@ def Set(filename, element, **kwargs):
216216 elif element == "contactsAppend" : response = DataCollection .SetContacts (root , append = True , ** kwargs )
217217 elif element == "drillholeObservations" : response = DataCollection .SetDrillholeObservations (root , ** kwargs )
218218 elif element == "drillholeObservationsAppend" : response = DataCollection .SetDrillholeObservations (root , append = True , ** kwargs )
219+ elif element == "drillholeSurveys" : response = DataCollection .SetDrillholeSurveys (root , ** kwargs )
220+ elif element == "drillholeSurveysAppend" : response = DataCollection .SetDrillholeSurveys (root , append = True , ** kwargs )
221+ elif element == "drillholeProperties" : response = DataCollection .SetDrillholeProperties (root , ** kwargs )
222+ elif element == "drillholePropertiesAppend" : response = DataCollection .SetDrillholeProperties (root , append = True , ** kwargs )
219223 elif element == "stratigraphicLog" : response = ExtractedInformation .SetStratigraphicLog (root , ** kwargs )
220224 elif element == "stratigraphicLogAppend" : response = ExtractedInformation .SetStratigraphicLog (root , append = True , ** kwargs )
221225 elif element == "faultLog" : response = ExtractedInformation .SetFaultLog (root , ** kwargs )
@@ -307,6 +311,8 @@ def Get(filename, element, **kwargs):
307311 elif element == "stratigraphicObservations" : response = DataCollection .GetStratigraphicObservations (root ,** kwargs )
308312 elif element == "contacts" : response = DataCollection .GetContacts (root ,** kwargs )
309313 elif element == "drillholeObservations" : response = DataCollection .GetDrillholeObservations (root ,** kwargs )
314+ elif element == "drillholeSurveys" : response = DataCollection .GetDrillholeSurveys (root ,** kwargs )
315+ elif element == "drillholeProperties" : response = DataCollection .GetDrillholeProperties (root ,** kwargs )
310316 elif element == "stratigraphicLog" : response = ExtractedInformation .GetStratigraphicLog (root ,** kwargs )
311317 elif element == "faultLog" : response = ExtractedInformation .GetFaultLog (root ,** kwargs )
312318 elif element == "foldLog" : response = ExtractedInformation .GetFoldLog (root ,** kwargs )
@@ -438,10 +444,15 @@ def CheckFileValid(filename, verbose=False):
438444drillholeDescriptionType = numpy .dtype ([('collarId' ,'<u4' ),('holeName' ,'S30' ),
439445 ('surfaceX' ,'<f8' ),('surfaceY' ,'<f8' ),('surfaceZ' ,'<f8' )])
440446
447+ drillholePropertyType = numpy .dtype ([('collarId' ,'<u4' ),('propertyName' ,'S30' ),('propertyValue' ,'S80' )])
448+
441449drillholeObservationType = numpy .dtype ([('collarId' ,'<u4' ),
442- ('topX' ,'<f8' ),('topY' ,'<f8' ),('topZ' ,'<f8' ), ('layerId' ,'<u4' ),
443- ('baseX' ,'<f8' ),('baseY' ,'<f8' ),('baseZ' ,'<f8' ),
444- ('beddingDip' ,'<f8' ),('beddingAzimuth' ,'<f8' )])
450+ ('fromX' ,'<f8' ),('fromY' ,'<f8' ),('fromZ' ,'<f8' ), ('layerId' ,'<u4' ),
451+ ('toX' ,'<f8' ),('toY' ,'<f8' ),('toZ' ,'<f8' ),('from' ,'<f8' ),('to' ,'<f8' ),
452+ ('propertyCode' ,'S30' ),('property1' ,'S30' ),('property2' ,'S30' ),('unit' ,'S30' )])
453+
454+ drillholeSurveyType = numpy .dtype ([('collarId' ,'<u4' ),('depth' ,'<f8' ),
455+ ('angle1' ,'<f8' ),('angle2' ,'<f8' ),('unit' ,'S30' )])
445456
446457def ConvertDataFrame (df ,dtype ):
447458 if isinstance (df ,pandas .DataFrame ):
0 commit comments