@@ -96,7 +96,8 @@ def list_spectra(self):
96
96
self ._get_spectra_json (), self .__MISSION_STRING )
97
97
98
98
def query_object_maps (self , position , missions = __ALL_STRING ,
99
- get_query_payload = False , cache = True , row_limit = DEFAULT_ROW_LIMIT ):
99
+ get_query_payload = False , cache = True ,
100
+ row_limit = DEFAULT_ROW_LIMIT ):
100
101
"""
101
102
This method queries a chosen object or coordinate for all available maps
102
103
which have observation data on the chosen position. It returns a
@@ -201,7 +202,8 @@ def query_object_catalogs(self, position, catalogs=__ALL_STRING,
201
202
cache = cache )
202
203
203
204
def query_object_spectra (self , position , missions = __ALL_STRING ,
204
- get_query_payload = False , cache = True , row_limit = DEFAULT_ROW_LIMIT ):
205
+ get_query_payload = False , cache = True ,
206
+ row_limit = DEFAULT_ROW_LIMIT ):
205
207
"""
206
208
This method queries a chosen object or coordinate for all available missions
207
209
which have spectral data on the chosen position. It returns a
@@ -253,7 +255,8 @@ def query_object_spectra(self, position, missions=__ALL_STRING,
253
255
row_limit = row_limit )
254
256
255
257
def query_region_maps (self , position , radius , missions = __ALL_STRING ,
256
- get_query_payload = False , cache = True , row_limit = DEFAULT_ROW_LIMIT ):
258
+ get_query_payload = False , cache = True ,
259
+ row_limit = DEFAULT_ROW_LIMIT ):
257
260
"""
258
261
This method queries a chosen region for all available maps and returns a
259
262
TableList with all the found maps metadata for the chosen missions and
@@ -387,7 +390,8 @@ def query_region_catalogs(self, position, radius, catalogs=__ALL_STRING,
387
390
return commons .TableList (query_result )
388
391
389
392
def query_region_spectra (self , position , radius , missions = __ALL_STRING ,
390
- row_limit = DEFAULT_ROW_LIMIT , get_query_payload = False , cache = True ):
393
+ row_limit = DEFAULT_ROW_LIMIT ,
394
+ get_query_payload = False , cache = True ):
391
395
"""
392
396
This method queries a chosen region for all available spectra and returns a
393
397
TableList with all the found spectra metadata for the chosen missions and
@@ -524,8 +528,9 @@ def get_maps(self, query_table_list, missions=__ALL_STRING,
524
528
log .info ("No maps found." )
525
529
return maps
526
530
527
- def get_images (self , position , radius = __ZERO_ARCMIN_STRING , missions = __ALL_STRING ,
528
- download_dir = _MAPS_DOWNLOAD_DIR , cache = True ):
531
+ def get_images (self , position , radius = __ZERO_ARCMIN_STRING ,
532
+ missions = __ALL_STRING , download_dir = _MAPS_DOWNLOAD_DIR ,
533
+ cache = True ):
529
534
"""
530
535
This method gets the fits files available for the selected position and
531
536
mission and downloads all maps to the the selected folder.
@@ -569,7 +574,6 @@ def get_images(self, position, radius=__ZERO_ARCMIN_STRING, missions=__ALL_STRIN
569
574
Examples
570
575
--------
571
576
get_images("m101", "14'", "all")
572
-
573
577
"""
574
578
sanitized_position = self ._sanitize_input_position (position )
575
579
sanitized_radius = self ._sanitize_input_radius (radius )
@@ -601,8 +605,9 @@ def get_images(self, position, radius=__ZERO_ARCMIN_STRING, missions=__ALL_STRIN
601
605
log .info ("No maps found." )
602
606
return maps
603
607
604
- def get_spectra (self , position , radius = __ZERO_ARCMIN_STRING , missions = __ALL_STRING ,
605
- download_dir = _SPECTRA_DOWNLOAD_DIR , cache = True ):
608
+ def get_spectra (self , position , radius = __ZERO_ARCMIN_STRING ,
609
+ missions = __ALL_STRING , download_dir = _SPECTRA_DOWNLOAD_DIR ,
610
+ cache = True ):
606
611
"""
607
612
This method gets the fits files available for the selected position and
608
613
mission and downloads all spectra to the the selected folder.
@@ -677,7 +682,7 @@ def get_spectra(self, position, radius=__ZERO_ARCMIN_STRING, missions=__ALL_STRI
677
682
return spectra
678
683
679
684
def get_spectra_from_table (self , query_table_list , missions = __ALL_STRING ,
680
- download_dir = _SPECTRA_DOWNLOAD_DIR , cache = True ):
685
+ download_dir = _SPECTRA_DOWNLOAD_DIR , cache = True ):
681
686
"""
682
687
This method takes the dictionary of missions and metadata as returned by
683
688
query_region_spectra and downloads all spectra to the selected folder.
@@ -723,7 +728,6 @@ def get_spectra_from_table(self, query_table_list, missions=__ALL_STRING,
723
728
--------
724
729
table = query_region_spectra("m101", "14'", ["HST-IR", "XMM-NEWTON", "HERSCHEL"])
725
730
get_spectra_from_table(table)
726
-
727
731
"""
728
732
sanitized_query_table_list = self ._sanitize_input_table_list (query_table_list )
729
733
sanitized_missions = [m .lower () for m in self ._sanitize_input_spectra (missions )]
0 commit comments