-
Notifications
You must be signed in to change notification settings - Fork 1
OperateMetada
Adrian Quintana edited this page Dec 11, 2017
·
1 revision
This program performs operations over columns in a metaData file
$ metadata_operate
Parameters
- ``
- `` by default input metadata is overwrited
- `` mathematical operation to be performed
Note: metadataFile Format is descibedMetadata some valid operations are +,*,-,/,'acos', 'asin ', 'atan', 'atan2', 'ceil', 'cos', 'cosh', 'degrees', 'e' , 'exp', 'fabs', 'floor', 'fmod', 'frexp', 'hidden_value', 'hypot', 'ldexp', 'log', 'log10', 'modf', 'pi', 'pow', 'radians', 'sin', 'sinh', 'sqrt', 'tan' and 'tanh'. And extensive list is available at http://docs.python.org/library/math
Convert angleRot from degrees to radians
xmipp_operate_metadata -i a.doc -o b.doc -e "angleRot=sin(angleRot*pi/180.)"
Create or overwite anglePsi with a function that use as arguments angleRot and angleTilt
xmipp_operate_metadata -i a.doc -o b.doc -e "angletilt=sin(angleRot)*angleTilt"
Replace file extension "xpm" by "spi"
operate_metadata -i a.doc -o b.doc -e "image=image.replace('xmp','spi')"
--Main.RobertoMarabini - 10 Mar 2008