Matlab, NetCDF-C and NetCDF Java?

Rich Signell rsignell at usgs.gov
Sun Sep 24 10:34:47 MDT 2006


NJ Folk:

I got no responses on my inquiry, so let me try to simplfy:

Could NetCDF-Java be used to mimic each function in the NetCDF-3 C API
or are there certain functions that just can't be accomplished in the
NetCDF Java API.  Like reentering define mode.


-Rich


On 9/21/06, Rich Signell <rsignell at usgs.gov> wrote:
> NJ folk,
>
> Matlab users currently interact with NetCDF files through a
> machine-dependent  interface that must be compiled and linked with
> Matlab and NetCDF C libraries.
>
> We are wondering if we could recode this interface so that the
> routines are just wrappers that call NetCDF Java instead.
>
> The general syntax of the interface is:
>
>      mexnc(funcstr,param1,param2,...), where there is a one-to-one
>     correspondence between functions in the NetCDF 4.0 and 3.0 API and
>     valid values for funcstr.
>
> Examples:
>
> NetCDF C: nc_close(ncid)
> MATLAB:   mexnc('close',ncid)
>
> NetCDF C: int nc_inq_attname(int ncid, int varid, int attnum, char *name);
> MATLAB: [attname, status] = mexnc ( 'inq_attname', ncid, varid, attid );
>
> The question is whether *all* these Matlab functions (lookalike NetCDF
> function calls) could actually call NetCDF java, or whether for some
> functions there just is no equivalent in java.
>
> For example, in NetCDF Java is it possible to reenter define mode?
>
> Thanks,
> Rich
>
> --
> Dr. Richard P. Signell   (508) 457-2229
> USGS, 384 Woods Hole Rd.
> Woods Hole, MA 02543-1598
>


-- 
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598

==============================================================================
To unsubscribe netcdf-java, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================



More information about the Netcdf-java mailing list