|
Editing Object ValuesTwo commands are available to transfer object values to and from formatted files. qcl>GET HDF_OBJECT,HDF_FMTFLE This command will transfer the data values of the object HDF_OBJECT (which can be a slice) to the formatted file HDF_FMTFLE. qcl>PUTx HDF_FMTFLE,HDF_NELS,HDF_OBJECT This command will transfer HDF_NELS data values from the file HDF_FMTFLE to the object HDF_OBJECT (which can be a slice). The data type of the values is determined by the character "x" in the command. I,R,D,C,L will transfer integer, real, double precision, character and logical values respectively, into the object. All values can be essentially free format on the source file. Character values must occur 1 per line and logical values must be Yes (or just Y) and No (or just N) separated by spaces or tabs. A combination of GET and PUTx can be used to edit an object or slice of an object. qcl>GET 'data(3:10)','temp.dat' qcl>$$vi temp.dat qcl>PUTR 'temp.dat',7,'data(3:10)' Note that single cells and scalar objects are more easily changed using the HDE_ prefix in QCL. qcl>HDS_NODE='joke.sdf' qcl>HDE_DATA(2,4)=3.5 These two QCL commands will change the value of joke.sdf%data(2,4) to 3.5. [Next: Copying Objects] [Previous: Listing Object Elements] [Back to Command Descriptions] |
|||||||||||||||||||||||||||||||||||
|
|