transientskp / banana

a web interface for the Transient Pipeline database
http://docs.transientskp.org/
Other
4 stars 6 forks source link

Extra column / option to display date-times as MJD #66

Open timstaley opened 9 years ago

timstaley commented 9 years ago

cf https://redmine.astron.nl/lofar_issuetracker/issues/6746

@gemmaanderson: "The current format of the observation date and time on Banana can be hard to parse depending on the type of analysis required. Could the Modified Julian Date also be included on Banana and the output CSV file?"

ajstewart commented 9 years ago

I think this would be a useful addition, for example this would make it simple to compare with another external light curves either directly with banana on-screen or in the output csv file. The UTC date format and MJD would cover the two main time formats that astronomers use, so while it could be argued that you could simply download the csv and convert it offline, having MJD available straight off the bat would be handy.

I did the below by defining a conversion function using astropy.time in the banana file unit.py.

Images Overview: images-overview-mjd

Running Catalog Detail: runningcat-mjd

It is also present on the image detail page. Also it is included in the output csv, e.g.:

id, taustart_ts (UTC), taustart_ts (MJD), tau_time, freq_central, f_int, f_int_err, f_peak, f_peak_err, extract_type, eta_nu, V_nu

10125, "2013-03-10T23:38:07.006950", 56361.9848033, 30.00305, 149000000.0, 1.02584115999, 0.131804461097, 1.0201962263, 0.0756785974716,0, 0.0, 0.0

@gemmaanderson does this cover what you were looking for?

Does anyone have any opinions that it should be presented in a different way?

gijzelaerr commented 8 years ago

We could also add pull down menu and let the user select the formatting for various things. We just have a limited amount of space and it is getting quite cluttered. Same with the positions in sexagesimal.

problem is that it is actually quite some work to add this functionality in javascript.