@@ -124,7 +124,7 @@ GeoData
124
124
"""
125
125
function cross_section_volume (V:: AbstractGeneralGrid ; dims= (100 ,100 ), Interpolate= false , Depth_level= nothing , Lat_level= nothing , Lon_level= nothing , Start= nothing , End= nothing , Depth_extent= nothing )
126
126
127
- DataSetType = CheckDataSet (V);
127
+ DataSetType = check_data_set (V);
128
128
129
129
if DataSetType != 3
130
130
error (" cross_section_volume: the input data set has to be a volume!" )
@@ -253,7 +253,7 @@ GeoData
253
253
"""
254
254
function cross_section_surface (S:: AbstractGeneralGrid ; dims= (100 ,), Interpolate= true , Depth_level= nothing , Lat_level= nothing , Lon_level= nothing , Start= nothing , End= nothing )
255
255
256
- DataSetType = CheckDataSet (S);
256
+ DataSetType = check_data_set (S);
257
257
if DataSetType != 2
258
258
error (" cross_section_surface: the input data set has to be a surface!" )
259
259
end
@@ -337,7 +337,7 @@ Creates a projection of separate points (saved as a GeoData object) onto a chose
337
337
"""
338
338
function cross_section_points (P:: GeoData ; Depth_level= nothing , Lat_level= nothing , Lon_level= nothing , Start= nothing , End= nothing , section_width = 10 km)
339
339
340
- DataSetType = CheckDataSet (P);
340
+ DataSetType = check_data_set (P);
341
341
if DataSetType != 1
342
342
error (" cross_section_points: the input data set has to be a pointwise data set!" )
343
343
end
@@ -529,7 +529,7 @@ GeoData
529
529
"""
530
530
function cross_section (DataSet:: AbstractGeneralGrid ; dims= (100 ,100 ), Interpolate= false , Depth_level= nothing , Lat_level= nothing , Lon_level= nothing , Start= nothing , End= nothing , Depth_extent= nothing , section_width= 50 km)
531
531
532
- DataSetType = CheckDataSet (DataSet); # check which kind of data set we are dealing with
532
+ DataSetType = check_data_set (DataSet); # check which kind of data set we are dealing with
533
533
534
534
if DataSetType== 1 # points
535
535
DataProfile = cross_section_points (DataSet; Depth_level, Lat_level, Lon_level, Start, End, section_width)
@@ -814,7 +814,7 @@ function extract_subvolume(V::CartData;
814
814
X_cross[i,j,1 ] = x_val
815
815
end
816
816
817
- Data_extract = InterpolateDataFields_CrossSection (V, X, Y, Z, X_cross);
817
+ Data_extract = interpolate_data_fields_cross_section (V, X, Y, Z, X_cross);
818
818
819
819
else
820
820
# Don't interpolate
@@ -838,11 +838,11 @@ end
838
838
839
839
840
840
"""
841
- InterpolateDataFields_CrossSection (V::CartData, X,Y,Z,Xcross)
841
+ interpolate_data_fields_cross_section (V::CartData, X,Y,Z,Xcross)
842
842
843
843
Interpolates data fields along a cross-section defined by `Xcross` and `Z`
844
844
"""
845
- function InterpolateDataFields_CrossSection (V:: CartData , X,Y,Z, X_cross)
845
+ function interpolate_data_fields_cross_section (V:: CartData , X,Y,Z, X_cross)
846
846
847
847
Data_extract = CartData (X,Y,Z, (FlatCrossSection= X_cross,))
848
848
@@ -895,7 +895,7 @@ function CheckBounds(Data::AbstractArray, Data_Cross)
895
895
end
896
896
897
897
# CHECKS FOR VOLUME, SURFACE OR POINTS
898
- function CheckDataSet (DataSet:: GeoData )
898
+ function check_data_set (DataSet:: GeoData )
899
899
if length (size (DataSet. lon)) == 1 # scattered points
900
900
return 1
901
901
else
@@ -907,7 +907,7 @@ function CheckDataSet(DataSet::GeoData)
907
907
end
908
908
end
909
909
910
- function CheckDataSet (DataSet:: CartData )
910
+ function check_data_set (DataSet:: CartData )
911
911
if length (size (DataSet. x)) == 1 # scattered points
912
912
return 1
913
913
else
0 commit comments