This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setOutputTimesteps ( algorithm , timesteps ): | |
"helper routine to set timestep information" | |
executive = algorithm . GetExecutive () | |
outInfo = executive . GetOutputInformation (0) | |
outInfo.Remove ( executive.TIME_STEPS () ) | |
for timestep in timesteps : | |
outInfo . Append ( executive . TIME_STEPS () , timestep ) | |
outInfo . Remove ( executive . TIME_RANGE () ) | |
outInfo . Append ( executive . TIME_RANGE () , timesteps [0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%%cython -I/usr/local/include -L/usr/local/lib -llas_c | |
# Created by Casey Goodlett | |
cimport cython | |
import numpy as np | |
cimport numpy as np | |
import liblas | |
DTYPE = np.float64 | |
ctypedef np.float64_t DTYPE_t |