diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-27 22:28:10 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-27 22:28:10 +0300 |
commit | 84e0b4fe3f7ee3a35b7e8bb4cc4f446bc4b895a7 (patch) | |
tree | 366c9debc4ff5d2cbc114ab6efd8b6984423c26e | |
parent | f706bd814e9c5daecbed52e5be806b9fb2addae3 (diff) | |
download | troggle-84e0b4fe3f7ee3a35b7e8bb4cc4f446bc4b895a7.tar.gz troggle-84e0b4fe3f7ee3a35b7e8bb4cc4f446bc4b895a7.tar.bz2 troggle-84e0b4fe3f7ee3a35b7e8bb4cc4f446bc4b895a7.zip |
SRTM on all stations report
-rw-r--r-- | core/views/statistics.py | 36 | ||||
-rw-r--r-- | templates/stations.html (renamed from templates/eastings.html) | 0 | ||||
-rw-r--r-- | urls.py | 2 |
3 files changed, 4 insertions, 34 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py index 6ae1521..49e8674 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -275,7 +275,7 @@ def dataissues(request): return render(request, "dataissues.html", {"didict": dilist}) -def eastings(request): +def stations(request): """report each Northing/Easting pair wherever recorded""" ents = set() gpsents = set() @@ -304,37 +304,7 @@ def eastings(request): if e.other_station: ents.add(e) add_stations(e) - # if e.easting or e.northing: - # ents.add(e) - # add_stations(e) - # e.northing = float(e.northing) - # e.easting = float(e.easting) - - # if e.northing < 5200000: - # e.bmn = True - # e.bmn_n = e.northing - # # e.northing = e.northing + 5200000 - # e.northing = e.northing + 5198919.918 - - # e.bmn_e = e.easting - # #e.easting = e.easting - 36000 + 486000 - # e.easting = e.easting + 374854.63 # linear hack - - # if e.alt: - # e.alt = e.alt.replace("m","") - - # #print(f"{e.slug} '{e.alt}'") - # e.bmn_alt = e.alt - # else: - # e.bmn_alt = 1000 - # e.pslug = e.slug.replace("1623-","x") - # try: - # e.diffx = e.easting - e.best_station_object().x - # e.diffy = e.northing - e.best_station_object().y - # e.error = sqrt(e.diffx**2 + e.diffy**2) - # except: - # pass - + for e in entrances: if e.lat_wgs84 or e.long_wgs84: gpsents.add(e) @@ -343,7 +313,7 @@ def eastings(request): stations = SurvexStation.objects.all() # NB these are NOT all the stations in troggle_import_root.pos - return render(request, "eastings.html", {"ents": ents, "gpsents": gpsents, "stations": stations}) + return render(request, "stations.html", {"ents": ents, "gpsents": gpsents, "stations": stations}) def aliases(request, year): diff --git a/templates/eastings.html b/templates/stations.html index 0bc23f0..0bc23f0 100644 --- a/templates/eastings.html +++ b/templates/stations.html @@ -178,7 +178,7 @@ trogglepatterns = [ path('therionissues', statistics.therionissues, name="therionissues"), path('surveximport', statistics.surveximport, name="surveximport"), path('survexdebug', statistics.survexdebug, name="survexdebug"), - path('eastings', statistics.eastings, name="eastings"), + path('stations', statistics.stations, name="stations"), path('aliases/<int:year>',statistics.aliases, name="aliases"), path('troggle', frontpage, name="frontpage"), # control panel. Shows recent actions. |