Error reporting for NETcdf files needs improvement

Bug #920944 reported by Jon Hill
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fluidity
Fix Released
Undecided
Adam Candy

Bug Description

See Yi HanSoo email on 23/01/12.

A scenario with two or more netcdf files (e.g. bathymetry, forcing, initial conditions, or NEMO data) are produce similar error messages: "Point not found in netcdf file". However, it's doesn't say which netcdf file. Error messages need updating to at least print out the filename, but the variable being searched would also be useful.

Related branches

Jon Hill (jon-hill)
Changed in fluidity:
status: New → Triaged
Jon Hill (jon-hill)
Changed in fluidity:
assignee: nobody → Jon Hill (jon-hill)
Revision history for this message
Adam Candy (asc) wrote :
Download full text (4.9 KiB)

As well as pointing to the relevant CF conventions, the error could suggest interrogating the netCDF header using 'ncdump -h'. This was demonstrated in my recent email to Lee, to extract the range of the field values. In this case the coordinate fields are defined in a Cartesian coordinate system, not geographic. It also lists the CF convention used. This is one way we could suggest the user can check the file is formatted correctly.

# ncdump -h initSWL.grd
netcdf initSWL {
dimensions:
        x = 2161 ;
        y = 1321 ;
variables:
        double x(x) ;
                x:long_name = "x" ;
                x:actual_range = 126., 144. ;
        double y(y) ;
                y:long_name = "y" ;
                y:actual_range = 28., 39. ;
        float z(y, x) ;
                z:long_name...

Read more...

Changed in fluidity:
milestone: none → 4.1.4
Adam Candy (asc)
Changed in fluidity:
assignee: Jon Hill (jon-hill) → Adam Candy (asc)
status: Triaged → Fix Committed
Changed in fluidity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.