Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }