1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
|
# File 'ext/netcdfraw.c', line 1496
VALUE
NetCDF_att_typecode(VALUE Att)
{
int ncid;
int varid;
int status;
char *att_name;
struct NetCDFAtt *Netcdf_att;
nc_type xtypep;
Data_Get_Struct(Att,struct NetCDFAtt,Netcdf_att);
ncid = Netcdf_att->ncid;
varid = Netcdf_att->varid;
att_name = Netcdf_att->name;
status = nc_inq_atttype(ncid,varid,att_name,&xtypep);
if(status != NC_NOERR) NC_RAISE(status);
return(INT2NUM(nctype2natypecode(xtypep)));
}
|