@@ -7,7 +7,6 @@ use crate::{
77 hatanaka:: CRINEX ,
88 header:: { DcbCompensation , Header , PcvCompensation } ,
99 leap:: Leap ,
10- linspace:: Linspace ,
1110 marker:: { GeodeticMarker , MarkerType } ,
1211 meteo:: { HeaderFields as MeteoHeader , Sensor as MeteoSensor } ,
1312 navigation:: { HeaderFields as NavigationHeader , IonosphereModel , KbModel , TimeOffset } ,
@@ -948,41 +947,6 @@ impl Header {
948947 . map_err ( |_| ParsingError :: DatetimeParsing )
949948 }
950949
951- /*
952- * Parse IONEX grid
953- */
954- fn parse_grid ( line : & str ) -> Result < Linspace , ParsingError > {
955- let mut start = 0.0_f64 ;
956- let mut end = 0.0_f64 ;
957- let mut spacing = 0.0_f64 ;
958- for ( index, item) in line. split_ascii_whitespace ( ) . enumerate ( ) {
959- let item = item. trim ( ) ;
960- match index {
961- 0 => {
962- start = f64:: from_str ( item) . or ( Err ( ParsingError :: IonexGridSpecs ) ) ?;
963- } ,
964- 1 => {
965- end = f64:: from_str ( item) . or ( Err ( ParsingError :: IonexGridSpecs ) ) ?;
966- } ,
967- 2 => {
968- spacing = f64:: from_str ( item) . or ( Err ( ParsingError :: IonexGridSpecs ) ) ?;
969- } ,
970- _ => { } ,
971- }
972- }
973- if spacing == 0.0 {
974- // avoid linspace verification in this case
975- Ok ( Linspace {
976- start,
977- end,
978- spacing,
979- } )
980- } else {
981- let grid = Linspace :: new ( start, end, spacing) ?;
982- Ok ( grid)
983- }
984- }
985-
986950 /// Parse list of [Observable]s which applies to both METEO and OBS RINEX
987951 pub ( crate ) fn parse_v2_observables (
988952 line : & str ,
0 commit comments