...
In a the python interpreter:
>>>from sdas.core.client.SDASClient import SDASClient>>>from sdas.core.SDAStime import Date, Time, TimeStamp>>>host='baco.ipfn.ist.utl.pt' port=8888>>> port=8888 >>>client = SDASClient(host,port)
...
>>>found = client.searchDeclaredEventsByName('S')'); >>>found = client.searchDeclaredEventsByName('SHOT', 'pt')'); >>>found = client.searchDeclaredEventsByUniqueID('SHOT', 'pt')'); >>>found = client.searchDeclaredEventsByDescription('SHOT')'); >>>found = client.searchDeclaredEventsByDescription('SHOT', 'pt')'); >>>for item in found:>>>print 'item', item>>>max = client.searchMaxEventNumber('0x0000')>>>min = client.searchMinEventNumber('0x0000')
parametersFound = client.searchParametersByName('DENS') parametersFound = client.searchParametersByName('DENS', 'pt') parametersFound = client.searchParametersByUniqueID('DENS') for p in parametersFound: print p['descriptorUID']['uniqueID']
This function returns the parameters unique identifiers where the data isn’t null for the selected event:
dataFound = client.searchDataByEvent('0x0000', 17898) for d in dataFound: print d
...
In a the python interpreter:
>>>from sdas.core.client.SDASClient import SDASClient>>>from sdas.core.SDAStime import Date, Time, TimeStamp>>>host='baco.ipfn.ist.utl.pt'>>> port=8888 >>>client = SDASClient(host,port)
...
>>>found = client.searchDeclaredEventsByName('S'); >>>found = client.searchDeclaredEventsByName('SHOT', 'pt'); >>>found = client.searchDeclaredEventsByUniqueID('SHOT', 'pt'); >>>found = client.searchDeclaredEventsByDescription('SHOT'); >>>found = client.searchDeclaredEventsByDescription('SHOT', 'pt'); >>>for item in found:>>>print 'item', item>>>max = client.searchMaxEventNumber('0x0000')>>>min = client.searchMinEventNumber('0x0000')
...
found = client.searchDeclaredEventsByName('S') found = client.searchDeclaredEventsByName('SHOT', 'pt') found = client.searchDeclaredEventsByUniqueID('SHOT', 'pt') found = client.searchDeclaredEventsByDescription('SHOT') found = client.searchDeclaredEventsByDescription('SHOT', 'pt') for item in found: print 'item', item max = client.searchMaxEventNumber('0x0000') min = client.searchMinEventNumber('0x0000')
parametersFound = client.searchParametersByName('DENS') parametersFound = client.searchParametersByName('DENS', 'pt') parametersFound = client.searchParametersByUniqueID('DENS') for p in parametersFound: print p['descriptorUID']['uniqueID']
This function returns the parameters unique identifiers where the data isn’t null for the selected event:
dataFound = client.searchDataByEvent('0x0000', 17898) for d in dataFound: print d