|
39 | 39 | from typing_extensions import assert_never |
40 | 40 | from xarray.core.coordinates import DataArrayCoordinates |
41 | 41 |
|
42 | | -from karabo.data.external_data import ( |
| 42 | +from karabo.data.external_data import ( # MIGHTEESurveyDownloadObject, |
43 | 43 | GLEAMSurveyDownloadObject, |
44 | 44 | HISourcesSmallCatalogDownloadObject, |
45 | | - MIGHTEESurveyDownloadObject, |
46 | 45 | ) |
47 | 46 | from karabo.error import KaraboSkyModelError |
48 | 47 | from karabo.simulation.line_emission_helpers import ( |
@@ -1468,27 +1467,32 @@ def get_MIGHTEE_Sky() -> SkyModel: |
1468 | 1467 | from the "IM_MAJ", "IM_MIN", "IM_PA", and "NAME" columns of the catalog, |
1469 | 1468 | respectively. |
1470 | 1469 | """ |
1471 | | - survey = MIGHTEESurveyDownloadObject() |
1472 | | - path = survey.get() |
1473 | | - prefix_mapping = SkyPrefixMapping( |
1474 | | - ra="RA", |
1475 | | - dec="DEC", |
1476 | | - stokes_i="NU_EFF", |
1477 | | - major="IM_MAJ", |
1478 | | - minor="IM_MIN", |
1479 | | - pa="IM_PA", |
1480 | | - id="NAME", |
1481 | | - ) |
1482 | | - |
1483 | | - return SkyModel.get_sky_model_from_fits( |
1484 | | - path=path, |
1485 | | - frequencies=[76], |
1486 | | - prefix_mapping=prefix_mapping, |
1487 | | - concat_freq_with_prefix=False, |
1488 | | - filter_data_by_stokes_i=False, |
1489 | | - frequency_to_mhz_multiplier=1e6, |
1490 | | - memmap=False, |
| 1470 | + raise NotImplementedError( |
| 1471 | + "The current version of Karabo doesn't support the mightee-sky. " |
| 1472 | + + "The progress regarding this issue can be tracked at " |
| 1473 | + + "https://github.com/i4Ds/Karabo-Pipeline/issues/547" |
1491 | 1474 | ) |
| 1475 | + # survey = MIGHTEESurveyDownloadObject() |
| 1476 | + # path = survey.get() |
| 1477 | + # prefix_mapping = SkyPrefixMapping( |
| 1478 | + # ra="RA", |
| 1479 | + # dec="DEC", |
| 1480 | + # stokes_i="NU_EFF", |
| 1481 | + # major="IM_MAJ", |
| 1482 | + # minor="IM_MIN", |
| 1483 | + # pa="IM_PA", |
| 1484 | + # id="NAME", |
| 1485 | + # ) |
| 1486 | + |
| 1487 | + # return SkyModel.get_sky_model_from_fits( |
| 1488 | + # path=path, |
| 1489 | + # frequencies=[76], |
| 1490 | + # prefix_mapping=prefix_mapping, |
| 1491 | + # concat_freq_with_prefix=False, |
| 1492 | + # filter_data_by_stokes_i=False, |
| 1493 | + # frequency_to_mhz_multiplier=1e6, |
| 1494 | + # memmap=False, |
| 1495 | + # ) |
1492 | 1496 |
|
1493 | 1497 | @staticmethod |
1494 | 1498 | def get_random_poisson_disk_sky( |
|
0 commit comments