Opened 13 years ago

Closed 12 years ago

#147 closed defect (fixed)

netcdf conversion output is not properly encoded

Reported by: Jinsongdi Yu Owned by: d.misev@…
Priority: minor Milestone: 8.4
Component: conversion Version: 8.3
Keywords: netcdf Cc: p.baumann@…
Complexity: Medium

Description

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 Jinsongdi Yu 13 years ago.
the cdl is generated by ncdump -b c mr.nc>mr.cdl

Download all attachments as: .zip

Change History (3)

by Jinsongdi Yu, 13 years ago

Attachment: mr.cdl added

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

comment:1 by Jinsongdi Yu, 13 years ago

Priority: majorminor

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: http://cf-pcmdi.llnl.gov/conformance/compliance-checker/

Note: netcdf(float) works fine.

comment:2 by Dimitar Misev, 12 years ago

Resolution: fixed
Status: newclosed

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.