Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 ncbo: automatic exclusion of variables not in common.

None
closed
None
5
2013-11-20
2005-10-11
No

I recently wanted to use ncdiff on two files that had a
large number of variables in common (approx 200) and a
few that were not (approx 20).

The command failed (v3.0.1) because of the variables
not in common.

What I wanted was for ncdiff to operate on the
variables that were in common, and ignore the rest.
This is what I intuitively expected it to do.

In order to work around this problem I had to use ncks
to create new input files without the offending
variables, and then use ncdiff on the new files. It was
tedious to find and exclude all the variables not in
common.

I therefore suggest ncdiff automatically ignore
variables not in common (except perhaps for a warning
message). If that is inadvisable for some reason, then
I suggest a new flag be created to provide this
functionality.

Discussion

  • Charlie Zender
    Charlie Zender
    2013-11-20

    Just notice this ticket was still open.
    This has worked for quite some time, at least since NCO 4.3.0,
    and possibly much earlier. Sorry for not informing you before now.
    So I am closing this ticket.
    cz

     
  • Charlie Zender
    Charlie Zender
    2013-11-20

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     I recently wanted to use ncdiff on two files that had a
     large number of variables in common \(approx 200\) and a
     few that were not \(approx 20\).
    
    • status: open --> closed
    • assigned_to: Charlie Zender
    • Group: -->