dap4/d4lib/src/main/java/dap4/dap4lib/netcdf/Nc4DSP.java
void
    note(Notes note)
    {
        assert (this.allnotes != null);
        int gid = note.gid;
        int id = note.id;
        NoteSort sort = note.getSort();
        Map<Long, Notes> sortnotes = this.allnotes.get(sort);
        assert sortnotes != null;
        switch (sort) {
            case TYPE:
            case GROUP:
            case DIM:
                assert sortnotes.get(id) == null;
                sortnotes.put((long) id, note);
                break;
            case VAR:
                long gv = Nc4Notes.getVarId((VarNotes) note);
                assert sortnotes.get(gv) == null;
                sortnotes.put(gv, note);
                break;
        }
    }
void
    note(Notes note)
    {
        assert (this.allnotes != null);
        int gid = note.gid;
        int id = note.id;
        NoteSort sort = note.getSort();
        Map<Long, Notes> sortnotes = this.allnotes.get(sort);
        assert sortnotes != null;
        switch (sort) {
            case TYPE:
            case GROUP:
            case DIM:
                assert sortnotes.get(id) == null;
                sortnotes.put((long) id, note);
                break;
            case VAR:
                long gv = Nc4Notes.getVarId((VarNotes) note);
                assert sortnotes.get(gv) == null;
                sortnotes.put(gv, note);
                break;
        }
    }
/*package