Opened 8 years ago

Closed 8 years ago

#1387 closed defect (fixed)

Grib message domains should be relative to the file domain

Reported by: Vlad Merticariu Owned by: Vlad Merticariu
Priority: major Milestone: 9.3
Component: petascope Version: development
Keywords: Cc:
Complexity: Medium

Description

Currently, the grib message domains that are passed in the decode() function to rasdaman are relative to the domain of the object. They should be relative to the domain of the file for the decoder to work correctly.

E.g.: given 2 grib files of domain [0:1000,0:10,0:10], that together form an array of domain [0:2000,0:10,0:10], the grib message domains of file 1 should be [0:0, 0:10, 0:10], [1:1, 0:10,0:10], …, [1000:1000, 0:10,0:10]. The message domain corresponding to file2 should also be [0:0, 0:10, 0:10], [1:1, 0:10,0:10], …, [1000:1000, 0:10,0:10], and NOT [1000:1000, 0:10, 0:10], …, [2000:2000, 0:10,0:10], otherwise the decoder will try to read from potion 2000 on the first dimension of file2, which is out of bounds.

Change History (1)

comment:1 by Bang Pham Huu, 8 years ago

Milestone: 9.3
Resolution: fixed
Status: newclosed

close as patch was accepted.

Note: See TracTickets for help on using tickets.