Closed NMoghaddam closed 2 years ago
Note: if dx, dy, dz are not strings, but numbers, simply propagate these down all the way to the soundings structure ...
If we specify the columns as nothing
or " "
, then the function shouldn't use those columns.
In order to address this issue, the following steps were taken.
frame_dx
, frame_dy
, frame_dz
are not provided in the *.dat
file, the following code can be used to throw an error following running SkyTEM1DInversion:
(isempty(frame_dx) || isempty(frame_dy) || isempty(frame_dz)) && throw(ArgumentError("user must speficy dx, dy, and dz values for frame"))
read_survey_files
, the default values for frame_dx
, frame_dy
, frame_dz
is going to be set to nothing
and the following @assert statement could be used to throw an error if any of these values are not nothing:
@assert any(.!isnothing.([frame_dx,frame_dy,frame_dz]))
Following further discussion, we decided to close the issue since It is likely that different scenarios and adding the above statements will potentially add more complexity to the original version of read_survey_files
.
For now, the fix is the following [dx dy dz] columns in Ross' convention for SkyTEM.