Histogram export missing values

Questions specific to Megalogviewer

Moderator: LT401Vette

Post Reply
lutorm
Helpful MS/Extra'er
Posts: 146
Joined: Sat Apr 11, 2015 2:53 pm
Location: The island of Hawaii

Histogram export missing values

Post by lutorm »

I'm trying to use the histogram export function. However, if the log doesn't hit every possible grid point, there are blanks in the histogram and those just get output as nothing to the generated .table file. The result is that it's impossible to know what columns the values came from when you try to read the file. If a bin doesn't have a calculated value, it seems it should output NaN or something in that place so the geometry of the file is correct.

Example output:

Code: Select all

<zValues cols="7" rows="7">
          24.55625769897027 24.404072586649995 25.755729559303003 36.265253046480545 44.443723233387075 41.85877406384026 
         32.16607666015625 30.63561867430165 27.52844503736365 32.09023517150203 46.04066054473955 46.44348428126356 52.5672440156666 
         36.49392684878354 36.26336666711855 32.7452765207734 40.897891402638336 56.55861124891624 60.18229358291955 61.826811386891805 
         36.60920381170478 39.561329040164594 43.39558560707717 47.77804626687662 66.85455323914255 78.02500060314026 86.56924313331267 
         38.35599074330146 50.34304996364434 48.23025444316459 48.52974649720038 75.24419365319653 85.34702200584236 88.14278488075367 
         39.4383885439906 55.47380459256954 53.33458666393085 61.00290553171863 75.60544079310019 86.78973376931566 88.49087986603203 
         51.26315689086914 51.26315689086914 56.752381983809684 59.00004162916365 78.1660252651391 83.58498509854128  
      </zValues>
Note that the first and last rows only have 6 cols, not 7. But it's impossible to know which column is missing.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Histogram export missing values

Post by LT401Vette »

It includes a delimiter for each empty cell, but leaves the value blank as it wouldn't want to make a number to put in there.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
lutorm
Helpful MS/Extra'er
Posts: 146
Joined: Sat Apr 11, 2015 2:53 pm
Location: The island of Hawaii

Re: Histogram export missing values

Post by lutorm »

LT401Vette wrote:It includes a delimiter for each empty cell, but leaves the value blank as it wouldn't want to make a number to put in there.
You mean the extra whitespace character? The problem with that is that no reader I know of can parse that whitespace (especially since the table is indented with spaces, too. This seems like a perfect application for a literal "nan" -- all floating-point readers should be able to interpret that.
Post Reply