asiDefineDataAccessFunction
asiDefineDataAccessFunction(o_tools_dataTypes_dataFunction) =>s_dataFunction
Description
Redefines a data access function.
Typically you do not need to redefine a data access function.
Arguments
Value Returned
Examples
Calls the XYZVT function, which gets the VT information from the PSF file.
asiDefineDataAccessFunction( tool 'VT 'XYZVT ) procedure( XYZVT(specifier dataDir simData) let((wave daf)
daf = asiGetDataAccessFunction(asiGetTool('analog) 'VT)
wave = apply( daf list(specifier dataDir simData))
wave
)
)
Alternatively, use asiDefineDataAccessFunction to achieve the same functionality. This would be helpful for user defined data access types. For example, the existing code would work with VT, IT etc., but the code below would work with a new analysis called sp.
procedure( XYZDataAccessSp(specifier dataDir simData) let((wave) wave = asiGetDrlData("sp" specifier dataDir)
wave
)
) procedure( XYZMapNetNameSp( dataDir specifier ) let(() specifier = parseString((concat "s" car(specifier) "_" cadr(specifier))) specifier )
)
Return to top