diff --git a/public/Herschel_Color.wtml b/public/Herschel_Color.wtml new file mode 100644 index 0000000..30a044e --- /dev/null +++ b/public/Herschel_Color.wtml @@ -0,0 +1,47 @@ + + + + + + ESA/HSA + http://www.cosmos.esa.int/web/herschel/publishing-rules-guidelines + HiPS List ID: ESAVO/P/HERSCHEL/PACS-color + http://skies.esac.esa.int/Herschel/PACS-color/preview.jpg + + + + diff --git a/public/allwise.wtml b/public/allwise.wtml new file mode 100644 index 0000000..28ca645 --- /dev/null +++ b/public/allwise.wtml @@ -0,0 +1,47 @@ + + + + + + IPAC/NASA + http://wise2.ipac.caltech.edu/docs/release/allsky/ + HiPS List ID: CDS/P/allWISE/color + http://alasky.u-strasbg.fr/AllWISE/RGB-W4-W2-W1/preview.jpg + + + + diff --git a/public/get_wtml_for_wwt_catalog_entry.py b/public/get_wtml_for_wwt_catalog_entry.py index 63a647e..a0ad308 100644 --- a/public/get_wtml_for_wwt_catalog_entry.py +++ b/public/get_wtml_for_wwt_catalog_entry.py @@ -21,7 +21,7 @@ def imageset_from_place(imageset, initial_coords=None): place.thumbnail = imageset.thumbnail_url return place -def get_wtml_for_wwt_catalog_name(name, initial_coords=None): +def get_wtml_for_wwt_catalog_name(name: str, initial_coords=None): """ Search the WTML files for imagesets with the given name, and construct a WTML file for the entry """ @@ -37,11 +37,44 @@ def get_wtml_for_wwt_catalog_name(name, initial_coords=None): out_folder.name = name out_folder.children = [place] return out_folder - print(f"Could not find imageset with name {name}") + print(f"Could not find imageset in default imagesets (ImageSets6) with name {name}. Trying Hips") + url_hips = "https://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=hips" + folder_hips = Folder.from_url(url_hips) + for folder in folder_hips.children: + if folder.name == "Images": + print(folder.name) + for subfolder in folder.children: + for imageset in subfolder.children: + # if name in imageset.name.lower(): # use this if trying to search + # print(f"Found imageset with name {imageset.name} in Hips catalog subfolder {subfolder.name}") + if name == imageset.name: + print(f"Found imageset with name {imageset.name} in Hips catalog subfolder {subfolder.name}") + place = imageset_from_place(imageset, initial_coords) + out_folder = Folder() + out_folder.name = name + out_folder.children = [place] + return out_folder +# Get glimpse 360 WTML and write to file folder = get_wtml_for_wwt_catalog_name("GLIMPSE 360") +if folder is not None: + with open("GLIMPSE_360.wtml", "w") as f: + folder.write_xml(f) +# these three are good examples of HIPS files +folder = get_wtml_for_wwt_catalog_name("Herschel PACS (color composition)") if folder is not None: - with open("GLIMPSE_360.wtml", "w") as f: + with open("Herschel_Color.wtml", "w") as f: + folder.write_xml(f) + + +folder = get_wtml_for_wwt_catalog_name("unWISE color, from W2 and W1 bands") +if folder is not None: + with open("unwise.wtml", "w") as f: + folder.write_xml(f) + +folder = get_wtml_for_wwt_catalog_name("AllWISE color Red (W4) , Green (W2) , Blue (W1) from raw Atlas Images") +if folder is not None: + with open("allwise.wtml", "w") as f: folder.write_xml(f) \ No newline at end of file diff --git a/public/unwise.wtml b/public/unwise.wtml new file mode 100644 index 0000000..4d82c7d --- /dev/null +++ b/public/unwise.wtml @@ -0,0 +1,46 @@ + + + + + + IPAC/NASA - D. Lang for the reprocessing + HiPS List ID: CDS/P/unWISE/color-W2-W1W2-W1 + http://alasky.u-strasbg.fr/unWISE/color-W2-W1W2-W1/preview.jpg + + + + diff --git a/src/ALMAGAL.vue b/src/ALMAGAL.vue index 31f110c..c522781 100644 --- a/src/ALMAGAL.vue +++ b/src/ALMAGAL.vue @@ -38,7 +38,7 @@ v-model="selectedAlmagalSource" class="almagal-v-select" :items="almagalSourceList" - item-title="iid" + item-title="aid" item-value="iid" return-object hide-details @@ -57,7 +57,8 @@ instant /> -
+