22# this is ProfileProcessing.jl
33# It contains functions and type definitions to gather selected data for given profiles
44
5- export ProfileData, extract_profile_data , create_ProfileData, GMG_Dataset, load_dataset_file, combine_vol_data
6- export extract_profile_data !, read_picked_profiles
5+ export ProfileData, extract_ProfileData , create_ProfileData, GMG_Dataset, load_dataset_file, combine_vol_data
6+ export extract_ProfileData !, read_picked_profiles
77import Base: show
88
99"""
@@ -348,11 +348,11 @@ end
348348
349349
350350"""
351- extract_profile_data !(Profile::ProfileData,VolData::GeoData, SurfData::NamedTuple, PointData::NamedTuple; DimsVolCross=(100,100),Depth_extent=nothing,DimsSurfCross=(100,),section_width=50)
351+ extract_ProfileData !(Profile::ProfileData,VolData::GeoData, SurfData::NamedTuple, PointData::NamedTuple; DimsVolCross=(100,100),Depth_extent=nothing,DimsSurfCross=(100,),section_width=50)
352352
353353Extracts data along a vertical or horizontal profile
354354"""
355- function extract_profile_data ! (Profile:: ProfileData ,VolData:: Union{Nothing,GeoData} = nothing , SurfData:: NamedTuple = NamedTuple (), PointData:: NamedTuple = NamedTuple (); DimsVolCross= (100 ,100 ),Depth_extent= nothing ,DimsSurfCross= (100 ,),section_width= 50 km)
355+ function extract_ProfileData ! (Profile:: ProfileData ,VolData:: Union{Nothing,GeoData} = nothing , SurfData:: NamedTuple = NamedTuple (), PointData:: NamedTuple = NamedTuple (); DimsVolCross= (100 ,100 ),Depth_extent= nothing ,DimsSurfCross= (100 ,),section_width= 50 km)
356356
357357 if ! isnothing (VolData)
358358 create_profile_volume! (Profile, VolData; DimsVolCross= DimsVolCross, Depth_extent= Depth_extent)
@@ -383,11 +383,11 @@ end
383383
384384# this is mostly for backwards compatibility
385385"""
386- extract_profile_data (ProfileCoordFile::String,ProfileNumber::Int64,DataSetFile::String; DimsVolCross=(100,100),DepthVol=nothing,DimsSurfCross=(100,),WidthPointProfile=50km)
386+ extract_ProfileData (ProfileCoordFile::String,ProfileNumber::Int64,DataSetFile::String; DimsVolCross=(100,100),DepthVol=nothing,DimsSurfCross=(100,),WidthPointProfile=50km)
387387
388388This is a convenience function (mostly for backwards compatibility with the MATLAB GUI) that loads the data from file & projects it onto a profile
389389"""
390- function extract_profile_data (ProfileCoordFile:: String ,ProfileNumber:: Int64 ,DataSetFile:: String ; DimsVolCross= (100 ,100 ),DepthVol= nothing ,DimsSurfCross= (100 ,),WidthPointProfile= 50 km)
390+ function extract_ProfileData (ProfileCoordFile:: String ,ProfileNumber:: Int64 ,DataSetFile:: String ; DimsVolCross= (100 ,100 ),DepthVol= nothing ,DimsSurfCross= (100 ,),WidthPointProfile= 50 km)
391391
392392 # read profile
393393 profile_list = read_picked_profiles (ProfileCoordFile)
@@ -408,7 +408,7 @@ function extract_profile_data(ProfileCoordFile::String,ProfileNumber::Int64,Data
408408 VolData_combined = combine_vol_data (VolData)
409409
410410 # project data onto profile:
411- extract_profile_data ! (profile, VolData_combined, SurfData, PointData,
411+ extract_ProfileData ! (profile, VolData_combined, SurfData, PointData,
412412 DimsVolCross= DimsVolCross, DimsSurfCross= DimsSurfCross,
413413 Depth_extent= DepthVol, section_width= WidthPointProfile)
414414
420420
421421# Boris: I don't know exactly in which format you have your current files;
422422### wrapper function to extract data for a single profile
423- function extract_profile_data (ProfileCoordFile,ProfileNumber,DataSetName,DataSetFile,DataSetType,DimsVolCross,DepthVol,DimsSurfCross,WidthPointProfile)
423+ function extract_ProfileData (ProfileCoordFile,ProfileNumber,DataSetName,DataSetFile,DataSetType,DimsVolCross,DepthVol,DimsSurfCross,WidthPointProfile)
424424
425425 # start and end points are saved in a text file
426426 profile_data = readdlm(ProfileCoordFile,skipstart=1,',')
@@ -479,7 +479,7 @@ function create_ProfileData(file_profiles,file_datasets;Depth_extent=(-300,0),Di
479479 for iprofile = 1:length(ProfileNumber)
480480
481481 # 2. process the profiles
482- ExtractedData = extract_profile_data (file_profiles,ProfileNumber[iprofile],DataSetName,DataSetFile,DataSetType,DimsVolCross,Depth_extent,DimsSurfCross,WidthPointProfile)
482+ ExtractedData = extract_ProfileData (file_profiles,ProfileNumber[iprofile],DataSetName,DataSetFile,DataSetType,DimsVolCross,Depth_extent,DimsSurfCross,WidthPointProfile)
483483
484484 # 3. save data as JLD2
485485 fn = "Profile"*string(ProfileNumber[iprofile])
0 commit comments