aaronzou / mirone

Automatically exported from code.google.com/p/mirone
0 stars 0 forks source link

latest svn reports error while opening grd file #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. opening a grd file popsup the attached error window

What is the expected output? What do you see instead?

hour the error window popsup, grd file is opened and is workable.

What version of the product are you using? On what operating system?

latest SVN

Original issue reported on code.google.com by rrama...@gmail.com on 11 Mar 2008 at 10:43

Attachments:

GoogleCodeExporter commented 8 years ago
This is not really an error. It means that the first attempt to read the grid 
has 
failed but the backup solution worked well.
Why it failed is not understandable to me only from the (cryptic) error message.
In order to find out more I need to have access to that grid.

Original comment by jl...@ualg.pt on 11 Mar 2008 at 1:12

GoogleCodeExporter commented 8 years ago
hai Joaquim,

here is the test grid which showed opening problem ( i tried old grd files too 
with 
same warning window poppin up).

next I just tried to save the opened grid as another file.
the following error comes in matlab window and save operation failed.

ps: thought of loading fresh from SVN.
when I ran tortoiseSVN with "http://mirone.googlecode.com/svn/trunk/ 
mirone-read-
only" 
it does not fetch files!
only when I used "http://mirone.googlecode.com/svn/trunk/" I am able to fetch 
files.
what is that "mirone-read_only" switch?

cheers
-rajaraman

-----------
» ??? Error: File: C:\programs\mirone_SVN\utils\nc_funs.m Line: 1905 Column: 42
The construct "inds(...end...)" is ambiguous in this context,
 because "inds" cannot be ascertained to be either the name of a variable
 or of a function.  To make it a variable, assign to it; to allow it to
 become a function at execution time, replace "end" with a call to
 LENGTH, SIZE, or NUMEL on the desired array.

Error in ==> nc_io>write_nc at 102
    nc_funs('create_empty', fname)

Error in ==> nc_io at 37
            write_nc(fname, handles, data, misc)

Error in ==> mirone>FileSaveGMTgrid_CB at 772
    nc_io(f_name, 'w', handles, Z, misc),       set
(handles.figure1,'pointer','arrow')

Error in ==> mirone at 24
        feval(gui_Callback,varargin{2:end});

??? Error while evaluating uimenu Callback.
-----------------

Original comment by rrama...@gmail.com on 12 Mar 2008 at 8:17

Attachments:

GoogleCodeExporter commented 8 years ago
Rajaraman,

I'm totally lost with this errors (which I cannot reproduce).
The error report mention pieces of code that were introduced very recently in 
the 
nc_funs() function and that by no mean should be called when reading/writing 
netcdf 
files.
I suspect that your nc_funs() and/or nc_io() functions are corrupt. Try to 
remove 
them and and update your svn version to ensure that you have clean ones.

Regarding the question about the "mirone-read_only" switch, I have no idea. 
That 
instruction was placed there automatically by Google.

Cheers
Joaquim

Original comment by jl...@ualg.pt on 12 Mar 2008 at 6:51

GoogleCodeExporter commented 8 years ago
I got it (by chance). It was a forward incompatibility issue in a totally 
unrelated 
piece of code. It worked fine with R13 but no longer with R14.

Original comment by jl...@ualg.pt on 13 Mar 2008 at 3:36