Opened 5 years ago

Closed 5 years ago

#147 closed defect (fixed)

netcdf conversion output is not properly encoded

Reported by: j.yu Owned by: d.misev@…
Priority: minor Milestone: 8.4
Component: conversion Version: 8.3
Keywords: netcdf Cc: p.baumann@…


query: rasql -q "select netcdf(mr) from mr" --out file
The result in the variable is not properly encoded. See the attachment

The ncdump result is attached.

Note: both netcdf(mr) and inv_netcdf(mr) work for rasql.

Attachments (1)

mr.cdl (182.4 KB) - added by j.yu 5 years ago.
the cdl is generated by ncdump -b c>mr.cdl

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by j.yu

the cdl is generated by ncdump -b c>mr.cdl

comment:1 Changed 5 years ago by j.yu

  • Priority changed from major to minor

The 'char' type in rasdaman is the 'byte' type in netcdf. In netcdf, the 'char' type is used for the 8-bit characters intended for representing text. Therefore, the netcdf(char) result is in binary instead of ASCII.

However, the netcdf(char) result is validated against the compliance checker, see:

Note: netcdf(float) works fine.

comment:2 Changed 5 years ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed

Just submitted patch that should fix it.

Exporting type char is only possible to short, as netcdf only supports exporting signed types.

Note: See TracTickets for help on using tickets.