@@ -124,7 +124,7 @@ GeoData
124124"""
125125function 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 )
126126
127- DataSetType = CheckDataSet (V);
127+ DataSetType = check_data_set (V);
128128
129129 if DataSetType != 3
130130 error (" cross_section_volume: the input data set has to be a volume!" )
@@ -253,7 +253,7 @@ GeoData
253253"""
254254function cross_section_surface (S:: AbstractGeneralGrid ; dims= (100 ,), Interpolate= true , Depth_level= nothing , Lat_level= nothing , Lon_level= nothing , Start= nothing , End= nothing )
255255
256- DataSetType = CheckDataSet (S);
256+ DataSetType = check_data_set (S);
257257 if DataSetType != 2
258258 error (" cross_section_surface: the input data set has to be a surface!" )
259259 end
@@ -337,7 +337,7 @@ Creates a projection of separate points (saved as a GeoData object) onto a chose
337337"""
338338function cross_section_points (P:: GeoData ; Depth_level= nothing , Lat_level= nothing , Lon_level= nothing , Start= nothing , End= nothing , section_width = 10 km)
339339
340- DataSetType = CheckDataSet (P);
340+ DataSetType = check_data_set (P);
341341 if DataSetType != 1
342342 error (" cross_section_points: the input data set has to be a pointwise data set!" )
343343 end
@@ -529,7 +529,7 @@ GeoData
529529"""
530530function 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)
531531
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
533533
534534 if DataSetType== 1 # points
535535 DataProfile = cross_section_points (DataSet; Depth_level, Lat_level, Lon_level, Start, End, section_width)
@@ -814,7 +814,7 @@ function extract_subvolume(V::CartData;
814814 X_cross[i,j,1 ] = x_val
815815 end
816816
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);
818818
819819 else
820820 # Don't interpolate
@@ -838,11 +838,11 @@ end
838838
839839
840840"""
841- InterpolateDataFields_CrossSection (V::CartData, X,Y,Z,Xcross)
841+ interpolate_data_fields_cross_section (V::CartData, X,Y,Z,Xcross)
842842
843843Interpolates data fields along a cross-section defined by `Xcross` and `Z`
844844"""
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)
846846
847847 Data_extract = CartData (X,Y,Z, (FlatCrossSection= X_cross,))
848848
@@ -895,7 +895,7 @@ function CheckBounds(Data::AbstractArray, Data_Cross)
895895end
896896
897897# CHECKS FOR VOLUME, SURFACE OR POINTS
898- function CheckDataSet (DataSet:: GeoData )
898+ function check_data_set (DataSet:: GeoData )
899899 if length (size (DataSet. lon)) == 1 # scattered points
900900 return 1
901901 else
@@ -907,7 +907,7 @@ function CheckDataSet(DataSet::GeoData)
907907 end
908908end
909909
910- function CheckDataSet (DataSet:: CartData )
910+ function check_data_set (DataSet:: CartData )
911911 if length (size (DataSet. x)) == 1 # scattered points
912912 return 1
913913 else
0 commit comments