public NcVarAtt PutAtt(string name, NcType type, double[] dataValues) { CheckNull(); CheckDefine(); if(!type.IsFixedType()) throw new NotImplementedException("PutAtt() not implemented for non-fixed types"); NcCheck.Check(NetCDF.nc_put_att_double(groupId, myId, name, type.GetId(), dataValues.Length, dataValues)); return GetAtt(name); }
public NcVarAtt PutAtt(string name, NcType type, float datumValue) { CheckNull(); CheckDefine(); if(!type.IsFixedType()) throw new NotImplementedException("PutAtt() not implemented for non-fixed types"); NcCheck.Check(NetCDF.nc_put_att_float(groupId, myId, name, type.GetId(), 1, new float[] { datumValue })); return GetAtt(name); }
public NcGroupAtt PutAtt(string name, NcType type, Int16[] dataValues) { CheckNull(); CheckDefine(); //TODO: Support for VLEN | OPAQUE | ENUM | COMPOUND if(!type.IsFixedType()) throw new NotImplementedException("PutAtt() not implemented for non-fixed types"); NcCheck.Check(NetCDF.nc_put_att_short(myId, NcAtt.NC_GLOBAL, name, type.GetId(), dataValues.Length, dataValues )); return GetAtt(name); }
public NcGroupAtt PutAtt(string name, NcType type, float[] dataValues) { CheckNull(); CheckDefine(); if(!type.IsFixedType()) throw new NotImplementedException("PutAtt() not implemented for non-fixed types"); NcCheck.Check(NetCDF.nc_put_att_float(myId, NcAtt.NC_GLOBAL, name, type.GetId(), dataValues.Length, dataValues )); return GetAtt(name); }
public NcGroupAtt PutAtt(string name, NcType type, double datumValue) { CheckNull(); CheckDefine(); if(!type.IsFixedType()) throw new NotImplementedException("PutAtt() not implemented for non-fixed types"); NcCheck.Check(NetCDF.nc_put_att_double(myId, NcAtt.NC_GLOBAL, name, type.GetId(), 1, new double[] { datumValue })); return GetAtt(name); }