Skip to content

Commit

Permalink
906 improve query maps (#908)
Browse files Browse the repository at this point in the history
* Fixed #906 - Maps now are filtered by mag limit 16 and solar time between 18:00 and 06:00

* Minor fix
  • Loading branch information
glaubervila authored Mar 6, 2024
1 parent 56ca4bd commit 30a888a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/tno/prediction_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import humanize
from django.conf import settings
from tno.models import Occultation
from sora.prediction.occmap import plot_occ_map
import os
from itertools import groupby
from operator import itemgetter
import numpy as np
from tno.models import Occultation


def get_size_of_map_folder():
Expand Down Expand Up @@ -198,7 +204,7 @@ def sora_occultation_map(
# Time format is isoformat in UTC withou +00:00
# ex: 2023-09-26T00:54:13.683590Z
time = date_time.isoformat().replace("+00:00", "Z")
occmap(
plot_occ_map(
name=name,
radius=radius,
coord=coord,
Expand Down

0 comments on commit 30a888a

Please sign in to comment.