#1170 closed defect (fixed)

Error in encode 3D NetCDF from rasql

Reported by: bphamhuu Owned by: gmerticariu
Priority: major Milestone: 9.3
Component: mddmgr Version: development
Keywords: Cc: dmisev, mdumitru
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 bphamhuu 20 months ago.
log error

Download all attachments as: .zip

Change History (7)

Changed 20 months ago by bphamhuu

log error

comment:1 Changed 20 months ago by mdumitru

  • Milestone changed from 9.2 to Future
  • Owner set to gmerticariu
  • Priority changed from major to minor
  • Status changed from new to assigned

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 Changed 20 months ago by dmisev

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

comment:3 Changed 20 months ago by bphamhuu

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

comment:4 Changed 20 months ago by dmisev

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

comment:5 Changed 16 months ago by dmisev

Patch for #1016 addresses this issue.

comment:6 Changed 16 months ago by bphamhuu

  • Milestone changed from Future to 9.3
  • Priority changed from minor to major
  • Resolution set to fixed
  • Status changed from assigned to closed

Ok, thanks Dimitar.

Note: See TracTickets for help on using tickets.