Opened 13 years ago
Closed 13 years ago
#147 closed defect (fixed)
netcdf conversion output is not properly encoded
Reported by: | Jinsongdi Yu | Owned by: | |
---|---|---|---|
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)
Change History (3)
by , 13 years ago
comment:1 by , 13 years ago
Priority: | major → 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: http://cf-pcmdi.llnl.gov/conformance/compliance-checker/
Note: netcdf(float) works fine.
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Just submitted patch that should fix it.
Exporting type char is only possible to short, as netcdf only supports exporting signed types.
the cdl is generated by ncdump -b c mr.nc>mr.cdl