Problem with netcdf file for Dogbone example

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
stesp
Posts: 2
Joined: Wed Jun 03, 2009 5:12 pm
Location: Knowtra Limited

Problem with netcdf file for Dogbone example

#1 Unread post by stesp »

I am trying to run the Dogbone refinement grid example, but it is having problems reading dogbone_ngc_refined.nc . If I do ncdump on the file I get

ncdump: v1hpg.c:190: v1h_get_nc_type: Assertion `type == NC_BYTE || type == NC_CHAR || type == NC_SHORT || type == NC_INT || type == NC_FLOAT || type == NC_DOUBLE' failed.

I get a similar error running ROMS.

Maybe i'm using the wrong version of the netcdf library (4.1.3)?

Thanks,

Steve Spall

kapitzah

Re: Problem with netcdf file for Dogbone example

#2 Unread post by kapitzah »

I'm having the same problem:

"ncdump -h dogbone_ngc_refined.nc" fails with the error message "ncdump: dogbone_ngc_refined.nc: Argument list too long".

The "file" command returns: "dogbone_ngc_refined.nc: data" while it should return something in the form of "...: NetCDF Data Format data"

So there is obviously something wrong with the file.

Cheers
Hartmut

stesp
Posts: 2
Joined: Wed Jun 03, 2009 5:12 pm
Location: Knowtra Limited

Re: Problem with netcdf file for Dogbone example

#3 Unread post by stesp »

Does anyone have any ideas on this? I can try to figure it out myself, but i'd rather be testing my own refinement grids rather than troubleshooting the standard example.

turuncu
Posts: 128
Joined: Tue Feb 01, 2005 8:21 pm
Location: Istanbul Technical University (ITU)
Contact:

Re: Problem with netcdf file for Dogbone example

#4 Unread post by turuncu »

Hi,

I am having same problem. Is this file corrupted somehow? Any idea to run the doggone test case? It could be related with NetCDF version but i am not sure.

Thanks,

--ufuk

jcwarner
Posts: 1180
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Problem with netcdf file for Dogbone example

#5 Unread post by jcwarner »

can you try this file?
Attachments
dogbone_contact_refined.nc
(425.89 KiB) Downloaded 279 times

turuncu
Posts: 128
Joined: Tue Feb 01, 2005 8:21 pm
Location: Istanbul Technical University (ITU)
Contact:

Re: Problem with netcdf file for Dogbone example

#6 Unread post by turuncu »

Hi,

Thanks for your help. The file is okay now but dogbone_ngc_composite.nc has also same issue. If you don't mind could you regenerate that too. By the way, i could not see any difference in the definition of CPP flags in ticket 673

https://www.myroms.org/projects/src/ticket/673

Regards,

--ufuk

turuncu
Posts: 128
Joined: Tue Feb 01, 2005 8:21 pm
Location: Istanbul Technical University (ITU)
Contact:

Re: Problem with netcdf file for Dogbone example

#7 Unread post by turuncu »

Hi Again,

I am trying to generate 'dogbone_ngc_composite.nc' using Matlab toolbox using following Matlab commands

input = {'roms/Data/ROMS/Grid/dogbone_grd_left.nc'; ...
'roms/Data/ROMS/Grid/dogbone_grd_right.nc'};
output = 'dogbone_ngc_composite.nc'

[S,G] = contact(input, output);

but it gives errors as

output =

dogbone_ngc_composite.nc


Summary of Contact Regions Processed:

Grid 01: roms/Data/ROMS/Grid/dogbone_grd_left.nc
Grid 02: roms/Data/ROMS/Grid/dogbone_grd_right.nc

Contact Donor Receiver
Region Grid Grid

01 01 02
02 02 01

Error using sub2ind (line 52)
Out of range subscript.

Error in contact>Hweights (line 2453)
RindexB = sub2ind([Ir, Jr], ...

Error in contact (line 352)
S = Hweights(G, S, ImposeMask);

Error in dogbone (line 5)
[S,G] = contact(input, output);

Do you have any idea bout it?

--ufuk

Post Reply