Skip to content

How to load a raw timestream from a session ID #360

Answered by jlashner
samdayweiss asked this question in Q&A
Discussion options

You must be logged in to vote

Hi sam! If you have the stream-id and the session-id, you can use the load_session function in sodetlib.stream to load an axis manager. This is loaded into the base sodetlib package, so you can do something like:

import sodetlib as sdl

stream_id = <stream_id>
session_id = <session_id>
am = sdl.load_session(stream_id, session_id)

If the data has already been transferred and you are running this on a server that's not the smurf-server, you need to set the base directory where the timestreams are saved, and pass that in as the base_dir kwarg. For example:

am = sdl.load_session(stream_id, session_id, base_dir='/mnt/so1/data/ucsd-sat1/timestreams')

If you have a G3tSmurf database setup, the…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@samdayweiss
Comment options

samdayweiss Jun 15, 2023
Collaborator Author

@jlashner
Comment options

Answer selected by samdayweiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants