src/AircraftTrajectories/Models/Optimisation/NoisePowerDistance.cs
/// <summary>
/// Read the raw NPD database from disk
/// </summary>
/// <returns></returns>
Read the raw NPD database from disk
Read the raw NPD database from disk
protected string[][] ReadRawData()
        {
            string rawData = File.ReadAllText(Globals.currentDirectory + "INM_data.dat");
            string[][] INMData = rawData
                .Split('\n')
                .Skip(2)
                .Select(q =>
                    q.Split(new[] { " " }, StringSplitOptions.RemoveEmptyEntries)
                     .Select(Convert.ToString)
                     .ToArray()
                )
                .ToArray();
            return INMData;
        }
protected string [ ] [ ] ReadRawData ( ) { string rawData = File . ReadAllText ( Globals . currentDirectory + " " ) ; string [ ] [ ] INMData = rawData . Split ( ' \n ' ) . Skip ( 2 ) . Select ( q => q . Split ( new [ ] { " " } , StringSplitOptions . RemoveEmptyEntries ) . Select ( Convert . ToString ) . ToArray ( ) ) . ToArray ( ) ; return INMData ; }
Read the raw NPD database from disk
Read the raw NPD database from disk
None