Opened 13 years ago

Closed 13 years ago

#75 closed defect (fixed)

Problem rading multiband float32 data. CSV output not correct

Reported by: Damiano Barboni <barboni@…> Owned by: Peter Baumann
Priority: major Milestone:
Component: applications Version: 8.2
Keywords: Cc:
Complexity: Medium

Description

bug derived by a discussion on rasdaman-users mailing list at

http://groups.google.com/group/rasdaman-users/browse_thread/thread/f35db337ed6a408?hl=en

I defined a new DATATYPE and a new SET as a struct with 4 float32
element.

the "rasdl -p" output is:
typedef set <marray <struct { float Surface_Temperature, float
Surface_Pressure, float Total_Ozone, float Water_Vapor }, 2>> setMod07;

the create collection statement:
$ rasql -q "create collection mod07 setMod07"

the insert statement:
$ rasql -q 'insert into mod07 values marray x in [0:5,0:5] values struct
{0.1f, 0.2f, 0.3f, 0.4f}'

the select in CSV format
rasql -q "select csv(m) from mod07 as m" —out string

Follow the wrong CSV output that I obtain:

Result object 1: {"0.1 0.2 0.4 0.3","-1.9902e+08 -3.93531e-23 -2.00068e
+08 -1.99859e+08","-1.07606e+08 -1.59484e-23 -1.07608e+08 -1.07607e
+08","1.07375e+08 -1.58821e-23 -1.07375e+08 -1.07375e+08","0.2 0.3 0.1
0.4","-3.93531e-23 -1.99859e+08 -1.9902e+08 -2.00068e+08"},{"0.1 0.2 0.4
0.3","-1.9902e+08 -3.93531e-23 -2.00068e+08 -1.99859e+08","-1.07606e+08
-1.59484e-23 -1.07608e+08 -1.07607e+08","1.07375e+08 -1.58821e-23
-1.07375e+08 -1.07375e+08","0.2 0.3 0.1 0.4","-3.93531e-23 -1.99859e+08
-1.9902e+08 -2.00068e+08"},{"0.1 0.2 0.4 0.3","-1.9902e+08 -3.93531e-23
-2.00068e+08 -1.99859e+08","-1.07606e+08 -1.59484e-23 -1.07608e+08
-1.07607e+08","1.07375e+08 -1.58821e-23 -1.07375e+08 -1.07375e+08","0.2
0.3 0.1 0.4","-3.93531e-23 -1.99859e+08 -1.9902e+08 -2.00068e+08"},{"0.1
0.2 0.4 0.3","-1.9902e+08 -3.93531e-23 -2.00068e+08 -1.99859e
+08","-1.07606e+08 -1.59484e-23 -1.07608e+08 -1.07607e+08","1.07375e+08
-1.58821e-23 -1.07375e+08 -1.07375e+08","0.2 0.3 0.1 0.4","-3.93531e-23
-1.99859e+08 -1.9902e+08 -2.00068e+08"},{"0.1 0.2 0.4 0.3","-1.9902e+08
-3.93531e-23 -2.00068e+08 -1.99859e+08","-1.07606e+08 -1.59484e-23
-1.07608e+08 -1.07607e+08","1.07375e+08 -1.58821e-23 -1.07375e+08
-1.07375e+08","0.2 0.3 0.1 0.4","-3.93531e-23 -1.99859e+08 -1.9902e+08
-2.00068e+08"},{"0.1 0.2 0.4 0.3","-1.9902e+08 -3.93531e-23 -2.00068e+08
-1.99859e+08","-1.07606e+08 -1.59484e-23 -1.07608e+08 -1.07607e
+08","1.07375e+08 -1.58821e-23 -1.07375e+08 -1.07375e+08","0.2 0.3 0.1
0.4","-3.93531e-23 -1.99859e+08 -1.9902e+08 -2.00068e+08"}

the hexadecimal output:
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e
cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e
9a 99 99 3e cd cc cc 3e cd cc cc 3d cd cc 4c 3e 9a 99 99 3e cd cc cc 3e

Change History (1)

comment:1 by Dimitar Misev, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.