AstroToolkit 1.3.0__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.0/src/AstroToolkit.egg-info → AstroToolkit-1.3.2}/PKG-INFO +354 -152
  2. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/README.md +354 -152
  3. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/pyproject.toml +1 -1
  4. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/data.py +2 -2
  5. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/imaging.py +16 -20
  6. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/lightcurve_sigma_clip.py +1 -1
  7. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/lightcurves.py +157 -28
  8. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/overlays.py +19 -10
  9. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/reddening.py +3 -0
  10. {AstroToolkit-1.3.0 → 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.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Examples/datapage_creation.py +18 -11
  13. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/file_handling.py +19 -19
  14. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/file_naming.py +9 -7
  15. {AstroToolkit-1.3.0 → 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.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/HRD.py +2 -0
  18. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/imaging.py +11 -11
  19. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/lightcurves.py +4 -3
  20. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/powspec.py +9 -8
  21. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/spectra.py +14 -1
  22. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Tools.py +307 -117
  23. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2/src/AstroToolkit.egg-info}/PKG-INFO +354 -152
  24. AstroToolkit-1.3.0/src/AstroToolkit/Datapages/grid.py +0 -31
  25. AstroToolkit-1.3.0/src/AstroToolkit/Misc/read_fits.py +0 -41
  26. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/LICENSE +0 -0
  27. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/MANIFEST.in +0 -0
  28. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/setup.cfg +0 -0
  29. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/photometry.py +0 -0
  30. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Data/sed.py +0 -0
  31. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Datapages/buttons.py +0 -0
  32. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Datapages/metadata.py +0 -0
  33. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/ProperMotionCorrection.py +0 -0
  34. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Misc/coord_conversion.py +0 -0
  35. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/backdrop_hrd_allmags.fits +0 -0
  36. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Plotting/sed.py +0 -0
  37. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Settings/__init__.py +0 -0
  38. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/README - Windows.txt +0 -0
  39. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/README.txt +0 -0
  40. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/__init__.py +0 -0
  41. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aov.cp38-win_amd64.pyd +0 -0
  42. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aov.f90 +0 -0
  43. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aovconst.f90 +0 -0
  44. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/aovsub.f90 +0 -0
  45. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/build.sh +0 -0
  46. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/buildwin.bat +0 -0
  47. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/pyaov.pdf +0 -0
  48. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/pyaov.py +0 -0
  49. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit/Timeseries/ztfanalysis.py +0 -0
  50. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/SOURCES.txt +0 -0
  51. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/dependency_links.txt +0 -0
  52. {AstroToolkit-1.3.0 → AstroToolkit-1.3.2}/src/AstroToolkit.egg-info/requires.txt +0 -0
  53. {AstroToolkit-1.3.0 → 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.0
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
@@ -28,12 +28,8 @@ Requires-Dist: scipy
28
28
 
29
29
  # AstroToolkit
30
30
 
31
-
32
-
33
31
  AstroToolkit (ATK) is a set of useful tools for fetching, plotting, and analysing astronomical data.
34
32
 
35
-
36
-
37
33
  ## Table of Contents
38
34
 
39
35
  1. [Installation](#installation)
@@ -58,7 +54,7 @@ AstroToolkit (ATK) is a set of useful tools for fetching, plotting, and analysin
58
54
  - 4.2 [plotlightcurve](#42-plotlightcurve)
59
55
  - 5 [SED Tools](#5-sed-tools)
60
56
  - 5.1 [sedquery](#51-sedquery)
61
- - 5.2 [sedquery](#52-plotsed)
57
+ - 5.2 [plotsed](#52-plotsed)
62
58
  - 6 [Spectrum Tools](#6-spectrum-tools)
63
59
  - 6.1 [spectrumquery](#61-spectrumquery)
64
60
  - 6.2 [plotspectrum](#62-plotspectrum)
@@ -80,10 +76,13 @@ AstroToolkit (ATK) is a set of useful tools for fetching, plotting, and analysin
80
76
  - 10.4 [getdistance](#104-getdistance)
81
77
  - 10.5 [convfromdeg](#105-convfromdeg)
82
78
  - 10.6 [convtodeg](#106-convtodeg)
79
+ - 10.7 [getcolumn](#107-getcolumn)
80
+ - 10.8 [getsources](#108-getsources)
81
+ - 10.9 [getpositions](#109-getpositions)
83
82
 
84
83
  <br>
85
84
 
86
- ## Installation
85
+ ## Installation<a id="installation"></a>
87
86
 
88
87
  The package can be installed as with any other package, e.g. using pip:
89
88
  ```
@@ -93,16 +92,16 @@ pip install AstroToolkit
93
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:
94
93
 
95
94
  ```
96
- python -c "from AstroToolkit import getpath; getpath()"
95
+ python -c "from AstroToolkit.Tools import getpath; getpath()"
97
96
  ```
98
97
 
99
- 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.
100
99
 
101
100
  **NOTE:** See _README.txt_ (Linux) or _README - Windows.txt_ (Windows) in the above directory for any additional dependencies.
102
101
 
103
102
  <br>
104
103
 
105
- ## Introduction
104
+ ## Introduction<a id="introduction"></a>
106
105
 
107
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.
108
107
 
@@ -118,7 +117,7 @@ Where possible, it is usually best to use a source as input, as this enables a k
118
117
 
119
118
  A good example of this is in imaging queries. If a 'pos' is used as input, the result will simply be the image data returned by the chosen imaging survey at those exact coordinates. However, this may not be ideal in the case of an object with a large proper motion. If a source is used instead, the data returned will have accounted for this, resulting in the image being centered on the system in question. This concept is used throughout ATK when matching data from different surveys to a given system.
120
119
 
121
- <img src="./README_Images/source_vs_pos.png?raw=true" width="600">
120
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/source_vs_pos.png?raw=true)
122
121
 
123
122
  <br>
124
123
 
@@ -129,7 +128,7 @@ from AstroToolkit.Tools import [tool name]
129
128
 
130
129
  <br>
131
130
 
132
- ## Configuration
131
+ ## Configuration<a id="configuration"></a>
133
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.
134
133
 
135
134
  **Usage:**
@@ -169,21 +168,55 @@ where options is a dictionary containing key : value pairs to set in the config.
169
168
  - This sets the default radius to use for the Vizier button in the [getbuttons](#72-getbuttons) tool.
170
169
  - plot_size = 400
171
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
+ ```
172
183
 
173
184
  <br>
174
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
+
175
204
  ## Tools
176
205
 
177
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.
178
207
 
179
- **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>
180
213
 
181
- **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.**
182
215
 
183
216
  <br>
184
217
 
185
- ### 1. Raw Data Tools
186
- ### 1.1. dataquery
218
+ ### 1. Raw Data Tools<a id="1-raw-data-tools"></a>
219
+ ### 1.1. dataquery<a id="11-dataquery"></a>
187
220
 
188
221
  Returns all available data for a given survey (e.g. magnitudes, positions, etc.).
189
222
 
@@ -208,19 +241,19 @@ survey = str, name of a supported survey
208
241
  pos = list, [ra,dec]
209
242
  ```
210
243
  ```
211
- source = int/float/str, Gaia source_id
244
+ source = int/str, Gaia source_id
212
245
  ```
213
246
  ```
214
247
  radius = int/float, radius of query
215
248
  ```
216
249
 
217
- **Returns:** dict or None
250
+ **Returns:** dict
218
251
 
219
252
  ```
220
253
  {
221
254
  'survey' : str, survey of data
222
255
  'type' : 'data'
223
- '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)
224
257
  'pos' : [ra,dec], pos used to get data (None if a source was used)
225
258
  'data' : dict, the returned data
226
259
  }
@@ -243,7 +276,7 @@ wise_data = dataquery(survey='wise',source=source)['data']
243
276
 
244
277
  <br><br>
245
278
 
246
- ### 1.2. photquery
279
+ ### 1.2. photquery<a id="12-photquery"></a>
247
280
 
248
281
  Returns data from a given survey, with columns filtered to only include photometry and other basic information.
249
282
 
@@ -268,19 +301,19 @@ survey = str, name of a supported survey
268
301
  pos = list, [ra,dec]
269
302
  ```
270
303
  ```
271
- source = int/float/str, Gaia source_id
304
+ source = int/str, Gaia source_id
272
305
  ```
273
306
  ```
274
307
  radius = int/float, radius of query
275
308
  ```
276
309
 
277
- **Returns:** dict or None
310
+ **Returns:** dict
278
311
 
279
312
  ```
280
313
  {
281
314
  'survey' : str, survey of data
282
315
  'type' : 'data'
283
- '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)
284
317
  'pos' : [ra,dec], pos used to get data (None if a source was used)
285
318
  'data' : dict, the returned data
286
319
  }
@@ -299,7 +332,7 @@ data=photquery(survey='twomass',source=6050296829033196032)['data']
299
332
 
300
333
  <br>
301
334
 
302
- ### 1.3. bulkphotquery
335
+ ### 1.3. bulkphotquery<a id="13-bulkphotquery"></a>
303
336
 
304
337
  Returns available photometry from all surveys supported by [photquery](#12-photquery).
305
338
 
@@ -317,18 +350,18 @@ where:
317
350
  pos = list, [ra,dec]
318
351
  ```
319
352
  ```
320
- source = int/float/str, Gaia source_id
353
+ source = int/str, Gaia source_id
321
354
  ```
322
355
  ```
323
356
  radius = int/float, radius of query
324
357
  ```
325
358
 
326
- **Returns:** dict or None
359
+ **Returns:** dict
327
360
 
328
361
  ```
329
362
  {
330
363
  'type' : 'bulkphot'
331
- '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)
332
365
  'pos': [ra,dec], pos used to get data (None if a source was used)
333
366
  'data' : {
334
367
  'gaia' : dict, returned data (or None if no data returned)
@@ -339,6 +372,8 @@ radius = int/float, radius of query
339
372
  }
340
373
  ```
341
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
+
342
377
  <br>
343
378
 
344
379
  **Example:**
@@ -356,7 +391,7 @@ galex_data=bulk_phot['galex']
356
391
 
357
392
  <br>
358
393
 
359
- ### 1.4. getreddening
394
+ ### 1.4. getreddening<a id="14-getreddening"></a>
360
395
 
361
396
  Returns the reddening of a Gaia source.
362
397
 
@@ -373,31 +408,31 @@ getreddening(source)
373
408
 
374
409
  where:
375
410
  ```
376
- source = int/float/str, Gaia source_id
411
+ source = int/str, Gaia source_id
377
412
  ```
378
413
 
379
414
  <br>
380
415
 
381
- **Returns:** dict or None
416
+ **Returns:** dict
382
417
 
383
418
  ```
384
419
  {
385
420
  'type' : 'reddening'
386
- '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)
387
422
  'data' : {
388
423
  'dist' : distance to source (1/parallax)
389
424
  'red_dist' : actual distance to which survey's reddening estimate refers
390
- 'red_dist_err' : error on red_dist
391
- 'red' : survey's reddening estimate
392
- 'red_upper' : reddening upper limit
393
- '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
394
429
  }
395
430
  }
396
431
  ```
397
432
 
398
433
  <br><br>
399
434
 
400
- ### 2. Imaging Tools
435
+ ### 2. Imaging Tools<a id="2-imaging-tools"></a>
401
436
 
402
437
  These functions retrieve and plotimages from supported surveys.
403
438
 
@@ -405,9 +440,19 @@ These functions retrieve and plotimages from supported surveys.
405
440
 
406
441
  <br>
407
442
 
408
- ### 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.
448
+
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.
409
450
 
410
- Retrieves an image from a given survey
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)
411
456
 
412
457
  <br>
413
458
 
@@ -420,7 +465,7 @@ Supported surveys:
420
465
 
421
466
  <br>
422
467
 
423
- 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
424
469
 
425
470
  **Note:** Can also use 'all', which will enable overlays for all supported surveys.
426
471
 
@@ -440,7 +485,7 @@ survey = str, name of a supported survey
440
485
  pos = list, [ra,dec]
441
486
  ```
442
487
  ```
443
- source = int/float/str, Gaia source_id
488
+ source = int/str, Gaia source_id
444
489
  ```
445
490
  ```
446
491
  size = int/float, size of image in arcsec
@@ -452,25 +497,23 @@ band = str, string containing the required bands (e.g. for all panstarrs bands,
452
497
  overlays = str, required detection overlays (e.g. for gaia and wise detections, use overlays='gaia,wise')
453
498
  ```
454
499
 
455
- **Returns:** dict or None
456
-
457
- **Returns:**
500
+ **Returns:** dict
458
501
 
459
502
  ```
460
503
  {
461
504
  'type' : 'image'
462
- 'data' : array, image data
463
- 'header' : astropy header, image header
464
- 'metadata' : {
465
- 'survey' : str, image survey
466
- 'source' : int/float/str, source used to get image (None if a pos was used)
467
- 'pos' : [ra,dec], pos used to get image (None if a source was used)
468
- 'location' : [ra,dec], actual location of the image
469
- 'size' : int/float, image size in arcsec
470
- 'image_time' : [year,month], image time
471
- 'wcs' : astropy wcs object of image
472
- 'overlay' : list of overlay entries
473
- }
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
+ }
474
517
  }
475
518
  ```
476
519
 
@@ -478,7 +521,7 @@ overlays = str, required detection overlays (e.g. for gaia and wise detections,
478
521
 
479
522
  ```
480
523
  {
481
- 'survey' : int/float/str, survey of detection
524
+ 'survey' : str, survey of detection
482
525
  'position: [ra,dec], coordinates of detection
483
526
  'radius' : float, radius of detection
484
527
  'corrected' : bool, whether or not the detection has been corrected for proper motion
@@ -489,7 +532,7 @@ overlays = str, required detection overlays (e.g. for gaia and wise detections,
489
532
 
490
533
  <br>
491
534
 
492
- ### 2.2. plotimage
535
+ ### 2.2. plotimage<a id="22-plotimage"></a>
493
536
 
494
537
  Plots images in format returned by [imagequery](#21-imagequery).
495
538
 
@@ -506,7 +549,20 @@ where:
506
549
  data = dict in format returned by imagequery
507
550
  ```
508
551
 
509
- **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.
510
566
 
511
567
  <br>
512
568
 
@@ -521,12 +577,12 @@ plot=plotimage(image)
521
577
  showplot(plot)
522
578
  ```
523
579
 
524
- <img src="./README_Images/imaging_example.png?raw=true" width="300">
580
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/imaging_example.png?raw=true)
525
581
 
526
582
  <br><br>
527
583
 
528
- ### 3. HRD Tools
529
- ### 3.1. plothrd
584
+ ### 3. HRD Tools<a id="3-hrd-tools"></a>
585
+ ### 3.1. plothrd<a id="31-plothrd"></a>
530
586
 
531
587
  Returns a HRD with a source or list of sources overlayed over a Gaia 100pc background sample.
532
588
 
@@ -541,13 +597,23 @@ plothrd(source=None,sources=None)
541
597
  where:
542
598
 
543
599
  ```
544
- source = int/float/str, Gaia source_id
600
+ source = int/str, Gaia source_id
545
601
  ```
546
602
  ```
547
603
  sources = list of sources
548
604
  ```
549
605
 
550
- **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
+ ```
551
617
 
552
618
  <br>
553
619
 
@@ -560,12 +626,12 @@ plot=plothrd(source=6050296829033196032)
560
626
  showplot(plot)
561
627
  ```
562
628
 
563
- <img src="./README_Images/hrd_example.png?raw=true" width="300">
629
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/hrd_example.png?raw=true)
564
630
 
565
631
  <br><br>
566
632
 
567
- ### 4. Lightcurve Tools
568
- ### 4.1. lightcurvequery
633
+ ### 4. Lightcurve Tools<a id="4-lightcurve-tools"></a>
634
+ ### 4.1. lightcurvequery<a id="41-lightcurvequery"></a>
569
635
 
570
636
  Returns lightcurve data for a given survey.
571
637
 
@@ -576,8 +642,9 @@ Supported surveys:
576
642
  - ATLAS (atlas) - o, c, i
577
643
  - ASAS-SN (asassn) - g, v
578
644
  - Gaia (gaia) - g, bp, rp
645
+ - CRTS (crts) - v
579
646
 
580
- **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.
581
648
 
582
649
  <br>
583
650
 
@@ -593,7 +660,7 @@ survey = str, name of a supported survey
593
660
  pos = list, [ra,dec]
594
661
  ```
595
662
  ```
596
- source = int/float/str, Gaia source_id
663
+ source = int/str, Gaia source_id
597
664
  ```
598
665
  ```
599
666
  radius = int/float, radius of lightcurve query
@@ -608,30 +675,24 @@ password = str, ATLAS password, hence only used in ATLAS queries
608
675
  sigmaclip = int, performs sigma clipping on the data to this number of standard deviations
609
676
  ```
610
677
 
611
- **Returns:** list
678
+ **Returns:** list of dicts
612
679
 
613
- 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.
614
-
615
- e.g. for ztf, if g and r data were found, but no i data was found, the result would be a list:
616
-
617
- ```
618
- [g_entry,r_entry,None]
619
- ```
620
-
621
- 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:
622
681
 
623
682
  ```
624
683
  {
625
684
  'type' : 'lightcurve'
626
- '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)
627
686
  'pos': [ra,dec], pos used to get data (None if a source was used)
628
687
  'survey' : str, survey of data
629
688
  'band' : str, band of lightcurve data
630
689
  'data' : {
631
690
  'ra' : list of returned ra values
632
691
  'dec' : list of returned dec values
633
- '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)
634
- '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
635
696
  'mag' : list of returned magnitude values
636
697
  'mag_err' : list of returned magnitude error values
637
698
  }
@@ -640,7 +701,7 @@ where each non-None entry has the format:
640
701
 
641
702
  <br>
642
703
 
643
- ### 4.2. plotlightcurve
704
+ ### 4.2. plotlightcurve<a id="42-plotlightcurve"></a>
644
705
 
645
706
  Plots lightcurves in the format returned by [lightcurvequery](#41-lightcurvequery).
646
707
 
@@ -663,7 +724,18 @@ colour = str, name of a supported colour. Only used when passing a single lightc
663
724
  colours = list of strings denoting supported colours, e.g. ['green','red','blue']. Only used when passing multiple lightcurves
664
725
  ```
665
726
 
666
- **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
+ ```
667
739
 
668
740
  <br>
669
741
 
@@ -676,14 +748,14 @@ lightcurves=lightcurvequery(survey='ztf',source=6050296829033196032)
676
748
  showplot(plotlightcurve(lightcurves,colours=['green','red','blue']))
677
749
  ```
678
750
 
679
- <img src="./README_Images/lightcurve_example.png?raw=true" width="600">
751
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/lightcurve_example.png?raw=true)
680
752
 
681
753
  **Note:** Each band will then be toggleable using the legend.
682
754
 
683
755
  <br><br>
684
756
 
685
- ### 5. SED Tools
686
- ### 5.1. sedquery
757
+ ### 5. SED Tools<a id="5-sed-tools"></a>
758
+ ### 5.1. sedquery<a id="51-sedquery"></a>
687
759
 
688
760
  Queries all supported photometry surveys and returns SED data.
689
761
 
@@ -700,32 +772,32 @@ where:
700
772
  pos = list, [ra,dec]
701
773
  ```
702
774
  ```
703
- source = int/float/str, Gaia source_id
775
+ source = int/str, Gaia source_id
704
776
  ```
705
777
  ```
706
778
  radius = int/float, radius of data query
707
779
  ```
708
780
 
709
- **Returns:** dict or None
781
+ **Returns:** dict
710
782
 
711
783
  ```
712
784
  {
713
785
  'type' : 'sed'
714
- '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)
715
787
  'pos': [ra,dec], pos used to get data (None if a source was used)
716
788
  'data': list of entries with each entry taking the form of a dict:
717
- {
718
- 'survey' : str, survey of data point
719
- 'wavelength' : filter wavelength of data point
720
- 'flux' : flux through filter
721
- 'rel_err' : relative error on flux
722
- }
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
+ }
723
795
  }
724
796
  ```
725
797
 
726
798
  <br>
727
799
 
728
- ### 5.2. plotsed
800
+ ### 5.2. plotsed<a id="52-plotsed"></a>
729
801
 
730
802
  Plots SEDs in the format returned by [sedquery](#51-sedquery).
731
803
 
@@ -743,7 +815,17 @@ where:
743
815
  data = dict in format returned by sedquery
744
816
  ```
745
817
 
746
- **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
+ ```
747
829
 
748
830
  <br>
749
831
 
@@ -755,12 +837,12 @@ data=sedquery(source=6050296829033196032)
755
837
  showplot(plotsed(data))
756
838
  ```
757
839
 
758
- <img src="./README_Images/sed_example.png?raw=true" width="600">
840
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/sed_example.png?raw=true)
759
841
 
760
842
  <br><br>
761
843
 
762
- ### 6. Spectrum Tools
763
- ### 6.1. spectrumquery
844
+ ### 6. Spectrum Tools<a id="6-spectrum-tools"></a>
845
+ ### 6.1. spectrumquery<a id="61-spectrumquery"></a>
764
846
 
765
847
  Returns spectrum data from a given survey.
766
848
 
@@ -780,19 +862,19 @@ survey = str, name of a supported survey
780
862
  pos = list, [ra,dec]
781
863
  ```
782
864
  ```
783
- source = int/float/str, Gaia source_id
865
+ source = int/str, Gaia source_id
784
866
  ```
785
867
  ```
786
868
  radius = int/float, radius of data query
787
869
  ```
788
870
 
789
- **Returns:** dict or None
871
+ **Returns:** dict
790
872
 
791
873
  ```
792
874
  {
793
875
  'type' : 'spectra'
794
- 'survey' : int/float/str, survey of detection
795
- '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)
796
878
  'pos': [ra,dec], pos used to get data (None if a source was used)
797
879
  'data': {
798
880
  'wavelength' : list of wavelength values
@@ -803,7 +885,7 @@ radius = int/float, radius of data query
803
885
 
804
886
  <br>
805
887
 
806
- ### 6.2. plotspectrum
888
+ ### 6.2. plotspectrum<a id="62-plotspectrum"></a>
807
889
 
808
890
  Plots spectra in the format returned by [spectrumquery](#61-spectrumquery).
809
891
 
@@ -821,7 +903,18 @@ where:
821
903
  data = dict in format returned by spectrumquery
822
904
  ```
823
905
 
824
- **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
+ ```
825
918
 
826
919
  <br>
827
920
 
@@ -835,12 +928,12 @@ plot=plotspectrum(data)
835
928
  showplot(plot)
836
929
  ```
837
930
 
838
- <img src="./README_Images/spectrum_example.png?raw=true" width="600">
931
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/spectrum_example.png?raw=true)
839
932
 
840
933
  <br><br>
841
934
 
842
- ### 7. Timeseries Tools
843
- ### 7.1 plotpowspec
935
+ ### 7. Timeseries Tools<a id="7-timeseries-tools"></a>
936
+ ### 7.1 plotpowspec<a id="71-plotpowspec"></a>
844
937
 
845
938
  Plots a power spectrum from lightcurve data in the format returned by [lightcurvequery](#41-lightcurvequery)
846
939
 
@@ -857,7 +950,18 @@ where:
857
950
  data = dict or list in format returned by lightcurvequery
858
951
  ```
859
952
 
860
- **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
+ ```
861
965
 
862
966
  <br>
863
967
 
@@ -871,11 +975,11 @@ plot=plotpowspec(data)
871
975
  showplot(plot)
872
976
  ```
873
977
 
874
- <img src="./README_Images/powspec_example.png?raw=true" width="600">
978
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/powspec_example.png?raw=true)
875
979
 
876
980
  <br><br>
877
981
 
878
- ### 7.2 tsanalysis
982
+ ### 7.2 tsanalysis<a id="72-tsanalysis"></a>
879
983
 
880
984
  Runs period analysis on lightcurve data in format returned by [lightcurvequery](#lightcurvequery)
881
985
 
@@ -904,11 +1008,11 @@ data=lightcurvequery(survey='ztf',source=6050296829033196032)
904
1008
  plot=tsanalysis(data)
905
1009
  ```
906
1010
 
907
- <img src="./README_Images/tsanalysis_example.png?raw=true" width="600">
1011
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/tsanalysis_example.png?raw=true)
908
1012
 
909
1013
  <br><br>
910
1014
 
911
- ## 8. Datapage Tools
1015
+ ## 8. Datapage Tools<a id="8-datapage-tools"></a>
912
1016
 
913
1017
  These functions are used to create custom datapages from any plots/data supported by AstroToolkit.
914
1018
 
@@ -916,13 +1020,13 @@ These functions are used to create custom datapages from any plots/data supporte
916
1020
 
917
1021
  Below is the datapage produced by this example. Once the script to create these has been written, they can be a very powerful way to quickly retrieve and show a wide range of information on a system, with the below example easily being generated in under 30s.
918
1022
 
919
- <img src="./README_Images/datapage_example.png?raw=true" width="900">
1023
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/datapage_example.png?raw=true)
920
1024
 
921
1025
  <br>
922
1026
 
923
- ### 8.1. gridsetup
1027
+ ### 8.1. gridsetup<a id="81-gridsetup"></a>
924
1028
 
925
- Helps with datapage creation.
1029
+ Formats plots for datapage creation by sizing them to a grid of given dimensions.
926
1030
 
927
1031
  <br>
928
1032
 
@@ -934,30 +1038,39 @@ getgrid(dimensions,plots,grid_size=CONFIG)
934
1038
 
935
1039
  where:
936
1040
  ```
937
- 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})
938
1042
  ```
939
1043
  ```
940
- 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
+ }
941
1051
  ```
942
1052
  ```
943
1053
  grid_size = int, size of each square of the grid to which all plots are scaled.
944
1054
  ```
945
1055
 
946
- **Returns:** list
947
-
948
- list of plots stripped of their dimensions. E.g. for the plots = ... input above, the following will be returned:
1056
+ **Returns:** dict
949
1057
 
950
1058
  ```
951
- [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
+ }
952
1065
  ```
953
1066
 
954
- 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.
955
1068
 
956
1069
  **NOTE:** Again, see the datapage_creation example as noted [above](#8-datapage-tools) for an example.
957
1070
 
958
1071
  <br>
959
1072
 
960
- ### 8.2. getbuttons
1073
+ ### 8.2. getbuttons<a id="82-getbuttons"></a>
961
1074
 
962
1075
  Returns a Bokeh figure containing SIMBAD and Vizier buttons for use in datapages.
963
1076
 
@@ -977,7 +1090,7 @@ grid_size = int, size of the grid to which the buttons are scaled.
977
1090
  pos = list, [ra,dec] in degrees
978
1091
  ```
979
1092
  ```
980
- source = int/float/str, Gaia source_id
1093
+ source = int/str, Gaia source_id
981
1094
  ```
982
1095
  ```
983
1096
  simbad_radius = int, radius to use in SIMBAD queries
@@ -986,15 +1099,22 @@ simbad_radius = int, radius to use in SIMBAD queries
986
1099
  vizier_radius = int, radius to use in Vizier queries
987
1100
  ```
988
1101
 
989
- **Returns:**
1102
+ **Returns:** dict
990
1103
 
991
- 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
+ ```
992
1112
 
993
1113
  **NOTE:** Again, see the datapage_creation example as noted [above](#8-datapage-tools) for an example.
994
1114
 
995
1115
  <br>
996
1116
 
997
- ### 8.3. getmdtable
1117
+ ### 8.3. getmdtable<a id="83-getmdtable"></a>
998
1118
 
999
1119
  Creates a table of metadata table using data from supported surveys and/or custom data.
1000
1120
 
@@ -1015,7 +1135,7 @@ metadata = dict, dictionary of metadata in accepted format (see below)
1015
1135
  pos = list, [ra,dec] in degrees
1016
1136
  ```
1017
1137
  ```
1018
- source = int/float/str, Gaia source_id
1138
+ source = int/str, Gaia source_id
1019
1139
  ```
1020
1140
 
1021
1141
  <br>
@@ -1025,8 +1145,10 @@ The expected metadata format is:
1025
1145
  ```
1026
1146
  {
1027
1147
  'gaia' : {
1028
- 'parameters' : names of parameters (i.e. column headers) that exist in that survey
1029
- '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
1030
1152
  'notes' : str, any notes to include on this parameter/error/etc.
1031
1153
  }
1032
1154
  }
@@ -1051,19 +1173,27 @@ In this case, an additional 'values' key must be included, and the values/errors
1051
1173
  }
1052
1174
  ```
1053
1175
 
1054
- **Returns**:
1055
- 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
+ ```
1056
1186
 
1057
1187
  **NOTE:** Again, see the datapage_creation example as noted [above](#8-datapage-tools) for an example.
1058
1188
 
1059
1189
  <br><br>
1060
1190
 
1061
- ## 9. File Handling Tools
1191
+ ## 9. File Handling Tools<a id="9-file-handling-tools"></a>
1062
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.
1063
1193
 
1064
1194
  <br>
1065
1195
 
1066
- ### 9.1. savedata
1196
+ ### 9.1. savedata<a id="91-savedata"></a>
1067
1197
 
1068
1198
  This tool allows for the saving of many ATK data structures into local files.
1069
1199
 
@@ -1093,7 +1223,7 @@ Name of file that the data was saved to
1093
1223
 
1094
1224
  <br>
1095
1225
 
1096
- ### 9.2. readdata
1226
+ ### 9.2. readdata<a id="92-readdata"></a>
1097
1227
 
1098
1228
  This tool allows for the lossless recreation of ATK data stuctures from files created using [savedata](#91-savedata).
1099
1229
 
@@ -1130,15 +1260,15 @@ recreated_lightcurve_data=readdata(fname)
1130
1260
  showplot(plotlightcurve(recreated_lightcurve_data,colours=['red','orange','yellow']))
1131
1261
  ```
1132
1262
 
1133
- <img src="./README_Images/struct_recreation_example.png?raw=true" width="600">
1263
+ ![](https://github.com/WD-planets/AstroToolkit/raw/latest/README_Images/struct_recreation_example.png?raw=true)
1134
1264
 
1135
1265
  **Note:** The above example assumes that you have already set a default ATLAS username / password in the [config](#configuration).
1136
1266
 
1137
1267
  <br>
1138
1268
 
1139
- ### 9.3. export
1269
+ ### 9.3. export<a id="93-export"></a>
1140
1270
 
1141
- 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.
1142
1272
 
1143
1273
  <br>
1144
1274
 
@@ -1158,15 +1288,15 @@ keephtml = bool. To get the filename for the png, the plot must first be saved a
1158
1288
 
1159
1289
  <br><br>
1160
1290
 
1161
- ### 10. Miscellaneous Tools
1291
+ ### 10. Miscellaneous Tools<a id="10-miscellaneous-tools"></a>
1162
1292
 
1163
1293
  These are tools that do not fit into the above categories, but can still be useful for quickly performing some basic functions.
1164
1294
 
1165
1295
  <br>
1166
1296
 
1167
- ### 10.1. showplot
1297
+ ### 10.1. showplot<a id="101-showplot"></a>
1168
1298
 
1169
- 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.
1170
1300
 
1171
1301
  <br>
1172
1302
 
@@ -1177,14 +1307,14 @@ showplot(plot)
1177
1307
 
1178
1308
  where:
1179
1309
  ```
1180
- plot = bokeh figure object
1310
+ plot = ATK plot dictionary
1181
1311
  ```
1182
1312
 
1183
1313
  <br>
1184
1314
 
1185
- ### 10.2. saveplot
1315
+ ### 10.2. saveplot<a id="102-saveplot"></a>
1186
1316
 
1187
- 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.
1188
1318
 
1189
1319
  <br>
1190
1320
 
@@ -1195,12 +1325,12 @@ saveplot(plot)
1195
1325
 
1196
1326
  where:
1197
1327
  ```
1198
- plot = bokeh figure object
1328
+ plot = ATK plot dictionary
1199
1329
  ```
1200
1330
 
1201
1331
  <br>
1202
1332
 
1203
- ### 10.3. correctpm
1333
+ ### 10.3. correctpm<a id="103-correctpm"></a>
1204
1334
 
1205
1335
  Corrects for proper motion of an object between an input time and a target time.
1206
1336
 
@@ -1254,7 +1384,7 @@ ra_corrected,dec_corrected=correctpm([2016,0],[2000,0],ra,dec,pmra,pmdec)
1254
1384
 
1255
1385
  <br>
1256
1386
 
1257
- ### 10.4. getdistance
1387
+ ### 10.4. getdistance<a id="104-getdistance"></a>
1258
1388
 
1259
1389
  Simply calculates the distance (1/parallax) of an object given its parallax in mas (the unit of parallax in Gaia).
1260
1390
 
@@ -1279,7 +1409,7 @@ distance of object in pc
1279
1409
 
1280
1410
  <br>
1281
1411
 
1282
- ### 10.5. convfromdeg
1412
+ ### 10.5. convfromdeg<a id="105-convfromdeg"></a>
1283
1413
 
1284
1414
  Converts deg coordinates to HMS/DMS format
1285
1415
 
@@ -1304,7 +1434,7 @@ pos = list, [ra,dec] of object in degrees
1304
1434
 
1305
1435
  <br>
1306
1436
 
1307
- ### 10.6. convtodeg
1437
+ ### 10.6. convtodeg<a id="106-convtodeg"></a>
1308
1438
 
1309
1439
  Converts HMS/DMS coordinates to deg.
1310
1440
 
@@ -1318,7 +1448,7 @@ convfromdeg(pos)
1318
1448
 
1319
1449
  where:
1320
1450
  ```
1321
- 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]]
1322
1452
  ```
1323
1453
 
1324
1454
  <br>
@@ -1326,3 +1456,75 @@ pos = list, [ra,dec] of object in [HMS/DMS] format
1326
1456
  **Returns:** list
1327
1457
 
1328
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.