Re: And now for something completely different...interface for the new

NOTE: The netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.

Hi Ed,

> > I suggest we add one function:
> > 
> > EXTERNL int 
> > nc_inq_unlimdims(int ncid, int *numlimdimsp, int *unlimdimidsp);
> > 
> > This function will return the number of unlimited dimensions in
> > nunlimdimsp, and an array of their ids in unlimdimidsp.
> > 
> > Meanwhile, nc_inq_unlimdim will return the first defined unlimited
> > dimension, for backward compatibility.
> > 
> > Any suggestions, corrections, rejections, projections, dejections,
> > directions, restrictions, or digressions are welcome.
> 
> This looks ideal to me, except for the minor typo in the prototype:
> 
> > EXTERNL int 
> > nc_inq_unlimdims(int ncid, int *numlimdimsp, int *unlimdimidsp);
>                                   nunlimdimsp
> 
> In the documentation, I would specify that the int* unlimdimidsp
> pointer could be NULL if you just want to inquire about the number of
> unlimited dimensions without getting their IDs.  This would also
> permit doing that first to allocate the right amount of space to hold
> the unlimited dimension IDs.
    Seems sensible to me.  (At least at this time in the development cycle :-)

        Quincey

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-hdf archives: