Home | Trees | Indices | Help |
|
---|
|
object --+ | FrameCache --+ | AutoqueryingFrameCache
This subclass of FrameCache will query ligo_data_find automatically, so no LAL-cache files are required. Limitation: you'll need one instance per frame type. Constructor: AutoqueryingFrameCache(frametype, hostPortString=None, scratchdir=None, verbose=False) Inputs: frametype is the type of GWF frame you seek (e.g. RDS_R_L1). hostPortString is the name of the LDR server and optionally, with colon separation, the port (e.g. ldr.ligo.caltech.edu) scratchdir determines where to locally cache frames. If None, no caching is performed. Example: >>> from pylal import frutils >>> d = frutils.AutoqueryingFrameCache(frametype="H1_RDS_C03_L2", scratchdir="/tmp", verbose=True) >>> data = d.fetch("H1:LSC-STRAIN", 861417967, 861417969) Copying /Users/nvf/temp/H-H1_RDS_C03_L2-861417967-128.gwf --> /tmp/H-H1_RDS_C03_L2-861417967-128.gwf. >>> print(data) [ 1.68448009e-16 1.69713183e-16 1.71046196e-16 ..., 1.80974629e-16 1.80911765e-16 1.80804879e-16] {'dt': 6.103515625e-05, 'segments': [segment(861417967, 861417969)], 'comments': [], 'name': 'H1:LSC-STRAIN'} >>> exit() Removing /tmp/H-H1_RDS_C03_L2-861417967-128.gwf. Using AutoqueryingFrameCache outside of LDG clusters, using Caltech as a gateway: * Just the first time you do this procedure: "sudo mkdir /data && sudo chown albert.einstein /data" (replace albert.einstein with your local username; /data may be different for different clusters) * Set the LIGO_DATAFIND_SERVER environment variable to ldr.ligo.caltech.edu (or the LDR server of the LDG cluster nearest you) * Use "sshfs -o ssh_command=gsissh albert.einstein@ldas-pcdev1.ligo.caltech.edu:/data /data" (replace albert.einstein with your cluster username) * Use "umount /data" when you're done. Unmounting cleanly will help prevent headaches the next time you want to set this up.
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Initializes interface to frame data. See .__class__.__doc__
|
Do we know where the frame file is?
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 12 01:21:42 2017 | http://epydoc.sourceforge.net |