AstroToolkit 1.3.1__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. {AstroToolkit-1.3.1/src/AstroToolkit.egg-info → AstroToolkit-1.3.2}/PKG-INFO +345 -139
  2. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/README.md +345 -139
  3. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/pyproject.toml +1 -1
  4. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/data.py +2 -2
  5. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/imaging.py +16 -20
  6. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/lightcurve_sigma_clip.py +1 -1
  7. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/lightcurves.py +157 -28
  8. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/overlays.py +19 -10
  9. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/reddening.py +3 -0
  10. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/spectra.py +11 -9
  11. AstroToolkit-1.3.2/src/AstroToolkit/Datapages/grid.py +84 -0
  12. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Examples/datapage_creation.py +18 -11
  13. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/file_handling.py +19 -19
  14. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/file_naming.py +9 -7
  15. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/input_validation.py +2 -2
  16. AstroToolkit-1.3.2/src/AstroToolkit/Misc/read_fits.py +82 -0
  17. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/HRD.py +2 -0
  18. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/imaging.py +11 -11
  19. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/lightcurves.py +4 -3
  20. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/powspec.py +9 -8
  21. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/spectra.py +14 -1
  22. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Tools.py +307 -117
  23. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2/src/AstroToolkit.egg-info}/PKG-INFO +345 -139
  24. AstroToolkit-1.3.1/src/AstroToolkit/Datapages/grid.py +0 -31
  25. AstroToolkit-1.3.1/src/AstroToolkit/Misc/read_fits.py +0 -41
  26. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/LICENSE +0 -0
  27. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/MANIFEST.in +0 -0
  28. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/setup.cfg +0 -0
  29. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/photometry.py +0 -0
  30. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/sed.py +0 -0
  31. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Datapages/buttons.py +0 -0
  32. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Datapages/metadata.py +0 -0
  33. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/ProperMotionCorrection.py +0 -0
  34. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/coord_conversion.py +0 -0
  35. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/backdrop_hrd_allmags.fits +0 -0
  36. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/sed.py +0 -0
  37. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Settings/__init__.py +0 -0
  38. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/README - Windows.txt +0 -0
  39. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/README.txt +0 -0
  40. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/__init__.py +0 -0
  41. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aov.cp38-win_amd64.pyd +0 -0
  42. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aov.f90 +0 -0
  43. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aovconst.f90 +0 -0
  44. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aovsub.f90 +0 -0
  45. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/build.sh +0 -0
  46. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/buildwin.bat +0 -0
  47. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/pyaov.pdf +0 -0
  48. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/pyaov.py +0 -0
  49. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/ztfanalysis.py +0 -0
  50. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/SOURCES.txt +0 -0
  51. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/dependency_links.txt +0 -0
  52. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/requires.txt +0 -0
  53. {AstroToolkit-1.3.1 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: AstroToolkit
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: A package for the gathering and plotting of astronomical data.
5
5
  Author-email: Ethan Moorfield <ethan.moorfield@hotmail.co.uk>
6
6
  Project-URL: Homepage, https://github.com/WD-planets/AstroToolkit
@@ -54,7 +54,7 @@ AstroToolkit (ATK) is a set of useful tools for fetching, plotting, and analysin
54
54
  - 4.2 [plotlightcurve](#42-plotlightcurve)
55
55
  - 5 [SED Tools](#5-sed-tools)
56
56
  - 5.1 [sedquery](#51-sedquery)
57
- - 5.2 [sedquery](#52-plotsed)
57
+ - 5.2 [plotsed](#52-plotsed)
58
58
  - 6 [Spectrum Tools](#6-spectrum-tools)
59
59
  - 6.1 [spectrumquery](#61-spectrumquery)
60
60
  - 6.2 [plotspectrum](#62-plotspectrum)
@@ -76,10 +76,13 @@ AstroToolkit (ATK) is a set of useful tools for fetching, plotting, and analysin
76
76
  - 10.4 [getdistance](#104-getdistance)
77
77
  - 10.5 [convfromdeg](#105-convfromdeg)
78
78
  - 10.6 [convtodeg](#106-convtodeg)
79
+ - 10.7 [getcolumn](#107-getcolumn)
80
+ - 10.8 [getsources](#108-getsources)
81
+ - 10.9 [getpositions](#109-getpositions)
79
82
 
80
83
  <br>
81
84
 
82
- ## Installation
85
+ ## Installation<a id="installation"></a>
83
86
 
84
87
  The package can be installed as with any other package, e.g. using pip:
85
88
  ```
@@ -89,21 +92,21 @@ pip install AstroToolkit
89
92
  Once the package has been installed, you should navigate to the package install location. This should be located in: **.../Lib/site-packages/AstroToolkit**, where **...** is your python install location. If you wish to find this, you can use the following command from the terminal:
90
93
 
91
94
  ```
92
- python -c "from AstroToolkit import getpath; getpath()"
95
+ python -c "from AstroToolkit.Tools import getpath; getpath()"
93
96
  ```
94
97
 
95
- In this directory, run either buildwin.bat (Windows) or build.sh (Linux).
98
+ In this directory, run either buildwin.bat (Windows) or build.sh (Linux) depending on your operating system.
96
99
 
97
100
  **NOTE:** See _README.txt_ (Linux) or _README - Windows.txt_ (Windows) in the above directory for any additional dependencies.
98
101
 
99
102
  <br>
100
103
 
101
- ## Introduction
104
+ ## Introduction<a id="introduction"></a>
102
105
 
103
106
  ATK uses Bokeh as its primary plotting library. The official documentation can be found at [https://bokeh.org/](https://bokeh.org/). A key property of Bokeh plots is that they can be saved as static .html files, which can then be shared/accessed while retaining all interactivity.
104
107
 
105
108
  Fundamentally, there are two types of tools in ATK:
106
- 1. Fetching, used to obtain data from a given surveyF
109
+ 1. Fetching, used to obtain data from a given survey
107
110
  2. Plotting, used to plot the data acquired from the above
108
111
 
109
112
  In all fetching tools, there are two possible ways to target your system of interest:
@@ -125,7 +128,7 @@ from AstroToolkit.Tools import [tool name]
125
128
 
126
129
  <br>
127
130
 
128
- ## Configuration
131
+ ## Configuration<a id="configuration"></a>
129
132
  Most default arguments within ATK can be modified through the use of a config file. This can be edited through use of the **editconfig** tool.
130
133
 
131
134
  **Usage:**
@@ -165,21 +168,55 @@ where options is a dictionary containing key : value pairs to set in the config.
165
168
  - This sets the default radius to use for the Vizier button in the [getbuttons](#72-getbuttons) tool.
166
169
  - plot_size = 400
167
170
  - This sets the default plot size for all plotting tools.
171
+ - readfits_sourcename = source_id
172
+ - This sets the default column name to use in the [getsources](#108-getsources)
173
+
174
+ **Example:**
175
+
176
+ To set the default username and password to use for ATLAS queries:
177
+
178
+ ```
179
+ from AstroToolkit.Tools import editconfig
180
+
181
+ editconfig({'atlas_username':'USERNAME','atlas_password':'PASSWORD'})
182
+ ```
168
183
 
169
184
  <br>
170
185
 
186
+ To see the current value of a config parameter, you can use the **getconfigvalue** tool. This will return the parameter's value, and print it to the terminal.
187
+
188
+ **Usage:**
189
+
190
+ ```
191
+ getconfigvalue(parameter)
192
+ ```
193
+
194
+ where:
195
+
196
+ ```
197
+ parameter = string, name of config parameter from above list
198
+ ```
199
+
200
+ **Returns**: value of this parameter in the config.
201
+
202
+ <br><br>
203
+
171
204
  ## Tools
172
205
 
173
206
  In this section, the available tools will be outlined. Note that if a parameter is listed as having a default parameter CONFIG, this means that this parameter is taken from the config as listed above. These parameters can still be passed to the tool, in which case the config value will be ignored.
174
207
 
175
- **Note:** most data returned from fetching tools takes the form of a dictionary. This dictionary contains the returned data, as well as basic information such as the pos/source used to acquire the data. This format is then used by other ATK functions (such as plotting tools, and file saving/reading).
208
+ **Note:** most data returned from fetching/plotting tools takes the form of a dictionary. This dictionary contains the returned data, as well as basic information such as the pos/source used to acquire the data. This format is then used by other ATK functions (such as file showing/saving/reading).
209
+
210
+ **Note:** All plots created by ATK can have their legends toggled by double clicking the plot, and individual data can be hidden by clicking them in the legend.
211
+
212
+ <br>
176
213
 
177
- **Note:** Most plots created by ATK can have their legends toggled by double clicking the plot, and individual data can be hidden by clicking them in the legend.
214
+ **In all data returned by querying tools, the value of the 'data' key will be set to None if no data was returned. Likewise, in all plotting tools, the value of the 'plot' key will be set to None.**
178
215
 
179
216
  <br>
180
217
 
181
- ### 1. Raw Data Tools
182
- ### 1.1. dataquery
218
+ ### 1. Raw Data Tools<a id="1-raw-data-tools"></a>
219
+ ### 1.1. dataquery<a id="11-dataquery"></a>
183
220
 
184
221
  Returns all available data for a given survey (e.g. magnitudes, positions, etc.).
185
222
 
@@ -204,19 +241,19 @@ survey = str, name of a supported survey
204
241
  pos = list, [ra,dec]
205
242
  ```
206
243
  ```
207
- source = int/float/str, Gaia source_id
244
+ source = int/str, Gaia source_id
208
245
  ```
209
246
  ```
210
247
  radius = int/float, radius of query
211
248
  ```
212
249
 
213
- **Returns:** dict or None
250
+ **Returns:** dict
214
251
 
215
252
  ```
216
253
  {
217
254
  'survey' : str, survey of data
218
255
  'type' : 'data'
219
- 'source' : int/float/str, source used to get data (None if a pos was used)
256
+ 'source' : int/str, source used to get data (None if a pos was used)
220
257
  'pos' : [ra,dec], pos used to get data (None if a source was used)
221
258
  'data' : dict, the returned data
222
259
  }
@@ -239,7 +276,7 @@ wise_data = dataquery(survey='wise',source=source)['data']
239
276
 
240
277
  <br><br>
241
278
 
242
- ### 1.2. photquery
279
+ ### 1.2. photquery<a id="12-photquery"></a>
243
280
 
244
281
  Returns data from a given survey, with columns filtered to only include photometry and other basic information.
245
282
 
@@ -264,19 +301,19 @@ survey = str, name of a supported survey
264
301
  pos = list, [ra,dec]
265
302
  ```
266
303
  ```
267
- source = int/float/str, Gaia source_id
304
+ source = int/str, Gaia source_id
268
305
  ```
269
306
  ```
270
307
  radius = int/float, radius of query
271
308
  ```
272
309
 
273
- **Returns:** dict or None
310
+ **Returns:** dict
274
311
 
275
312
  ```
276
313
  {
277
314
  'survey' : str, survey of data
278
315
  'type' : 'data'
279
- 'source' : int/float/str, source used to get data (None if a pos was used)
316
+ 'source' : int/str, source used to get data (None if a pos was used)
280
317
  'pos' : [ra,dec], pos used to get data (None if a source was used)
281
318
  'data' : dict, the returned data
282
319
  }
@@ -295,7 +332,7 @@ data=photquery(survey='twomass',source=6050296829033196032)['data']
295
332
 
296
333
  <br>
297
334
 
298
- ### 1.3. bulkphotquery
335
+ ### 1.3. bulkphotquery<a id="13-bulkphotquery"></a>
299
336
 
300
337
  Returns available photometry from all surveys supported by [photquery](#12-photquery).
301
338
 
@@ -313,18 +350,18 @@ where:
313
350
  pos = list, [ra,dec]
314
351
  ```
315
352
  ```
316
- source = int/float/str, Gaia source_id
353
+ source = int/str, Gaia source_id
317
354
  ```
318
355
  ```
319
356
  radius = int/float, radius of query
320
357
  ```
321
358
 
322
- **Returns:** dict or None
359
+ **Returns:** dict
323
360
 
324
361
  ```
325
362
  {
326
363
  'type' : 'bulkphot'
327
- 'source' : int/float/str, source used to get data (None if a pos was used)
364
+ 'source' : int/str, source used to get data (None if a pos was used)
328
365
  'pos': [ra,dec], pos used to get data (None if a source was used)
329
366
  'data' : {
330
367
  'gaia' : dict, returned data (or None if no data returned)
@@ -335,6 +372,8 @@ radius = int/float, radius of query
335
372
  }
336
373
  ```
337
374
 
375
+ **Note:** The value of each survey will be set to None if no data was returned. E.g. if no galex data was returned, the value of the ['galex'] key would be None.
376
+
338
377
  <br>
339
378
 
340
379
  **Example:**
@@ -352,7 +391,7 @@ galex_data=bulk_phot['galex']
352
391
 
353
392
  <br>
354
393
 
355
- ### 1.4. getreddening
394
+ ### 1.4. getreddening<a id="14-getreddening"></a>
356
395
 
357
396
  Returns the reddening of a Gaia source.
358
397
 
@@ -369,31 +408,31 @@ getreddening(source)
369
408
 
370
409
  where:
371
410
  ```
372
- source = int/float/str, Gaia source_id
411
+ source = int/str, Gaia source_id
373
412
  ```
374
413
 
375
414
  <br>
376
415
 
377
- **Returns:** dict or None
416
+ **Returns:** dict
378
417
 
379
418
  ```
380
419
  {
381
420
  'type' : 'reddening'
382
- 'source' : int/float/str, source used to get data (None if a pos was used)
421
+ 'source' : int/str, source used to get data (None if a pos was used)
383
422
  'data' : {
384
423
  'dist' : distance to source (1/parallax)
385
424
  'red_dist' : actual distance to which survey's reddening estimate refers
386
- 'red_dist_err' : error on red_dist
387
- 'red' : survey's reddening estimate
388
- 'red_upper' : reddening upper limit
389
- 'red_lower' : reddening lower limit
425
+ 'red_dist_err' : error on red_dist
426
+ 'red' : survey's reddening estimate
427
+ 'red_upper' : reddening upper limit
428
+ 'red_lower' : reddening lower limit
390
429
  }
391
430
  }
392
431
  ```
393
432
 
394
433
  <br><br>
395
434
 
396
- ### 2. Imaging Tools
435
+ ### 2. Imaging Tools<a id="2-imaging-tools"></a>
397
436
 
398
437
  These functions retrieve and plotimages from supported surveys.
399
438
 
@@ -401,9 +440,19 @@ These functions retrieve and plotimages from supported surveys.
401
440
 
402
441
  <br>
403
442
 
404
- ### 2.1. imagequery
443
+ ### 2.1. imagequery<a id="21-imagequery"></a>
444
+
445
+ Retrieves an image from a given survey. Overlays can be used to overlay detections from different surveys. There are two types of overlay: detections and tracers. Detections are proper motion-corrected circles that scale with the magnitude of the detection, and show that there is data available for a given object in a given survey.
446
+
447
+ Tracers (which are detections created from lightcurve surveys) can be used both to show that lightcurve data is available, but also to trace an object through time.
405
448
 
406
- Retrieves an image from a given survey
449
+ **Note:** tracing an object through time works best with ZTF and CRTS overlays, as these give data with the necessary coordinate precision. Other tracer overlays are unlikely to work for this, and will hence only be useful to see where lightcurve data is available.
450
+
451
+ **Note:** In the case of ATLAS overlays, the radius used is very small due to the time taken to perform ATLAS queries. Only data close to the focus of the image (i.e. at the location of the target object) will be shown.
452
+
453
+ **Example:**
454
+
455
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/tracer_example.png?raw=true)
407
456
 
408
457
  <br>
409
458
 
@@ -416,7 +465,7 @@ Supported surveys:
416
465
 
417
466
  <br>
418
467
 
419
- Supported overlays: gaia, galex_nuv, galex_fuv, rosat,sdss, twomass, wise, ztf, erosita ,atlas, gaia_lc, asassn
468
+ Supported overlays: gaia, galex_nuv, galex_fuv, rosat,sdss, twomass, wise, ztf, erosita ,atlas, gaia_lc, asassn, crts
420
469
 
421
470
  **Note:** Can also use 'all', which will enable overlays for all supported surveys.
422
471
 
@@ -436,7 +485,7 @@ survey = str, name of a supported survey
436
485
  pos = list, [ra,dec]
437
486
  ```
438
487
  ```
439
- source = int/float/str, Gaia source_id
488
+ source = int/str, Gaia source_id
440
489
  ```
441
490
  ```
442
491
  size = int/float, size of image in arcsec
@@ -448,25 +497,23 @@ band = str, string containing the required bands (e.g. for all panstarrs bands,
448
497
  overlays = str, required detection overlays (e.g. for gaia and wise detections, use overlays='gaia,wise')
449
498
  ```
450
499
 
451
- **Returns:** dict or None
452
-
453
- **Returns:**
500
+ **Returns:** dict
454
501
 
455
502
  ```
456
503
  {
457
504
  'type' : 'image'
458
- 'data' : array, image data
459
- 'header' : astropy header, image header
460
- 'metadata' : {
461
- 'survey' : str, image survey
462
- 'source' : int/float/str, source used to get image (None if a pos was used)
463
- 'pos' : [ra,dec], pos used to get image (None if a source was used)
464
- 'location' : [ra,dec], actual location of the image
465
- 'size' : int/float, image size in arcsec
466
- 'image_time' : [year,month], image time
467
- 'wcs' : astropy wcs object of image
468
- 'overlay' : list of overlay entries
469
- }
505
+ 'survey' : str, image survey
506
+ 'source' : int/str, source used to get image (None if a pos was used)
507
+ 'pos' : [ra,dec], pos used to get image (None if a source was used)
508
+ 'data' : {
509
+ 'image_data' : array, image data
510
+ 'image_header' : astropy header, image header
511
+ 'location' : [ra,dec], actual location of the image
512
+ 'size' : int/float, image size in arcsec
513
+ 'image_time' : [year,month], image time
514
+ 'wcs' : astropy wcs object of image
515
+ 'overlay' : list of overlay entries
516
+ }
470
517
  }
471
518
  ```
472
519
 
@@ -474,7 +521,7 @@ overlays = str, required detection overlays (e.g. for gaia and wise detections,
474
521
 
475
522
  ```
476
523
  {
477
- 'survey' : int/float/str, survey of detection
524
+ 'survey' : str, survey of detection
478
525
  'position: [ra,dec], coordinates of detection
479
526
  'radius' : float, radius of detection
480
527
  'corrected' : bool, whether or not the detection has been corrected for proper motion
@@ -485,7 +532,7 @@ overlays = str, required detection overlays (e.g. for gaia and wise detections,
485
532
 
486
533
  <br>
487
534
 
488
- ### 2.2. plotimage
535
+ ### 2.2. plotimage<a id="22-plotimage"></a>
489
536
 
490
537
  Plots images in format returned by [imagequery](#21-imagequery).
491
538
 
@@ -502,7 +549,20 @@ where:
502
549
  data = dict in format returned by imagequery
503
550
  ```
504
551
 
505
- **Returns:** bokeh figure object
552
+ **Returns:** dict
553
+
554
+ ```
555
+ {
556
+ 'type' : 'image'
557
+ 'survey' : str, survey of image
558
+ 'source' : int/str, source used to get image (None if a pos was used)
559
+ 'pos' : [ra,dec], pos used to get image (None if a source was used)
560
+ 'plot' : bokeh figure object, the actual plot
561
+ 'ATKfilename' : the default filename given by ATK
562
+ }
563
+ ```
564
+
565
+ **Note:** if a plot is not returned (e.g. if no data was supplied to the plotting tool), the 'plot' key will be set to None.
506
566
 
507
567
  <br>
508
568
 
@@ -521,8 +581,8 @@ showplot(plot)
521
581
 
522
582
  <br><br>
523
583
 
524
- ### 3. HRD Tools
525
- ### 3.1. plothrd
584
+ ### 3. HRD Tools<a id="3-hrd-tools"></a>
585
+ ### 3.1. plothrd<a id="31-plothrd"></a>
526
586
 
527
587
  Returns a HRD with a source or list of sources overlayed over a Gaia 100pc background sample.
528
588
 
@@ -537,13 +597,23 @@ plothrd(source=None,sources=None)
537
597
  where:
538
598
 
539
599
  ```
540
- source = int/float/str, Gaia source_id
600
+ source = int/str, Gaia source_id
541
601
  ```
542
602
  ```
543
603
  sources = list of sources
544
604
  ```
545
605
 
546
- **Returns:** bokeh figure object
606
+ **Returns:** dict
607
+
608
+ ```
609
+ {
610
+ 'type' : 'hrd'
611
+ 'source' : int/str, source overlayed in HRD
612
+ 'sources' : list, sources overlayed in HRD if multiple were given
613
+ 'plot' : bokeh figure object, the actual plot
614
+ 'ATKfilename' : the default filename given by ATK
615
+ }
616
+ ```
547
617
 
548
618
  <br>
549
619
 
@@ -560,8 +630,8 @@ showplot(plot)
560
630
 
561
631
  <br><br>
562
632
 
563
- ### 4. Lightcurve Tools
564
- ### 4.1. lightcurvequery
633
+ ### 4. Lightcurve Tools<a id="4-lightcurve-tools"></a>
634
+ ### 4.1. lightcurvequery<a id="41-lightcurvequery"></a>
565
635
 
566
636
  Returns lightcurve data for a given survey.
567
637
 
@@ -572,8 +642,9 @@ Supported surveys:
572
642
  - ATLAS (atlas) - o, c, i
573
643
  - ASAS-SN (asassn) - g, v
574
644
  - Gaia (gaia) - g, bp, rp
645
+ - CRTS (crts) - v
575
646
 
576
- **Note:**
647
+ **Note:** CRTS' data server is not designed for scripted queries. As a result, queries are limited in the toolkit to one query per 15 seconds. This cooldown is managed using the CRTS_TIMER.txt file in the Settings directory of the package files, and hence this should not be edited.
577
648
 
578
649
  <br>
579
650
 
@@ -589,7 +660,7 @@ survey = str, name of a supported survey
589
660
  pos = list, [ra,dec]
590
661
  ```
591
662
  ```
592
- source = int/float/str, Gaia source_id
663
+ source = int/str, Gaia source_id
593
664
  ```
594
665
  ```
595
666
  radius = int/float, radius of lightcurve query
@@ -604,30 +675,24 @@ password = str, ATLAS password, hence only used in ATLAS queries
604
675
  sigmaclip = int, performs sigma clipping on the data to this number of standard deviations
605
676
  ```
606
677
 
607
- **Returns:** list
608
-
609
- list of lightcurve data dictionaries with an entry for each band in that survey (see below). If no data is found for a given band, that entry will be set to None. The order of these entries matches the band listing for a given survey in 'supported surveys' above.
678
+ **Returns:** list of dicts
610
679
 
611
- e.g. for ztf, if g and r data were found, but no i data was found, the result would be a list:
612
-
613
- ```
614
- [g_entry,r_entry,None]
615
- ```
616
-
617
- where each non-None entry has the format:
680
+ list of lightcurve data dictionaries with an entry for each band in that survey (see below). Each entry has the format:
618
681
 
619
682
  ```
620
683
  {
621
684
  'type' : 'lightcurve'
622
- 'source' : int/float/str, source used to get data (None if a pos was used)
685
+ 'source' : int/str, source used to get data (None if a pos was used)
623
686
  'pos': [ra,dec], pos used to get data (None if a source was used)
624
687
  'survey' : str, survey of data
625
688
  'band' : str, band of lightcurve data
626
689
  'data' : {
627
690
  'ra' : list of returned ra values
628
691
  'dec' : list of returned dec values
629
- 'hjd'/'mjd' : list of returned hjd/mjd values, with the minimum returned value subtracted from all values (i.e. is just a measure of days from the first observation)
630
- 'hjd_ori'/'mjd_ori' : list of returned hjd/mjd values, unedited
692
+ 'hjd'/'mjd' : list of returned hjd/mjd values, with the minimum returned
693
+ value subtracted from all values (i.e. is just a measure of days from the
694
+ first observation)
695
+ 'hjd_ori'/'mjd_ori' : list of returned hjd/mjd values, unedited
631
696
  'mag' : list of returned magnitude values
632
697
  'mag_err' : list of returned magnitude error values
633
698
  }
@@ -636,7 +701,7 @@ where each non-None entry has the format:
636
701
 
637
702
  <br>
638
703
 
639
- ### 4.2. plotlightcurve
704
+ ### 4.2. plotlightcurve<a id="42-plotlightcurve"></a>
640
705
 
641
706
  Plots lightcurves in the format returned by [lightcurvequery](#41-lightcurvequery).
642
707
 
@@ -659,7 +724,18 @@ colour = str, name of a supported colour. Only used when passing a single lightc
659
724
  colours = list of strings denoting supported colours, e.g. ['green','red','blue']. Only used when passing multiple lightcurves
660
725
  ```
661
726
 
662
- **Returns:** bokeh figure object
727
+ **Returns:** dict
728
+
729
+ ```
730
+ {
731
+ 'type' : 'lightcurve'
732
+ 'survey' : str, survey of lightcurve
733
+ 'source' : int/str, source used to get data (None if a pos was used)
734
+ 'pos': [ra,dec], pos used to get data (None if a source was used)
735
+ 'plot' : bokeh figure object, the actual plot
736
+ 'ATKfilename' : the default filename given by ATK
737
+ }
738
+ ```
663
739
 
664
740
  <br>
665
741
 
@@ -678,8 +754,8 @@ showplot(plotlightcurve(lightcurves,colours=['green','red','blue']))
678
754
 
679
755
  <br><br>
680
756
 
681
- ### 5. SED Tools
682
- ### 5.1. sedquery
757
+ ### 5. SED Tools<a id="5-sed-tools"></a>
758
+ ### 5.1. sedquery<a id="51-sedquery"></a>
683
759
 
684
760
  Queries all supported photometry surveys and returns SED data.
685
761
 
@@ -696,32 +772,32 @@ where:
696
772
  pos = list, [ra,dec]
697
773
  ```
698
774
  ```
699
- source = int/float/str, Gaia source_id
775
+ source = int/str, Gaia source_id
700
776
  ```
701
777
  ```
702
778
  radius = int/float, radius of data query
703
779
  ```
704
780
 
705
- **Returns:** dict or None
781
+ **Returns:** dict
706
782
 
707
783
  ```
708
784
  {
709
785
  'type' : 'sed'
710
- 'source' : int/float/str, source used to get data (None if a pos was used)
786
+ 'source' : int/str, source used to get data (None if a pos was used)
711
787
  'pos': [ra,dec], pos used to get data (None if a source was used)
712
788
  'data': list of entries with each entry taking the form of a dict:
713
- {
714
- 'survey' : str, survey of data point
715
- 'wavelength' : filter wavelength of data point
716
- 'flux' : flux through filter
717
- 'rel_err' : relative error on flux
718
- }
789
+ {
790
+ 'survey' : str, survey of data point
791
+ 'wavelength' : filter wavelength of data point
792
+ 'flux' : flux through filter
793
+ 'rel_err' : relative error on flux
794
+ }
719
795
  }
720
796
  ```
721
797
 
722
798
  <br>
723
799
 
724
- ### 5.2. plotsed
800
+ ### 5.2. plotsed<a id="52-plotsed"></a>
725
801
 
726
802
  Plots SEDs in the format returned by [sedquery](#51-sedquery).
727
803
 
@@ -739,7 +815,17 @@ where:
739
815
  data = dict in format returned by sedquery
740
816
  ```
741
817
 
742
- **Returns:** bokeh figure object
818
+ **Returns:** dict
819
+
820
+ ```
821
+ {
822
+ 'type' : 'sed'
823
+ 'source' : int/str, source used to get data (None if a pos was used)
824
+ 'pos': [ra,dec], pos used to get data (None if a source was used)
825
+ 'plot' : bokeh figure object, the actual plot
826
+ 'ATKfilename' : the default filename given by ATK
827
+ }
828
+ ```
743
829
 
744
830
  <br>
745
831
 
@@ -755,8 +841,8 @@ showplot(plotsed(data))
755
841
 
756
842
  <br><br>
757
843
 
758
- ### 6. Spectrum Tools
759
- ### 6.1. spectrumquery
844
+ ### 6. Spectrum Tools<a id="6-spectrum-tools"></a>
845
+ ### 6.1. spectrumquery<a id="61-spectrumquery"></a>
760
846
 
761
847
  Returns spectrum data from a given survey.
762
848
 
@@ -776,19 +862,19 @@ survey = str, name of a supported survey
776
862
  pos = list, [ra,dec]
777
863
  ```
778
864
  ```
779
- source = int/float/str, Gaia source_id
865
+ source = int/str, Gaia source_id
780
866
  ```
781
867
  ```
782
868
  radius = int/float, radius of data query
783
869
  ```
784
870
 
785
- **Returns:** dict or None
871
+ **Returns:** dict
786
872
 
787
873
  ```
788
874
  {
789
875
  'type' : 'spectra'
790
- 'survey' : int/float/str, survey of detection
791
- 'source' : int/float/str, source used to get data (None if a pos was used)
876
+ 'survey' : str, survey of detection
877
+ 'source' : int/str, source used to get data (None if a pos was used)
792
878
  'pos': [ra,dec], pos used to get data (None if a source was used)
793
879
  'data': {
794
880
  'wavelength' : list of wavelength values
@@ -799,7 +885,7 @@ radius = int/float, radius of data query
799
885
 
800
886
  <br>
801
887
 
802
- ### 6.2. plotspectrum
888
+ ### 6.2. plotspectrum<a id="62-plotspectrum"></a>
803
889
 
804
890
  Plots spectra in the format returned by [spectrumquery](#61-spectrumquery).
805
891
 
@@ -817,7 +903,18 @@ where:
817
903
  data = dict in format returned by spectrumquery
818
904
  ```
819
905
 
820
- **Returns:** bokeh figure object
906
+ **Returns:** dict
907
+
908
+ ```
909
+ {
910
+ 'type' : 'spectrum'
911
+ 'survey' : str, survey of spectrum
912
+ 'source' : int/str, source used to get data (None if a pos was used)
913
+ 'pos': [ra,dec], pos used to get data (None if a source was used)
914
+ 'plot' : bokeh figure object, the actual plot
915
+ 'ATKfilename' : the default filename given by ATK
916
+ }
917
+ ```
821
918
 
822
919
  <br>
823
920
 
@@ -835,8 +932,8 @@ showplot(plot)
835
932
 
836
933
  <br><br>
837
934
 
838
- ### 7. Timeseries Tools
839
- ### 7.1 plotpowspec
935
+ ### 7. Timeseries Tools<a id="7-timeseries-tools"></a>
936
+ ### 7.1 plotpowspec<a id="71-plotpowspec"></a>
840
937
 
841
938
  Plots a power spectrum from lightcurve data in the format returned by [lightcurvequery](#41-lightcurvequery)
842
939
 
@@ -853,7 +950,18 @@ where:
853
950
  data = dict or list in format returned by lightcurvequery
854
951
  ```
855
952
 
856
- **Returns:** bokeh figure object
953
+ **Returns:** dict
954
+
955
+ ```
956
+ {
957
+ 'type' : 'powspec'
958
+ 'survey' : str, survey of lightcurve data given to the powspec tool
959
+ 'source' : int/str, source used to get data (None if a pos was used)
960
+ 'pos': [ra,dec], pos used to get data (None if a source was used)
961
+ 'plot' : bokeh figure object, the actual plot
962
+ 'ATKfilename' : the default filename given by ATK
963
+ }
964
+ ```
857
965
 
858
966
  <br>
859
967
 
@@ -871,7 +979,7 @@ showplot(plot)
871
979
 
872
980
  <br><br>
873
981
 
874
- ### 7.2 tsanalysis
982
+ ### 7.2 tsanalysis<a id="72-tsanalysis"></a>
875
983
 
876
984
  Runs period analysis on lightcurve data in format returned by [lightcurvequery](#lightcurvequery)
877
985
 
@@ -904,7 +1012,7 @@ plot=tsanalysis(data)
904
1012
 
905
1013
  <br><br>
906
1014
 
907
- ## 8. Datapage Tools
1015
+ ## 8. Datapage Tools<a id="8-datapage-tools"></a>
908
1016
 
909
1017
  These functions are used to create custom datapages from any plots/data supported by AstroToolkit.
910
1018
 
@@ -916,9 +1024,9 @@ Below is the datapage produced by this example. Once the script to create these
916
1024
 
917
1025
  <br>
918
1026
 
919
- ### 8.1. gridsetup
1027
+ ### 8.1. gridsetup<a id="81-gridsetup"></a>
920
1028
 
921
- Helps with datapage creation.
1029
+ Formats plots for datapage creation by sizing them to a grid of given dimensions.
922
1030
 
923
1031
  <br>
924
1032
 
@@ -930,30 +1038,39 @@ getgrid(dimensions,plots,grid_size=CONFIG)
930
1038
 
931
1039
  where:
932
1040
  ```
933
- dimensions = list, grid dimensions in format [width,height]. E.g. for a grid that is 6 units wide and 3 units tall, use dimensions = [6,3]
1041
+ dimensions = dict, dict with keys 'width' and 'height' that define the dimensions of the datapage in grid units (e.g. for a datapage that is 6 units wide and 3 units tall, dimensions={'width':6,'height':3})
934
1042
  ```
935
1043
  ```
936
- plots = list of lists, plots with their desired dimensions included. E.g. for a 2x2 plot and two 2x1 plots, use plots = [[plot1,2,2],[plot2,2,1],[plot3,2,1]].
1044
+ plots = list of plots, with each entry having the format:
1045
+ {
1046
+ 'name' : the label to give to the plot
1047
+ 'figure' : the plot dictionary as returned by plotting tools
1048
+ 'width' : the width in grid units of this element
1049
+ 'height' : the height in grid units of this element
1050
+ }
937
1051
  ```
938
1052
  ```
939
1053
  grid_size = int, size of each square of the grid to which all plots are scaled.
940
1054
  ```
941
1055
 
942
- **Returns:** list
943
-
944
- list of plots stripped of their dimensions. E.g. for the plots = ... input above, the following will be returned:
1056
+ **Returns:** dict
945
1057
 
946
1058
  ```
947
- [plot1,plot2,plot3]
1059
+ {
1060
+ 'name 1' : plot 1
1061
+ 'name 2' : plot 2
1062
+
1063
+ etc. for each plot given to the tool
1064
+ }
948
1065
  ```
949
1066
 
950
- where all plots have been scaled to the desired grid size.
1067
+ where the keys "name ..." are the names given to the plots above, and the values 'plot ...' are the plots to which these names refer.
951
1068
 
952
1069
  **NOTE:** Again, see the datapage_creation example as noted [above](#8-datapage-tools) for an example.
953
1070
 
954
1071
  <br>
955
1072
 
956
- ### 8.2. getbuttons
1073
+ ### 8.2. getbuttons<a id="82-getbuttons"></a>
957
1074
 
958
1075
  Returns a Bokeh figure containing SIMBAD and Vizier buttons for use in datapages.
959
1076
 
@@ -973,7 +1090,7 @@ grid_size = int, size of the grid to which the buttons are scaled.
973
1090
  pos = list, [ra,dec] in degrees
974
1091
  ```
975
1092
  ```
976
- source = int/float/str, Gaia source_id
1093
+ source = int/str, Gaia source_id
977
1094
  ```
978
1095
  ```
979
1096
  simbad_radius = int, radius to use in SIMBAD queries
@@ -982,15 +1099,22 @@ simbad_radius = int, radius to use in SIMBAD queries
982
1099
  vizier_radius = int, radius to use in Vizier queries
983
1100
  ```
984
1101
 
985
- **Returns:**
1102
+ **Returns:** dict
986
1103
 
987
- bokeh figure object
1104
+ ```
1105
+ {
1106
+ 'type' : 'buttons'
1107
+ 'source' : int/str, source used to get data (None if a pos was used)
1108
+ 'pos': [ra,dec], pos used to get data (None if a source was used)
1109
+ 'plot' : bokeh figure object, the actual plot element
1110
+ }
1111
+ ```
988
1112
 
989
1113
  **NOTE:** Again, see the datapage_creation example as noted [above](#8-datapage-tools) for an example.
990
1114
 
991
1115
  <br>
992
1116
 
993
- ### 8.3. getmdtable
1117
+ ### 8.3. getmdtable<a id="83-getmdtable"></a>
994
1118
 
995
1119
  Creates a table of metadata table using data from supported surveys and/or custom data.
996
1120
 
@@ -1011,7 +1135,7 @@ metadata = dict, dictionary of metadata in accepted format (see below)
1011
1135
  pos = list, [ra,dec] in degrees
1012
1136
  ```
1013
1137
  ```
1014
- source = int/float/str, Gaia source_id
1138
+ source = int/str, Gaia source_id
1015
1139
  ```
1016
1140
 
1017
1141
  <br>
@@ -1021,8 +1145,10 @@ The expected metadata format is:
1021
1145
  ```
1022
1146
  {
1023
1147
  'gaia' : {
1024
- 'parameters' : names of parameters (i.e. column headers) that exist in that survey
1025
- 'errors' : names of errors (i.e. column headers) for these parameters that exist in that survey
1148
+ 'parameters' : names of parameters (i.e. column headers) that exist in that
1149
+ survey
1150
+ 'errors' : names of errors (i.e. column headers) for these parameters that
1151
+ exist in that survey
1026
1152
  'notes' : str, any notes to include on this parameter/error/etc.
1027
1153
  }
1028
1154
  }
@@ -1047,19 +1173,27 @@ In this case, an additional 'values' key must be included, and the values/errors
1047
1173
  }
1048
1174
  ```
1049
1175
 
1050
- **Returns**:
1051
- bokeh figure object
1176
+ **Returns**: dict
1177
+
1178
+ ```
1179
+ {
1180
+ 'type' : 'metadata'
1181
+ 'source' : int/str, source used to get data (None if a pos was used)
1182
+ 'pos': [ra,dec], pos used to get data (None if a source was used)
1183
+ 'plot' : bokeh figure object, the actual plot element
1184
+ }
1185
+ ```
1052
1186
 
1053
1187
  **NOTE:** Again, see the datapage_creation example as noted [above](#8-datapage-tools) for an example.
1054
1188
 
1055
1189
  <br><br>
1056
1190
 
1057
- ## 9. File Handling Tools
1191
+ ## 9. File Handling Tools<a id="9-file-handling-tools"></a>
1058
1192
  These tools can be used to transform many returned ATK data structures into local files, and vice versa. This process is designed to be completely lossless, allowing for the exact data structure that was used to create a file to be recreated at a later date.
1059
1193
 
1060
1194
  <br>
1061
1195
 
1062
- ### 9.1. savedata
1196
+ ### 9.1. savedata<a id="91-savedata"></a>
1063
1197
 
1064
1198
  This tool allows for the saving of many ATK data structures into local files.
1065
1199
 
@@ -1089,7 +1223,7 @@ Name of file that the data was saved to
1089
1223
 
1090
1224
  <br>
1091
1225
 
1092
- ### 9.2. readdata
1226
+ ### 9.2. readdata<a id="92-readdata"></a>
1093
1227
 
1094
1228
  This tool allows for the lossless recreation of ATK data stuctures from files created using [savedata](#91-savedata).
1095
1229
 
@@ -1132,9 +1266,9 @@ showplot(plotlightcurve(recreated_lightcurve_data,colours=['red','orange','yello
1132
1266
 
1133
1267
  <br>
1134
1268
 
1135
- ### 9.3. export
1269
+ ### 9.3. export<a id="93-export"></a>
1136
1270
 
1137
- This allows for bokeh figures to be saved as a .png file.
1271
+ This allows for ATK figures to be saved as a .png file.
1138
1272
 
1139
1273
  <br>
1140
1274
 
@@ -1154,15 +1288,15 @@ keephtml = bool. To get the filename for the png, the plot must first be saved a
1154
1288
 
1155
1289
  <br><br>
1156
1290
 
1157
- ### 10. Miscellaneous Tools
1291
+ ### 10. Miscellaneous Tools<a id="10-miscellaneous-tools"></a>
1158
1292
 
1159
1293
  These are tools that do not fit into the above categories, but can still be useful for quickly performing some basic functions.
1160
1294
 
1161
1295
  <br>
1162
1296
 
1163
- ### 10.1. showplot
1297
+ ### 10.1. showplot<a id="101-showplot"></a>
1164
1298
 
1165
- This is just bokeh's show() functionality, but allows for it to be imported from ATK for ease of use since this is the backbone of the package.
1299
+ This allows for the plot dictionaries returned by ATK to be opened in the browser. Doing so will also save the plot locally as a .html file. Can also be used with the same functionality as show() from bokeh for non-ATK bokeh figures.
1166
1300
 
1167
1301
  <br>
1168
1302
 
@@ -1173,14 +1307,14 @@ showplot(plot)
1173
1307
 
1174
1308
  where:
1175
1309
  ```
1176
- plot = bokeh figure object
1310
+ plot = ATK plot dictionary
1177
1311
  ```
1178
1312
 
1179
1313
  <br>
1180
1314
 
1181
- ### 10.2. saveplot
1315
+ ### 10.2. saveplot<a id="102-saveplot"></a>
1182
1316
 
1183
- This is just bokeh's save() functionality, but allows for it to be imported from ATK for ease of use since this is the backbone of the package.
1317
+ This allows for the plot dictionaries returned by ATK to be saved to local .html files without opening them in the browser. Can also be used with the same functionality as save() from bokeh for non-ATK bokeh figures.
1184
1318
 
1185
1319
  <br>
1186
1320
 
@@ -1191,12 +1325,12 @@ saveplot(plot)
1191
1325
 
1192
1326
  where:
1193
1327
  ```
1194
- plot = bokeh figure object
1328
+ plot = ATK plot dictionary
1195
1329
  ```
1196
1330
 
1197
1331
  <br>
1198
1332
 
1199
- ### 10.3. correctpm
1333
+ ### 10.3. correctpm<a id="103-correctpm"></a>
1200
1334
 
1201
1335
  Corrects for proper motion of an object between an input time and a target time.
1202
1336
 
@@ -1250,7 +1384,7 @@ ra_corrected,dec_corrected=correctpm([2016,0],[2000,0],ra,dec,pmra,pmdec)
1250
1384
 
1251
1385
  <br>
1252
1386
 
1253
- ### 10.4. getdistance
1387
+ ### 10.4. getdistance<a id="104-getdistance"></a>
1254
1388
 
1255
1389
  Simply calculates the distance (1/parallax) of an object given its parallax in mas (the unit of parallax in Gaia).
1256
1390
 
@@ -1275,7 +1409,7 @@ distance of object in pc
1275
1409
 
1276
1410
  <br>
1277
1411
 
1278
- ### 10.5. convfromdeg
1412
+ ### 10.5. convfromdeg<a id="105-convfromdeg"></a>
1279
1413
 
1280
1414
  Converts deg coordinates to HMS/DMS format
1281
1415
 
@@ -1300,7 +1434,7 @@ pos = list, [ra,dec] of object in degrees
1300
1434
 
1301
1435
  <br>
1302
1436
 
1303
- ### 10.6. convtodeg
1437
+ ### 10.6. convtodeg<a id="106-convtodeg"></a>
1304
1438
 
1305
1439
  Converts HMS/DMS coordinates to deg.
1306
1440
 
@@ -1314,7 +1448,7 @@ convfromdeg(pos)
1314
1448
 
1315
1449
  where:
1316
1450
  ```
1317
- pos = list, [ra,dec] of object in [HMS/DMS] format
1451
+ pos = list, [ra,dec] of object in [HMS/DMS] format, i.e. [[H,M,S],[D,M,S]]
1318
1452
  ```
1319
1453
 
1320
1454
  <br>
@@ -1322,3 +1456,75 @@ pos = list, [ra,dec] of object in [HMS/DMS] format
1322
1456
  **Returns:** list
1323
1457
 
1324
1458
  [ra,dec] of object in deg
1459
+
1460
+ <br>
1461
+
1462
+ ### 10.7. getcolumn<a id="107-getcolumn"></a>
1463
+
1464
+ Returns a list of values from a .fits file given a column name.
1465
+
1466
+ **Usage:**
1467
+
1468
+ ```
1469
+ getcolumn(file_name,col_name)
1470
+ ```
1471
+
1472
+ where:
1473
+ ```
1474
+ file_name = str, name of file with or without the .fits extension.
1475
+ ```
1476
+ ```
1477
+ col_name = str, name of column in file
1478
+ ```
1479
+
1480
+ **Returns:** list
1481
+
1482
+ list of values for that column
1483
+
1484
+ <br>
1485
+
1486
+ ### 10.8. getsources<a id="108-getsources"></a>
1487
+
1488
+ Returns a list of source values from a .fits file given a column name, which can either be set in the tool or in the config.
1489
+
1490
+ **Usage:**
1491
+
1492
+ ```
1493
+ getsources(file_name,col_name=CONFIG)
1494
+ ```
1495
+
1496
+ where:
1497
+ ```
1498
+ file_name = str, name of file with or without the .fits extension.
1499
+ ```
1500
+ ```
1501
+ col_name = str, name of column containing Gaia sources
1502
+ ```
1503
+
1504
+ **Returns:** list
1505
+
1506
+ list of Gaia sources
1507
+
1508
+ <br>
1509
+
1510
+ ### 10.9. getpositions<a id="109-getpositions"></a>
1511
+
1512
+ Returns a list of ra,dec values from a .fits file given ra and dec column names, which can either be set in the tool or in the config.
1513
+
1514
+ **Usage:**
1515
+
1516
+ ```
1517
+ getsources(file_name,col_name=CONFIG)
1518
+ ```
1519
+
1520
+ where:
1521
+ ```
1522
+ file_name = str, name of file with or without the .fits extension.
1523
+ ```
1524
+ ```
1525
+ col_name = str, comma separated string containing names of ra and dec columns. e.g. col_name = 'RA_ICRS,'DE_ICRS'. Must be in this order.
1526
+ ```
1527
+
1528
+ **Returns:** list
1529
+
1530
+ list of positions [[ra1,dec1],[ra2,dec2]], etc.