Skip to content

Instantly share code, notes, and snippets.

@gioAlea
Last active February 5, 2016 16:41
Show Gist options
  • Save gioAlea/915a8a50b8887ac9247b to your computer and use it in GitHub Desktop.
Save gioAlea/915a8a50b8887ac9247b to your computer and use it in GitHub Desktop.
SDDS_cheatsheet

SDDS

Printout

Table structure: sddsquery filename.file | more

column elements: sddsprintout filename.file -col=coltitle | more

###Export to csv sddsprintout -spreadsheet=csv -col=* filename.file filename.cdv

Plot

sddsplot filename.file -col=a,'(b,c,...)' -graph=line,vary -legend -split=page -separate=nameIndex

Cut a column

sddsconvert oldfilename newfilename -delete=col,colname

SDDS2Matlab

strjoin(cellstr(sdds.column.(element).page1)) transforms a java.lang.string element into a legal matlab string

References:

[1] SDDS Manual: http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/manuals/SDDStoolkit/SDDStoolkit.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment