In the PDL::NetCDF module, in typemap3. Unsigned PDL::byte are being mapped to NC_BYTE () - signed. Shouldn't be NC_UBYTE(). PDL's signed byte type is sbyte NetCDF.pm line 930