Opened 8 years ago

Closed 8 years ago

#1170 closed defect (fixed)

Error in encode 3D NetCDF from rasql

Reported by: Bang Pham Huu Owned by: George Merticariu
Priority: major Milestone: 9.3
Component: mddmgr Version: development
Keywords: Cc: Dimitar Misev, Alex Dumitru
Complexity: Medium

Description

This problem happens with encode("netCDF") but not with netcdf()

rasql -q 'select encode(c[2:7,90:110,11:111], "netCDF", "xmin=70.0;xmax=80.0;ymin=20.0;ymax=70.0;crs=EPSG:4326") from eobstest AS c where oid(c)=973825' --out file

error

[DEBUG] - 20/01/2016 09:00:47.114725, rasql.cc:827: query is: select encode(c[2:7,90:110,11:111], "netCDF", "xmin=70.0;xmax=80.0;ymin=20.0;ymax=70.0;crs=EPSG:4326") from eobstest AS c where oid(c)=973825
[DEBUG] - 20/01/2016 09:00:47.114742, rasql.cc:487: transaction was closed, opening ro...
[DEBUG] - 20/01/2016 09:00:47.115443, rasql.cc:489: ok
Executing retrieval query...[DEBUG] - 20/01/2016 09:00:47.131211, ../rasnetprotocol/rasnetclientcomm.cc:1831: Throwing error received from the server:error_text: "Exception:  ODMG General"
type: RERROR

rasdaman error 0: Exception:  ODMG General
aborting transaction...[DEBUG] - 20/01/2016 09:00:47.131316, rasql.cc:509: transaction was open, aborting it...
[DEBUG] - 20/01/2016 09:00:47.131333, transaction.cc:252: Abort Log:
[DEBUG] - 20/01/2016 09:00:47.131683, rasql.cc:511: ok
ok

Attachments (1)

log_netcdf.tar.gz (867.5 KB ) - added by Bang Pham Huu 8 years ago.
log error

Download all attachments as: .zip

Change History (7)

by Bang Pham Huu, 8 years ago

Attachment: log_netcdf.tar.gz added

log error

comment:1 by Alex Dumitru, 8 years ago

Milestone: 9.2Future
Owner: set to George Merticariu
Priority: majorminor
Status: newassigned

The encode function can handle only 2D data, as GDAL restricts us to this. A better error message should be shown though, George can you change this when you have time?
Priority set lower as not important for 9.2 release

comment:2 by Dimitar Misev, 8 years ago

encode(a, "netCDF") should be mapped to netcdf(a) internally.

comment:3 by Bang Pham Huu, 8 years ago

Dimitar: This is a quick fix, I can do this in petascope until George can do in Rasdaman ?

comment:4 by Dimitar Misev, 8 years ago

I think it's better to fix it in rasdaman, then it's not necessary to do anything in petascope.

comment:5 by Dimitar Misev, 8 years ago

Patch for #1016 addresses this issue.

comment:6 by Bang Pham Huu, 8 years ago

Milestone: Future9.3
Priority: minormajor
Resolution: fixed
Status: assignedclosed

Ok, thanks Dimitar.

Note: See TracTickets for help on using tickets.