DFO-CHS-Dynamic-Hydrographic-Products / IWLS_pygeoapi

pygeoapi plugins to access and process water level and surface currents from the IWLS public API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enforce Float and Integer precisions in metadata fields

maximecarre1 opened this issue · comments

Change templates and update methods to use Float and Integer (including enums) precisions described in S-111 1.2.0 and S-104 1.1.0.
Currently all floats are signed 64bit and all integer are signed 32bit.

S-104 1.1.0= page 93, tables 12.1, 12.2 ,12.3, 12,4
S-111 1.2.0 = page 95, tables 12.1, 12.2 ,12.3, 12,4

Use the following numpy class for encoding:
Float 64 = numpy.double
Float 32 = numpy.single
Int 32 = numpy.intc
Int 32 unsigned = numpy.uintc
Int 16 = numpy.short
Int 8 unsigned (for enumerations) = numpy.ubyte