NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: 20000801: moving netCDF use from C to Java

Hi Joshua:

Unidata Support wrote:
> 
> ------- Forwarded Message
> 
> >From: "Joshua A Moore" <jamd@xxxxxxxxxxxx>
> >Subject: C to Java
> >Organization: ?
> >Keywords: 200008011920.e71JK2T24655 netCDF C Java
> 
> I have used the C version of netcdf and now I am using the java version.  I
>  am trying to find methods in the java version that are similar to the
> following C functions:

> nc_inq_varid

  in netcdf.NetcdfFile: 
  public Variable get(java.lang.String name)

> nc_get_att_text

  in netcdf.Variable:
  public Attribute getAttribute(java.lang.String name)

  then in Attribute:
  public java.lang.String getStringValue()

> nc_get_var1_int

  in netcdf.Variable:
  public int getInt(int[] index)

> nc_get_vara_short

  in netcdf.Variable:
  public MultiArray copyout(int[] origin, int[] shape)
  
  then access with this MultiArray method:
  public int getShort(int[] index)

> 
> Please let me know if there are any direct conversions
> 

have fun,
john caron


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