Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll through days at plot level #294

Open
aeffler opened this issue Sep 27, 2019 · 17 comments
Open

Scroll through days at plot level #294

aeffler opened this issue Sep 27, 2019 · 17 comments

Comments

@aeffler
Copy link

aeffler commented Sep 27, 2019

I think this should be easy to implement at the website level. If someone wants to scroll through several days of a certain plot, you have to do it at the page level. I would like to have arrows when I select a plot to look at, such that I can scroll through just that plot as it changes the days.

@eagoetz
Copy link
Collaborator

eagoetz commented Jul 21, 2022

I like the idea of this too, but currently have no idea how to implement it, let alone time to dive deep into the guts of how to implement the feature. I'll see what I can do...

@areeda
Copy link
Collaborator

areeda commented Jul 21, 2022

This kind of display is easy to produce as an animated GIF. It should be possible to add say a week or month look back for specific plots.

However the Summary pages are static html content. It is not possible in the current set up to select an image and specify how many days.

@aeffler please give us an image and time frame you would like to see as a feasibility demo.

@areeda
Copy link
Collaborator

areeda commented Jul 21, 2022

This is what I do for fun (I know!)

How does this look?
It needs work but should be enough to get the idea.

@aeffler
Copy link
Author

aeffler commented Jul 22, 2022 via email

@aeffler
Copy link
Author

aeffler commented Jul 22, 2022 via email

@eagoetz
Copy link
Collaborator

eagoetz commented Jul 22, 2022

So i fail to understand why the arrow can't be coded to link to the same url, but with a number changed in it.

Have you seen the gwsumm codebase? It's quite complicated, but I am trying to understand more so maybe someday you'll get this. Just don't hold your breath.

@aeffler
Copy link
Author

aeffler commented Jul 22, 2022 via email

@areeda
Copy link
Collaborator

areeda commented Jul 22, 2022

We will discuss this at our next meeting. I see Anamaria's point but I'm not sure that we do know the name the image are named something like:
https://ldas-jobs.ligo-la.caltech.edu/~detchar/summary/day/20220722/plots/L1-LOCKED_18A747_TIMESERIES-1342483218-86400.png
I have to check if the image id is fixed and that gps time/duration is always 24hr from UTC 00:00 independent of detector state.

@eagoetz
Copy link
Collaborator

eagoetz commented Jul 22, 2022

Yeah, that "18A747" is some SHA256 hash ID. Maybe it is a predictable thing, but I don't know

@areeda
Copy link
Collaborator

areeda commented Jul 22, 2022

Oh and the animated gif is a fairly simple bash script but let's see if we can do it Anamaria's way. The weekly summary pages generated every day (last 7 days) might dovetail into this.

@aeffler
Copy link
Author

aeffler commented Jul 24, 2022 via email

@areeda
Copy link
Collaborator

areeda commented Jul 25, 2022

I am more confused than usual.
How is that different than pressing the '<<' or '>>' buttons next to the date in the tool bar?

@aeffler
Copy link
Author

aeffler commented Jul 25, 2022 via email

@areeda
Copy link
Collaborator

areeda commented Jul 25, 2022

Ah OK. When you click on a plot now the browser is opening "gallery" for me where the left/right arrows move through the images on that page. That seems to be a jQuery object. Does anyone know how to work with those?

@areeda
Copy link
Collaborator

areeda commented Jul 25, 2022

I think I need to be quiet and let those who know much more about summary page code look into this.

@eagoetz
Copy link
Collaborator

eagoetz commented Aug 8, 2022

I can address my own comment on the hash in the filename. Apparently it does not change from day to day, just the absolute path (that includes the date string) and the GPS time of the plot. The tricky thing may be when there are leap seconds so that GPS time and UTC time may get offset by one second relative to each other. We'll see how this could be done, though it will take some dev work in gwsumm/gwdetchar packages.

@duncanmmacleod
Copy link
Member

I can address my own comment on the hash in the filename. Apparently it does not change from day to day, just the absolute path (that includes the date string) and the GPS time of the plot. The tricky thing may be when there are leap seconds so that GPS time and UTC time may get offset by one second relative to each other. We'll see how this could be done, though it will take some dev work in gwsumm/gwdetchar packages.

The hash is taken from the type of plot and the list of channels included, see, for example:

gwsumm/gwsumm/plot/core.py

Lines 331 to 341 in 2050fca

@property
def pid(self):
try:
return self._pid
except AttributeError:
chans = "".join(map(str, self.channels))
filts = "".join(map(str, [
getattr(c, 'filter', getattr(c, 'frequency_response', ''))
for c in self.channels]))
self._pid = putils.hash(chans + filts)
return self.pid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants