hisparc / publicdb Goto Github PK
View Code? Open in Web Editor NEWThe HiSPARC Public Database
Home Page: https://data.hisparc.nl/
License: GNU General Public License v3.0
The HiSPARC Public Database
Home Page: https://data.hisparc.nl/
License: GNU General Public License v3.0
Add a link that will always get the latest available installer.
Currently it is a manual operation to first upload a new installer to the server and the fix the links to the installer.
To make sure all pulse integral histograms are correct.
Since the recent updates the pulse integral is now correctly calculated (* 2.5 to go from mVsample to mVns)
The weather plots claim to use UTC on the x-axis, but seem (according to the tick labels) to show data from 23h (previous day) until 23h (current day).
When downloading the source data (csv) for a plot the first timestamp is the correct date (i.e. 1330560001 = March 1, 2012, 00:00:01)
So somehow the conversion from timestamp goes wrong.
Moreover, the first label of the x-axis is the date, this should be 0h, like in the event histogram.
The number of ticks on the x axis should be make the same for those plots.
(Example http://data.hisparc.nl/show/stations/501/2012/3/1/ )
Most usages for the OpenLayers Maps now have all code in their html files, meaning that they don't share code and global changes are hard to implement.
A large portion of this code should be moved to external files.
We are running on Django v1.1 and want to move to v1.4
While making sure everything keeps working.
Things to lookout for when upgrading to Django 1.7:
Check this page for more changes:
https://docs.djangoproject.com/en/1.7/releases/1.7/
Keep record of overflows in pulse integral/pulseheight histograms.
Currently those events are simply ignored.
Find a nice way to show them (all in last bin?)
The sort order and the grouping of stations on the station page should be changed. Something like: Netherlands at the top, alphabetically sorted countries below that. Main clusters alphabetically sorted, with subclusters grouped with the parent cluster.
We need to add a (boolean) column to the Station table which will determine if the station should be shown (or flagged) in the Station List.
This can be used to hide stations that were added but never made active or test stations.
The ubiquitous sparklines branch also includes code for downloading processed data as a csv-file. That is, event timestamps, pulse heights, and even particle arrival times can be downloaded using a crude form. Include this on the main site and clean it up.
This will finally enable students to quickly start analyzing shower direction using one station.
In all of yesterday's histograms for the 2-detector stations there is a peak in the first bin colored green/blue (detector 3/4). This peak is as high as the total amount of events. An example:
Source http://data.hisparc.nl/show/stations/7/2013/5/14/ :
[[1, 14, ..., 2, 1],
[0, 32, ..., 0, 2],
[66255, 0, ..., 0, 0],
[66255, 0, ..., 0, 0]]
The day before these stations did not have this: http://data.hisparc.nl/show/stations/7/2013/5/13/
This is after the update to use the ESD.
The ADC counts for the non-present detectors should be -1
> EDS_2013_5_14.root.hisparc.cluster_amsterdam.station_7.events.col('pulseheights').T
array([[208, 80, 274, ..., 81, 60, 157],
[195, 280, 320, ..., 71, 542, 241],
[ -1, -1, -1, ..., -1, -1, -1],
[ -1, -1, -1, ..., -1, -1, -1]], dtype=int16)
That works correctly, the only processing then done is:
pulseheights *= .57
hist, bins = numpy.histogram(pulseheights, bins=numpy.linspace(0, 2000, 201))
I tried this manually on data from the EDS, but then correctly got 0 counts in those first bins for detector 3/4.
Since the multiplication with .57 still returns values smaller than 0 and the most left bin edge is 0, I do not see how these value's got to be counted in that first bin.
Other value's smaller than 0 do seem to be ignore.
We have one station with 2 detectors, but those are detectors 3 and 4.
It records -999 as ADC values for detector 1 and 2.
It does not show a black/red line in the first bin.
http://data.hisparc.nl/show/stations/10/2013/5/13/
http://data.hisparc.nl/show/stations/10/2013/5/14/
It would be useful to be able to see the health (based on to be determined parameters) of each station on the stations page.
The list of student scores does not show the best score by each student.
What it does show is unclear to me, some weighted mean?
With the new vagrant deployment we get the latest version of PyTables (v3) this causes some warnings for the current code:
DeprecationWarnings:
openFile -> open_file
getNode -> get_node
createTable -> create_table
readCoordinates -> read_coordinates
etc..
We can try using the pt2to3 tool to update the source code.
The pulseheight histogram on the station overview page is currently shown as number-of-events vs pulseheight-in-millivolt.
If we check the pulseheight most-probable-value via the station status page (nagios), the MPV is stated in units of ADC counts (without mentioning the unit).
This discrepancy in usage of units is confusing, even if the units are stated. Converting between units is a menial task. Therefore it is suggested to use only one unit everywhere for the pulseheight.
The coincidences events use a lot of space (probably due to their traces)
$ du -h /var/lib/mysql/publicdb/*.MYD
779M coincidences_event.MYD
659M histograms_dailydataset.MYD
302M histograms_dailyhistogram.MYD
<25M [rest]
We should clean up events after they have been analysed or when a session has ended, since they will not be used again.
Except perhaps for the 'Get Example' option in jSparc, so there should always be some coincidences/events (make a couple of never ending 'ghost' sessions?)..
The hisparc user has a cronjob set to run hisparc-update.py and log to /var/log/hisparc-update.log. This log is not yet created in the provisioning and hisparc has no rights to write to /var/log/.
So add an empty hisparc-update.log file and give ownership to hisparc.
Currently the server has to generate each plot (unless already in cache) when someone requests to see it.
The problems with this are:
If we use a Javascript library (like flot or jqplot):
At the moment I see one problem with this:
html/css currently messes up the layout a bit for Status views. (Help link over nagios elements)
wrap entire sidebar in a div to float right?
Make 'default' analysis session sets for jSparc.
Looking at a coincidence causes a very long load of a list of all coincidences, this lookup causes the server to use 100%, hanging it for some time.
The title is case-senstive because the title is compared to see if it equal to the title that was returned from the AnalysisSession.objects during the request. However, during the request the title is not case sensitive, so a wrong-cased title can be used for the request, returning a 'correctly'-cased title, causing it to fail during the sending of the result.
See b16cfa7, in views.py line 115.
The border is 2 pixels thick but should be only one pixel thick, like the left axis.
Give them (the header and/or value) the same color as their corresponding line in the graphs to easily see which belongs to which.
We should create a Vagrant box to make setting up a development area easy for new people.
This box should use the same OS and setup as out server, so run the same version of mysql/django/python packages etc..
Also add GPS height graph.
We want to add pages with accompanying forms that allow us to keep a log of changes/repairs/errors/problems with HiSPARC stations.
This will help us keep track of all problems, and for example know if somebody else has experienced the same problem before and why someone changed some settings, etc.
The forms should ask for the following info:
And should also store the date of when this entry is submitted.
The Page which hows these logs should be able to show the log for one station or multiple/all stations.
And perhaps also include information from the station, when it submitted new configs or did a diagnostic check.
Add filter to ignore 0, 0, 0 GPS coordinates.
Use last known (good) coordinates.
Apparently when a weather station had bad (temperature) data it simply returns -999 (°C).
This data is currently simply plotted by the publicdb, this makes it harder to see the useful data around ~10 °C
http://data.hisparc.nl/django/show/stations/501/2012/3/1/
(See #1)
It should be possible to ask http://data.hisparc.nl/ for a list of coincidences of some selected stations within a period of time. Think of a nice csv data format.
Sending a coincidence analysis result back to jSparc (/publicdb/jsparc/result/) results into the following error message:
ERROR:django.request:Internal Server Error: /jsparc/result/
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "../django_publicdb/jsparc/views.py", line 115, in result
assert coincidence.session.hash == session_hash
NameError: global name 'session_hash' is not defined
This works, and there is data in 2011 for this station: http://data.hisparc.nl/django/show/stations/7002/2011/10/1/
However, this page does not work; http://data.hisparc.nl/django/show/stations/7002/2011/3/25/
Yet, other years link to this page. So we need more robust checking if it is ok to link to another page.
Move those 404 queries to separate functions?
When we implement a new status monitor for the station-software we will want to be able to view the results on data.hipsarc.nl
As in #2 we want to have status-indicators on the stations page next to each station, to show how well it is running at that moment.
When this status indicator is clicked we want to have a new station_status page which will show some of the status history.
We need to determine what data we want to show, and for what time ranges (perhaps interactive with flot).
The num events in the API for day/month/year uses the num_events in Summaries.
These use the number of rows in the datastore files.
So duplicate events are not yet filtered from this number.
Number of events per hour are based on esd data, and are therefore correct.
possible solutions:
The 'HiSPARC Analysissession created' email only contains a link to the results page, not to the page where the sessions can be analysed: http://data.hisparc.nl/media/jsparc/shower.htm
With the work by Richard Bartels we should be able to make a more meaningful 'Events Histogram'.
By cutting the events that we count by using the MPV peak we reduce the influence of the temperature of the PMT, High Voltage shifts and some other effects that can change the number of events detected, (while we have the same number of actual showers).
(When this change has been implemented and all histograms will be updated this should be combined with the histogram update mentioned in issue #1)
jSparc interfaces with the publicdb through the jSparc Django app. In views.py, get_coincidence, information from a station is inserted into the data, including the GPS position, at that moment in time. Sometimes, however, the GPS position is not available since there are no configuration messages sent before that date. In that case, better to return the future first-known position, instead of (lat, lon, alt) = (0., 0., 0.).
On 7-1-2011 the KASCADE station (701) was changed from Cluster Karlsruhe to Cluster Amsterdam (subcluster Karlsruhe).
This can cause some problems when, for instance, downloading data.
When working on dates prior to or on 7-1-2011 the script will look for station 701 in the cluster_amsterdam group while it should (also) be looking in the cluster_karlsruhe group.
To fix this, we have renumbered station 701 to 70001 and moved it back to Karlsruhe.
Now station_701 nodes should be renamed to station_70001, and some need to be moved from the cluster_amsterdam group to the cluster_karlsruhe group.
For a month or a year, it crashes::
$ curl http://data.hisparc.nl/api/stations/data/2013/5/
[Django debug output]
Perhaps we should use what is discussed here:
openlayers/openlayers#483
Things to watch out for when we upgrade to Django 1.6:
inforecords/models.py:359
Apperantly this does not affect us.I don't think I saw any other Backwards incompatible changes that affect us, but that will need to be tested of course.
It would be nice to have sparklines (jquery.sparkline) on the Stations page as extra indicator of how well a station is performing.
The Postalcodes in England have a slightly different format.
For example:
BS8 3JD
We should allow for more international postal codes.
The Pulse integral histograms needs its x-axis to be fixed.
At the moment the x-values are in (mVsample) (1 sample = 2.5 ns)
They should be in (mVns).
Some Django version added csrf protection.
This is required by jSparc (requesting analysis sessions) and also for logging in on the admin area.
But it should not be enabled when requesting an url to download data. Currently the jSparc and downloading work correctly, but the admin area does not.
If you are on a station histograms page, seeing the page for 'tomorrow' or 'yesterday' is not easy. The calendar navigation is nice, but not optimal. Certainly not for quickly walking through all data.
Definitions of status:
Up - Host is Ok
Warning - Host is Ok but a service is Critical
Down - Host is Down
All stations in Warning are also in Up.
This can be confusing, since we also show only 1 color indicator next to the station names.
Kaj (from Twente) proposed the creation of a new (live-display) program for the purpose of showing in real-time the events of a HiSPARC station.
For this we will probably need to implement new views in the public database which this program can use:
Found trying to analyse a jsparc session.
New detector stations are not automatically added to Inforecords -> 'Detector HiSPARC'
Even after they have uploaded their first config with GPS position
This information is used by the new stations on map view and also jsparc
This should perhaps be automatically updated whenever a new (different) config is found
Nice! The csv-files that can be downloaded by clicking on the source buttons on the data pages returns files with unix-style line breaks: LF. Windows doesn't get that, it wants CRLF. Fix that platform independently???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.