About UOV file format

Masaki Kouda Jun 26, 2000

Hi GUIDEs.

The documentation for .uov file is on the CD-ROM.
It is in the file \COMPRESS\OVL_FMT.DOC.
It is same file Luethen sent us.

I read it then I made 'Japanese constellation line' file.
That document tells you all information to understand .uov file.
I found some tips.

-----Original Message-----
H.Luethen <fb4a042@...-hamburg.de>


>FORMAT AND USE OF GUIDE .UOV (USER OVERLAY) FILES
>
> You'll notice that the top line contains a four-digit number declaring
>how many overlays are listed in the file. If you add or remove a line, you
>need to change this number. Also, each line is exactly the same length;
>keep this in mind when you edit the file.


I saw dump file of .uov file Bill created. It seems no need this number,
but it need "n " charactor at biginning of .uov file.

>-180 <= x < 180; add or subtract 360 to get into this range
>
>Z = (X + 180) * (2^24) / 360
>
>(so 0 <= Z < 2^24, a 24-bit quantity)
>
> byte[0] = Z mod 256 (least significant byte of Z)
> byte[1] = (Z / 256) mod 256 (next least significant byte of Z)
> byte[2] = (Z / 65536) mod 256 (most significant byte of Z)


This explanation is lillte different. I programed like this.

Dim Z As Long, B(2) As Byte

If X > 180 Then X = X - 360
If X < -180 Then X = X + 360

Z = (X + 180) * (2 ^ 24) / 360
B(0) = Z Mod 256
Z = Z - (Z Mod 256)
B(1) = (Z / 256) Mod 256
Z = Z - ((Z / 256) Mod 256) * 256
B(2) = (Z / 65536) Mod 256

I wish many programer create useful .uov file (and Creating uov software)

Masaki Kouda