diff --git a/buckets/upload.py b/buckets/upload.py index c97d432f..303e33ea 100644 --- a/buckets/upload.py +++ b/buckets/upload.py @@ -36,10 +36,10 @@ def insert_into_anomalies(supabase: Client, anomaly_id, content, anomaly_set: st "id": anomaly_id, "content": content, # "anomalytype": 'planet', - "anomalytype": "telescopeMinor", + "anomalytype": "gaseousMapping", # "anomalySet": anomaly_set, - "anomalySet": "telescope-minorPlanet", - # "parentAnomaly": 40, #69 + "anomalySet": "lidar-jovianVortexHunter", + "parentAnomaly": 50, #69 } response = supabase.table('anomalies').insert(data).execute() print(f"Inserted anomaly with id {anomaly_id} into 'anomalies' table.") @@ -73,8 +73,8 @@ def upload_directory_to_supabase(supabase: Client, bucket_name: str, local_direc def main(): supabase = init_supabase_client() - bucket_name = "telescope/telescope-dailyMinorPlanet" - local_directory = "telescope/telescope-dailyMinorPlanet" + bucket_name = "telescope/lidar-jovianVortexHunter" + local_directory = "satellite/lidar-jovianVortexHunters" upload_directory_to_supabase(supabase, bucket_name, local_directory) diff --git a/content/anomalies_grouped.txt b/content/anomalies_grouped.txt index 2ce09c09..0cf9dff4 100644 --- a/content/anomalies_grouped.txt +++ b/content/anomalies_grouped.txt @@ -1,46 +1,73 @@ Anomaly Type: planet - - ID: 50365310, Content: TIC 50365310 + - ID: 69, Content: Earth Classifications: - * ID: 12, Content: this is NOT a test - * ID: 1, Content: Test - * ID: 20, Content: Test + * ID: 31, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'} + * ID: 32, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'} + * ID: 33, Content: rhenartyg, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'rhenartyg', 'location': 'er4hbdtnr', 'cloudName': 'yhe'} + * ID: 25, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'} + * ID: 26, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'} + * ID: 27, Content: hetj, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'hetj', 'location': 'rehte', 'cloudName': 'het'} + * ID: 28, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 29, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 30, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': {'uploadUrl': 'http://127.0.0.1:54321/storage/v1/object/public/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg'}, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 41, Content: Test, Type: planet, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'test'}, 'classificationOptions': {'': {'1': True}}} + * ID: 42, Content: Help, Type: planet, ClassificationConfig: {'votes': 6, 'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'htr'}, 'classificationOptions': {'': {'1': True}}} - ID: 6, Content: TOI-700d Classifications: - * ID: 12, Content: this is NOT a test - * ID: 1, Content: Test - * ID: 20, Content: Test - - ID: 1, Content: Kepler-69c + * ID: 31, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'} + * ID: 32, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'} + * ID: 33, Content: rhenartyg, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'rhenartyg', 'location': 'er4hbdtnr', 'cloudName': 'yhe'} + * ID: 25, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'} + * ID: 26, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'} + * ID: 27, Content: hetj, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'hetj', 'location': 'rehte', 'cloudName': 'het'} + * ID: 28, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 29, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 30, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': {'uploadUrl': 'http://127.0.0.1:54321/storage/v1/object/public/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg'}, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 41, Content: Test, Type: planet, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'test'}, 'classificationOptions': {'': {'1': True}}} + * ID: 42, Content: Help, Type: planet, ClassificationConfig: {'votes': 6, 'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'htr'}, 'classificationOptions': {'': {'1': True}}} + +Anomaly Type: telescopeOthers + - ID: 70403661, Content: 70403661 Classifications: - * ID: 12, Content: this is NOT a test - * ID: 1, Content: Test - * ID: 20, Content: Test + * ID: 22, Content: test, Type: DiskDetective, ClassificationConfig: {'votes': 2} + * ID: 21, Content: Test, Type: DiskDetective, ClassificationConfig: {'votes': 4} + * ID: 23, Content: Test, Type: DiskDetective, ClassificationConfig: {'votes': 2, 'createdBy': None, 'structureId': 3103, 'activePlanet': 69, 'additionalFields': {'field_0': 'htrjtyr'}, 'classificationOptions': {'Objects between inner and outer circles': True, 'Object is extended beyond the outer circle': True}} + * ID: 38, Content: Blueish-white object that is about half the radius of the inner circle, Type: DiskDetective, ClassificationConfig: {'votes': 4, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'3': True}}} Anomaly Type: zoodexOthers - - ID: 47335863, Content: 47335863 + - ID: 757597575, Content: 757597575 Classifications: - * ID: 9, Content: + * ID: 40, Content: Appears to be two owls together, feet firmly planted on a surface, Type: zoodex-burrowingOwl, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {}, 'classificationOptions': {'': {'1': True, '2': True}}} -Anomaly Type: telescope-minorPlanet - - ID: 100879215, Content: 100879215 +Anomaly Type: cloud + - ID: 8423850802, Content: 8423850802 Classifications: - * ID: 19, Content: In the center of the circle + * ID: 24, Content: Test, Type: cloud, ClassificationConfig: {'votes': 4, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {'field_0': 'Test', 'field_1': 'Tes', 'field_2': 'tew'}, 'classificationOptions': {'': {'1': True}, 'White colour': {'1': True, '2': True}}} + +Anomaly Type: gaseousMapping + - ID: 77798610, Content: 77798610 + Classifications: + * ID: 39, Content: Quite blurry, but I think I can see some circular action, Type: lidar-jovianVortexHunter, ClassificationConfig: {'votes': 1, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'1': True}}} + +Anomaly Type: satellitePics + - ID: 83742405, Content: 83742405 + Classifications: + * ID: 37, Content: For the most part, it looks like the surface is relatively smooth (obviously it's a bit lumpy, but comparatively speaking it's "smooth-ish". There are some shadows that appear to me to point towards larger hill formations., Type: satellite-planetFour, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'4': True, '5': True}}} Anomaly Type: automatonSatellitePhoto - - ID: 79738567, Content: 79738567 + - ID: 69592674, Content: 69592674 Classifications: - * ID: 18, Content: ano345678tg7uybhkjqwfvertgqwyukehrjvrew7rtfgoyuhtgfvbwer8ioghtgbvaer8iotyhzjgzveb5rilhk - * ID: 17, Content: another testerhguijboknm yaghedrthjnrtgrjnstzrednhjy - * ID: 16, Content: Test - - ID: 57538410, Content: 57538410 + * ID: 34, Content: As well as what looks to be a rover tread mark in the soil :), Type: automaton-aiForMars, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True, '3': True}}} + * ID: 35, Content: Test, Type: automaton-aiForMars, ClassificationConfig: {'createdBy': 29, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}} + - ID: 57511636, Content: 57511636 Classifications: - * ID: 18, Content: ano345678tg7uybhkjqwfvertgqwyukehrjvrew7rtfgoyuhtgfvbwer8ioghtgbvaer8iotyhzjgzveb5rilhk - * ID: 17, Content: another testerhguijboknm yaghedrthjnrtgrjnstzrednhjy - * ID: 16, Content: Test - - ID: 57511112, Content: 57511112 + * ID: 34, Content: As well as what looks to be a rover tread mark in the soil :), Type: automaton-aiForMars, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True, '3': True}}} + * ID: 35, Content: Test, Type: automaton-aiForMars, ClassificationConfig: {'createdBy': 29, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}} + +Anomaly Type: telescopeMinor + - ID: 90670192, Content: 90670192 Classifications: - * ID: 18, Content: ano345678tg7uybhkjqwfvertgqwyukehrjvrew7rtfgoyuhtgfvbwer8ioghtgbvaer8iotyhzjgzveb5rilhk - * ID: 17, Content: another testerhguijboknm yaghedrthjnrtgrjnstzrednhjy - * ID: 16, Content: Test + * ID: 36, Content: Very faint, but it does follow & work!, Type: telescope-minorPlanet, ClassificationConfig: {'createdBy': 21, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}} Anomalies of Type: planet - ID: 69, Content: Earth diff --git a/content/avatars/0.11311584587670742.jpg b/content/avatars/0.11311584587670742.jpg new file mode 100644 index 00000000..638b01be Binary files /dev/null and b/content/avatars/0.11311584587670742.jpg differ diff --git a/content/classificationConfiguration.rb b/content/classificationConfiguration.rb new file mode 100644 index 00000000..0d30cc30 --- /dev/null +++ b/content/classificationConfiguration.rb @@ -0,0 +1,176 @@ +class ClassificationOption + attr_accessor :id, :text, :sub_options + + def initialize(id:, text:, sub_options: nil) + @id = id + @text = text + @sub_options = sub_options + end + end + +daily_minor_planet_options = [ + ClassificationOption.new(id: 1, text: "Object cannot be followed"), + ClassificationOption.new(id: 2, text: 'Object follows green circle consistently'), + ClassificationOption.new(id: 3, text: "Varied/unknown") +]; + + jvh_options = [ + ClassificationOption.new(id: 1, text: "Vortex"), + ClassificationOption.new(id: 2, text: "Turbulent region"), + ClassificationOption.new(id: 3, text: "Cloud bands"), + ClassificationOption.new(id: 4, text: "None of the above/content too blurry") + ] + + daily_minor_planet_options = [ + ClassificationOption.new(id: 1, text: "Object cannot be followed"), + ClassificationOption.new(id: 2, text: "Object follows green circle consistently"), + ClassificationOption.new(id: 3, text: "Varied/unknown") + ] + + planet_four_options = [ + ClassificationOption.new(id: 1, text: "Dust Deposits"), + ClassificationOption.new(id: 2, text: "Surface Cracks"), + ClassificationOption.new(id: 3, text: "Spider-like Features"), + ClassificationOption.new(id: 4, text: "Rocky Outcrops"), + ClassificationOption.new(id: 5, text: "Smooth Terrain") + ] + + automatonai_for_mars_options = [ + ClassificationOption.new(id: 1, text: "Big rocks"), + ClassificationOption.new(id: 2, text: "Sand"), + ClassificationOption.new(id: 3, text: "Soil"), + ClassificationOption.new(id: 4, text: "Bedrock"), + ClassificationOption.new(id: 5, text: "Unlabelled") + ] + + cloud_classification_options_one = [ + ClassificationOption.new(id: 1, text: "White colour"), + ClassificationOption.new(id: 2, text: "Blue colour") + ] + + cloud_classification_options_two = [ + ClassificationOption.new(id: 1, text: "Bright clouds"), + ClassificationOption.new(id: 2, text: "Faint clouds"), + ClassificationOption.new(id: 3, text: "Medium clouds") + ] + + cloud_classification_options_three = [ + ClassificationOption.new(id: 1, text: "Clouds cover most of the height"), + ClassificationOption.new(id: 2, text: "Clouds are smaller") + ] + + planet_classification_options = [ + ClassificationOption.new(id: 1, text: 'No dips at all'), + ClassificationOption.new(id: 2, text: 'Repeating dips'), + ClassificationOption.new(id: 3, text: 'Dips with similar size'), + ClassificationOption.new(id: 4, text: 'Dips aligned to one side') + ] + + rover_img_classification_options = [ + ClassificationOption.new(id: 1, text: 'Dried-up water channels'), + ClassificationOption.new(id: 2, text: 'Pebbles/medium-sized rocks'), + ClassificationOption.new(id: 3, text: 'Hills/mountain formations'), + ClassificationOption.new(id: 4, text: 'Volcano (dormant/extinct)'), + ClassificationOption.new(id: 5, text: 'Mineral deposits'), + ClassificationOption.new(id: 6, text: 'Sandy/rocky terrain') + ] + + lidar_earth_clouds_read_classification_options = [ + ClassificationOption.new(id: 1, text: "Nimbostratus"), + ClassificationOption.new(id: 2, text: 'Cumulonimbus'), + ClassificationOption.new(id: 3, text: 'Stratocumulus'), + ClassificationOption.new(id: 4, text: 'Stratus'), + ClassificationOption.new(id: 5, text: "Cumulus"), + ClassificationOption.new(id: 6, text: "Altostratus"), + ClassificationOption.new(id: 7, text: "Altocumulus"), + ClassificationOption.new(id: 8, text: "Cirrostratus"), + ClassificationOption.new(id: 9, text: "Cirrocumulus"), + ClassificationOption.new(id: 10, text: "Cirrus"), + ClassificationOption.new(id: 11, text: "No clouds") + ] + + plankton_portal_classification_options = [ + ClassificationOption.new(id: 1, text: 'Round plankton, no tentacles'), + ClassificationOption.new(id: 2, text: "Head with tail"), + ClassificationOption.new(id: 3, text: 'Jellyfish-like'), + ClassificationOption.new(id: 4, text: 'Bug-like'), + ClassificationOption.new(id: 5, text: "Ribbon/elongated"), + ClassificationOption.new(id: 6, text: "Unidentifiable/None") + ] + + disk_detector_classification_options = [ + ClassificationOption.new(id: 1, text: "Object moves away from crosshairs"), + ClassificationOption.new(id: 2, text: "Object is extended beyond the outer circle"), + ClassificationOption.new(id: 3, text: "Multiple objects inside inner circle"), + ClassificationOption.new(id: 4, text: "Objects between inner and outer circles"), + ClassificationOption.new(id: 5, text: "Object is not round"), + ClassificationOption.new(id: 6, text: "None of the above") + ] + + penguin_watch_classification_options = [ + ClassificationOption.new(id: 1, text: "Adult penguin"), + ClassificationOption.new(id: 2, text: "Penguin chicks"), + ClassificationOption.new(id: 3, text: "Penguin eggs"), + ClassificationOption.new(id: 4, text: "Nesting pair with eggs"), + ClassificationOption.new(id: 5, text: "No penguins/too blurry") + ] + + initial_cloud_classification_options = [ + ClassificationOption.new(id: 1, text: "Narrow arch"), + ClassificationOption.new(id: 2, text: "Wide arch"), + ClassificationOption.new(id: 3, text: "1 cloud"), + ClassificationOption.new(id: 4, text: "2 clouds"), + ClassificationOption.new(id: 5, text: "3 clouds"), + ClassificationOption.new(id: 6, text: "4+ clouds") + ] + + zoodex_burrowing_owl_classification_options = [ + ClassificationOption.new(id: 1, text: "Adult owl"), + ClassificationOption.new(id: 2, text: "Baby owl"), + ClassificationOption.new(id: 3, text: 'Mortality event'), + ClassificationOption.new(id: 4, text: "Infanticide"), + ClassificationOption.new(id: 5, text: "Prey delivery"), + ClassificationOption.new(id: 6, text: "Mating"), + ClassificationOption.new(id: 7, text: "Feeding"), + ClassificationOption.new(id: 8, text: "Owls have bands") + ] + + zoodex_iguanas_from_above_classification_options = [ + ClassificationOption.new(id: 1, text: "Adult Male not in a Lek"), + ClassificationOption.new(id: 2, text: "Adult male with a Lek"), + ClassificationOption.new(id: 3, text: "Juvenile/Female"), + ClassificationOption.new(id: 4, text: "Partial iguana") + ] + + zoodex_south_coast_fauna_recovery = [ + ClassificationOption.new(id: 1, text: "Australian raven"), + ClassificationOption.new(id: 2, text: "Red-winged fairy-wren"), + ClassificationOption.new(id: 3, text: "Cat"), + ClassificationOption.new(id: 4, text: "Brown falcon"), + ClassificationOption.new(id: 5, text: "Silvereye"), + ClassificationOption.new(id: 6, text: "Echidna"), + ClassificationOption.new(id: 7, text: "Brown quail"), + ClassificationOption.new(id: 8, text: "Southern emu-wren"), + ClassificationOption.new(id: 9, text: "Fox"), + ClassificationOption.new(id: 10, text: "Brush bronzewing"), + ClassificationOption.new(id: 11, text: "Splendid fairy-wren"), + ClassificationOption.new(id: 12, text: "Mouse or smaller?"), + ClassificationOption.new(id: 13, text: "Carnaby's black cockatoo"), + ClassificationOption.new(id: 14, text: "Spotted nightjar"), + ClassificationOption.new(id: 15, text: "Quenda"), + ClassificationOption.new(id: 16, text: "Common bronzewing"), + ClassificationOption.new(id: 17, text: "Tawny frogmouth"), + ClassificationOption.new(id: 18, text: "Quokka"), + ClassificationOption.new(id: 19, text: "Emu"), + ClassificationOption.new(id: 20, text: "Tawny-crowned honeyeater"), + ClassificationOption.new(id: 21, text: "Rabbit"), + ClassificationOption.new(id: 22, text: "Galah"), + ClassificationOption.new(id: 23, text: "Wedge-tailed eagle"), + ClassificationOption.new(id: 24, text: "Western brush wallaby"), + ClassificationOption.new(id: 25, text: "Grey butcherbird"), + ClassificationOption.new(id: 26, text: "Welcome swallow"), + ClassificationOption.new(id: 27, text: "Western grey kangaroo"), + ClassificationOption.new(id: 28, text: "Grey currawong"), + ClassificationOption.new(id: 29, text: "Western bristlebird"), + ClassificationOption.new(id: 30, text: "Australian magpie") + ] \ No newline at end of file diff --git a/content/classifications.py b/content/classifications.py index e3510d9b..d084d59c 100644 --- a/content/classifications.py +++ b/content/classifications.py @@ -11,7 +11,8 @@ def fetch_anomalies(supabase: Client): return response.data def fetch_classifications(supabase: Client): - response = supabase.table('classifications').select("*").execute() + # Explicitly select classificationtype and other fields + response = supabase.table('classifications').select("id, content, anomaly, classificationtype, classificationConfiguration").execute() return response.data def group_anomalies_by_type(anomalies, classifications): @@ -49,7 +50,9 @@ def export_to_txt(grouped_anomalies, planet_anomalies, filename='anomalies_group if classifications: file.write(" Classifications:\n") for classification in classifications: - file.write(f" * ID: {classification['id']}, Content: {classification['content']}\n") + file.write(f" * ID: {classification['id']}, Content: {classification['content']}, ") + file.write(f"Type: {classification['classificationtype']}, ") + file.write(f"ClassificationConfig: {classification['classificationConfiguration']}\n") file.write("\n") # Write planet anomalies diff --git a/content/clouds/84238508.png b/content/clouds/84238508.png new file mode 100644 index 00000000..83625fd8 Binary files /dev/null and b/content/clouds/84238508.png differ diff --git a/content/clouds/84238508_02.png b/content/clouds/84238508_02.png new file mode 100644 index 00000000..63506068 Binary files /dev/null and b/content/clouds/84238508_02.png differ diff --git a/content/clouds/84238508_03.png b/content/clouds/84238508_03.png new file mode 100644 index 00000000..b267f629 Binary files /dev/null and b/content/clouds/84238508_03.png differ diff --git a/content/clouds/84238508_04.png b/content/clouds/84238508_04.png new file mode 100644 index 00000000..87bbd686 Binary files /dev/null and b/content/clouds/84238508_04.png differ diff --git a/content/clouds/94904822_01.png b/content/clouds/94904822_01.png new file mode 100644 index 00000000..4218c172 Binary files /dev/null and b/content/clouds/94904822_01.png differ diff --git a/content/clouds/94904822_02.png b/content/clouds/94904822_02.png new file mode 100644 index 00000000..6b760623 Binary files /dev/null and b/content/clouds/94904822_02.png differ diff --git a/content/clouds/94904822_03.png b/content/clouds/94904822_03.png new file mode 100644 index 00000000..ff0e80bc Binary files /dev/null and b/content/clouds/94904822_03.png differ diff --git a/content/clouds/94904822_04.png b/content/clouds/94904822_04.png new file mode 100644 index 00000000..e9447a47 Binary files /dev/null and b/content/clouds/94904822_04.png differ diff --git a/content/grouped_classifications.txt b/content/grouped_classifications.txt new file mode 100644 index 00000000..b3a16254 --- /dev/null +++ b/content/grouped_classifications.txt @@ -0,0 +1,46 @@ +Author: fa07195a-f69e-4cbb-a11a-a3e993e49d14 + Anomaly ID: 69 + Classification Type: userUpload-lidar-EarthCloud + * ID: 31, Content: Test, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'} + * ID: 32, Content: Test, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'} + * ID: 33, Content: rhenartyg, ClassificationConfig: {'media': None, 'comment': 'rhenartyg', 'location': 'er4hbdtnr', 'cloudName': 'yhe'} + * ID: 25, Content: Test, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'} + * ID: 26, Content: Test, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'} + * ID: 27, Content: hetj, ClassificationConfig: {'media': None, 'comment': 'hetj', 'location': 'rehte', 'cloudName': 'het'} + * ID: 28, Content: gr4wyghrh, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 29, Content: gr4wyghrh, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + * ID: 30, Content: gr4wyghrh, ClassificationConfig: {'media': {'uploadUrl': 'http://127.0.0.1:54321/storage/v1/object/public/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg'}, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'} + Anomaly ID: 69592674 + Classification Type: automaton-aiForMars + * ID: 34, Content: As well as what looks to be a rover tread mark in the soil :), ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True, '3': True}}} + Anomaly ID: 57511636 + Classification Type: automaton-aiForMars + * ID: 35, Content: Test, ClassificationConfig: {'createdBy': 29, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}} + Anomaly ID: 90670192 + Classification Type: telescope-minorPlanet + * ID: 36, Content: Very faint, but it does follow & work!, ClassificationConfig: {'createdBy': 21, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}} + Anomaly ID: 70403661 + Classification Type: DiskDetective + * ID: 22, Content: test, ClassificationConfig: {'votes': 2} + * ID: 21, Content: Test, ClassificationConfig: {'votes': 4} + * ID: 23, Content: Test, ClassificationConfig: {'votes': 2, 'createdBy': None, 'structureId': 3103, 'activePlanet': 69, 'additionalFields': {'field_0': 'htrjtyr'}, 'classificationOptions': {'Objects between inner and outer circles': True, 'Object is extended beyond the outer circle': True}} + * ID: 38, Content: Blueish-white object that is about half the radius of the inner circle, ClassificationConfig: {'votes': 4, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'3': True}}} + Anomaly ID: 83742405 + Classification Type: satellite-planetFour + * ID: 37, Content: For the most part, it looks like the surface is relatively smooth (obviously it's a bit lumpy, but comparatively speaking it's "smooth-ish". There are some shadows that appear to me to point towards larger hill formations., ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'4': True, '5': True}}} + Anomaly ID: 8423850802 + Classification Type: cloud + * ID: 24, Content: Test, ClassificationConfig: {'votes': 4, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {'field_0': 'Test', 'field_1': 'Tes', 'field_2': 'tew'}, 'classificationOptions': {'': {'1': True}, 'White colour': {'1': True, '2': True}}} + Anomaly ID: 77798610 + Classification Type: lidar-jovianVortexHunter + * ID: 39, Content: Quite blurry, but I think I can see some circular action, ClassificationConfig: {'votes': 1, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'1': True}}} + Anomaly ID: 6 + Classification Type: planet + * ID: 41, Content: Test, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'test'}, 'classificationOptions': {'': {'1': True}}} + * ID: 42, Content: Help, ClassificationConfig: {'votes': 6, 'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'htr'}, 'classificationOptions': {'': {'1': True}}} + +Author: 91813f0e-7ec7-4a6a-8d99-28a66c1608fd + Anomaly ID: 757597575 + Classification Type: zoodex-burrowingOwl + * ID: 40, Content: Appears to be two owls together, feet firmly planted on a surface, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {}, 'classificationOptions': {'': {'1': True, '2': True}}} + diff --git a/content/media/.emptyFolderPlaceholder b/content/media/.emptyFolderPlaceholder new file mode 100644 index 00000000..e69de29b diff --git a/content/media/1728134492983-fa07195a-f69e-4cbb-a11a-a3e993e49d14-Coastline Aerial.avif b/content/media/1728134492983-fa07195a-f69e-4cbb-a11a-a3e993e49d14-Coastline Aerial.avif new file mode 100644 index 00000000..f5b60f7a Binary files /dev/null and b/content/media/1728134492983-fa07195a-f69e-4cbb-a11a-a3e993e49d14-Coastline Aerial.avif differ diff --git a/content/media/1728135332883-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728135332883-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..2415794e Binary files /dev/null and b/content/media/1728135332883-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1728136550422-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728136550422-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..44e79bbb Binary files /dev/null and b/content/media/1728136550422-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1728136636588-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728136636588-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..3ccf874e Binary files /dev/null and b/content/media/1728136636588-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1728136939831-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728136939831-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..9473a623 Binary files /dev/null and b/content/media/1728136939831-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1728137124705-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728137124705-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..c7875bfa Binary files /dev/null and b/content/media/1728137124705-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1728137392051-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728137392051-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..9ea068a4 Binary files /dev/null and b/content/media/1728137392051-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1728214612210-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1728214612210-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..e13b0e01 Binary files /dev/null and b/content/media/1728214612210-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1729343605288-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1729343605288-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..ae6fabcd Binary files /dev/null and b/content/media/1729343605288-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..ef51bd0b Binary files /dev/null and b/content/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1729344868410-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1729344868410-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..e1c53a00 Binary files /dev/null and b/content/media/1729344868410-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1729344870943-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1729344870943-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..e1c53a00 Binary files /dev/null and b/content/media/1729344870943-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1729344981717-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1729344981717-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..e1c53a00 Binary files /dev/null and b/content/media/1729344981717-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1729345007700-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1729345007700-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..e1c53a00 Binary files /dev/null and b/content/media/1729345007700-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/media/1730620648559-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg b/content/media/1730620648559-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg new file mode 100644 index 00000000..dc17f9f8 Binary files /dev/null and b/content/media/1730620648559-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg differ diff --git a/content/storageExtraction.py b/content/storageExtraction.py new file mode 100644 index 00000000..30c994e9 --- /dev/null +++ b/content/storageExtraction.py @@ -0,0 +1,52 @@ +import os +from supabase import create_client, Client + +def init_supabase_client(): + url = "http://127.0.0.1:54321" + key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" + return create_client(url, key) + +def fetch_files_from_bucket(supabase: Client, bucket_name: str): + storage = supabase.storage.from_(bucket_name) + response = storage.list() + return response # This returns a list of files directly + +def download_file_from_bucket(supabase: Client, bucket_name: str, file_name: str, download_path: str): + storage = supabase.storage.from_(bucket_name) + print(f"Attempting to download: {bucket_name}/{file_name}") + try: + file_data = storage.download(file_name) + with open(download_path, 'wb') as file: + file.write(file_data) + print(f"Downloaded {file_name} to {download_path}") + except Exception as e: + print(f"Error downloading {file_name}: {e}") + +def create_directory_for_bucket(bucket_name: str): + directory_path = os.path.join(os.getcwd(), bucket_name) + if not os.path.exists(directory_path): + os.makedirs(directory_path) + return directory_path + +def download_files_from_buckets(supabase: Client, bucket_names: list): + for bucket_name in bucket_names: + print(f"Processing bucket: {bucket_name}") + files = fetch_files_from_bucket(supabase, bucket_name) + bucket_directory = create_directory_for_bucket(bucket_name) + for file in files: + file_name = file['name'] + download_path = os.path.join(bucket_directory, file_name) + try: + print(f"Downloading file: {file_name} to {download_path}") + download_file_from_bucket(supabase, bucket_name, file_name, download_path) + except Exception as e: + print(f"Error downloading {file_name}: {e}") + print(f"Finished downloading files from bucket: {bucket_name}\n") + +def main(): + supabase = init_supabase_client() + bucket_names = ['anomalies', 'zoodex', 'media', 'avatars', 'clouds', 'telescope'] + download_files_from_buckets(supabase, bucket_names) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/content/telescope/100879215.png b/content/telescope/100879215.png new file mode 100644 index 00000000..86b44a36 Binary files /dev/null and b/content/telescope/100879215.png differ diff --git a/content/telescope/101178991.png b/content/telescope/101178991.png new file mode 100644 index 00000000..3adaba30 Binary files /dev/null and b/content/telescope/101178991.png differ diff --git a/content/telescope/36776833.jpeg b/content/telescope/36776833.jpeg new file mode 100644 index 00000000..03f72428 Binary files /dev/null and b/content/telescope/36776833.jpeg differ diff --git a/content/telescope/3774358.png b/content/telescope/3774358.png new file mode 100644 index 00000000..ff02fdef Binary files /dev/null and b/content/telescope/3774358.png differ diff --git a/content/telescope/41432028.jpeg b/content/telescope/41432028.jpeg new file mode 100644 index 00000000..c9c9d45f Binary files /dev/null and b/content/telescope/41432028.jpeg differ diff --git a/content/telescope/41434047.jpeg b/content/telescope/41434047.jpeg new file mode 100644 index 00000000..e69bed83 Binary files /dev/null and b/content/telescope/41434047.jpeg differ diff --git a/content/telescope/46366425.jpeg b/content/telescope/46366425.jpeg new file mode 100644 index 00000000..4f6abc5e Binary files /dev/null and b/content/telescope/46366425.jpeg differ diff --git a/content/telescope/46374544.jpeg b/content/telescope/46374544.jpeg new file mode 100644 index 00000000..c2f14dd2 Binary files /dev/null and b/content/telescope/46374544.jpeg differ diff --git a/content/telescope/54946413.jpeg b/content/telescope/54946413.jpeg new file mode 100644 index 00000000..38a8157c Binary files /dev/null and b/content/telescope/54946413.jpeg differ diff --git a/content/telescope/54947992.jpeg b/content/telescope/54947992.jpeg new file mode 100644 index 00000000..ba321ad9 Binary files /dev/null and b/content/telescope/54947992.jpeg differ diff --git a/content/telescope/54948407.jpeg b/content/telescope/54948407.jpeg new file mode 100644 index 00000000..5de149cb Binary files /dev/null and b/content/telescope/54948407.jpeg differ diff --git a/content/telescope/69163612.jpeg b/content/telescope/69163612.jpeg new file mode 100644 index 00000000..5e4ded98 Binary files /dev/null and b/content/telescope/69163612.jpeg differ diff --git a/content/telescope/69164744.jpeg b/content/telescope/69164744.jpeg new file mode 100644 index 00000000..2e736adb Binary files /dev/null and b/content/telescope/69164744.jpeg differ diff --git a/content/telescope/69165042.jpeg b/content/telescope/69165042.jpeg new file mode 100644 index 00000000..4c319834 Binary files /dev/null and b/content/telescope/69165042.jpeg differ diff --git a/content/telescope/69165953.jpeg b/content/telescope/69165953.jpeg new file mode 100644 index 00000000..a9c2a1e3 Binary files /dev/null and b/content/telescope/69165953.jpeg differ diff --git a/content/telescope/69166150.jpeg b/content/telescope/69166150.jpeg new file mode 100644 index 00000000..3a0ed7a3 Binary files /dev/null and b/content/telescope/69166150.jpeg differ diff --git a/content/telescope/69173163.jpeg b/content/telescope/69173163.jpeg new file mode 100644 index 00000000..63af0a65 Binary files /dev/null and b/content/telescope/69173163.jpeg differ diff --git a/content/telescope/69173819.jpeg b/content/telescope/69173819.jpeg new file mode 100644 index 00000000..1e27cc1c Binary files /dev/null and b/content/telescope/69173819.jpeg differ diff --git a/content/telescope/69174537.jpeg b/content/telescope/69174537.jpeg new file mode 100644 index 00000000..fe9b41f8 Binary files /dev/null and b/content/telescope/69174537.jpeg differ diff --git a/content/telescope/83739280.jpeg b/content/telescope/83739280.jpeg new file mode 100644 index 00000000..fcf306ff Binary files /dev/null and b/content/telescope/83739280.jpeg differ diff --git a/content/telescope/83740302.jpeg b/content/telescope/83740302.jpeg new file mode 100644 index 00000000..b2c91026 Binary files /dev/null and b/content/telescope/83740302.jpeg differ diff --git a/content/telescope/83740762.jpeg b/content/telescope/83740762.jpeg new file mode 100644 index 00000000..3f1ed6d6 Binary files /dev/null and b/content/telescope/83740762.jpeg differ diff --git a/content/telescope/83742405.jpeg b/content/telescope/83742405.jpeg new file mode 100644 index 00000000..8055ed53 Binary files /dev/null and b/content/telescope/83742405.jpeg differ diff --git a/content/telescope/87655022.jpeg b/content/telescope/87655022.jpeg new file mode 100644 index 00000000..faf34f08 Binary files /dev/null and b/content/telescope/87655022.jpeg differ diff --git a/content/telescope/87658669.jpeg b/content/telescope/87658669.jpeg new file mode 100644 index 00000000..e6212a58 Binary files /dev/null and b/content/telescope/87658669.jpeg differ diff --git a/content/telescope/87659096.jpeg b/content/telescope/87659096.jpeg new file mode 100644 index 00000000..bbbdc1f1 Binary files /dev/null and b/content/telescope/87659096.jpeg differ diff --git a/content/telescope/87659996.jpeg b/content/telescope/87659996.jpeg new file mode 100644 index 00000000..2fcc6a1a Binary files /dev/null and b/content/telescope/87659996.jpeg differ diff --git a/content/telescope/88336832.jpeg b/content/telescope/88336832.jpeg new file mode 100644 index 00000000..b41ba2db Binary files /dev/null and b/content/telescope/88336832.jpeg differ diff --git a/content/telescope/88341827.jpeg b/content/telescope/88341827.jpeg new file mode 100644 index 00000000..412cae04 Binary files /dev/null and b/content/telescope/88341827.jpeg differ diff --git a/content/telescope/90670192.png b/content/telescope/90670192.png new file mode 100644 index 00000000..0a131881 Binary files /dev/null and b/content/telescope/90670192.png differ diff --git a/content/telescope/91262833.png b/content/telescope/91262833.png new file mode 100644 index 00000000..c76f3cbe Binary files /dev/null and b/content/telescope/91262833.png differ diff --git a/content/telescope/91393611.png b/content/telescope/91393611.png new file mode 100644 index 00000000..3abeaa34 Binary files /dev/null and b/content/telescope/91393611.png differ diff --git a/content/telescope/91397859.png b/content/telescope/91397859.png new file mode 100644 index 00000000..a87ec31d Binary files /dev/null and b/content/telescope/91397859.png differ diff --git a/content/telescope/91849610.png b/content/telescope/91849610.png new file mode 100644 index 00000000..13efe10b Binary files /dev/null and b/content/telescope/91849610.png differ diff --git a/content/telescope/91994994.png b/content/telescope/91994994.png new file mode 100644 index 00000000..699e6eff Binary files /dev/null and b/content/telescope/91994994.png differ diff --git a/content/telescope/91999896.png b/content/telescope/91999896.png new file mode 100644 index 00000000..9a61d31b Binary files /dev/null and b/content/telescope/91999896.png differ