-
Notifications
You must be signed in to change notification settings - Fork 34
/
fritz.defaults.yaml
2032 lines (1873 loc) · 58.9 KB
/
fritz.defaults.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
skyportal:
app:
title: Fritz
logos: # Logos to place in the top-left of the header bar (zero or more)
- src: /static/images/GROWTH_logo.png
alt_text: GROWTH logo
- src: /static/images/skyportal_logo_dark.png
alt_text: Skyportal logo
# This secret key can be any random string of
# characters.
#
# You should re-generate this for your application
# using:
#
# base64.b64encode(os.urandom(50)).decode('ascii')
secret_key: abc01234
factory: skyportal.app_server_fritz.make_app_fritz
heasarc_endpoint: https://heasarc.gsfc.nasa.gov
# this endpoint does not actually do anything -- it is just for testing
sedm_endpoint: http://minar.caltech.edu/add_fritz
lt_host: 161.72.57.3
lt_port: 8080
lco_protocol: https
lco_host: observe.lco.global
lco_port: 443
lco_archive_endpoint: https://archive-api.lco.global
ztf:
protocol: https
host: kowalski.caltech.edu
port: 443
ztf_forced_endpoint: https://ztfweb.ipac.caltech.edu
swift:
protocol: https
host: www.swift.psu.edu
port: 443
swift_xrt_endpoint: https://www.swift.ac.uk/user_objects
ps1_endpoint: https://catalogs.mast.stsci.edu/
tess_endpoint: https://tess.mit.edu/public/tesstransients/
atlas:
protocol: https
host: fallingstar-data.com
kait:
protocol: http
host: herculesii.astro.berkeley.edu
colibri:
protocol: http
host:
port:
gemini:
protocol: https
host: gsodbtest.gemini.edu # this is the test server host, just remove 'test' for production
port: 8443 # this is the test server port, production is 443
treasuremap_endpoint: https://treasuremap.space
tns:
endpoint: https://sandbox.wis-tns.org
bot_id:
bot_name:
api_key:
look_back_days: 7
winter:
protocol: http
host: winter.caltech.edu
port: 82
submit_trigger: False # if False, the API POST call will only validate the payload
gracedb_endpoint: https://gracedb.ligo.org/api/
mpc_endpoint: https://minorplanetcenter.net
# See https://stackoverflow.com/a/35604855 for syntax
# These are Javascript component routes
routes:
- path: "/"
component: templates/HomePage
exact: True
- path: "/source/:id"
component: source/Source
- path: "/favorites"
component: listing/FavoritesPage
- path: "/groups"
component: group/Groups
- path: "/group/:id"
component: group/Group
- path: "/profile"
component: user/Profile
- path: "/candidates"
component: candidate/CandidateList
- path: "/sources"
component: source/SourceList
- path: "/user/:id"
component: user/UserInfo
- path: "/upload_photometry/:id"
component: photometry/UploadPhotometry
- path: "/about"
component: About
- path: "/share_data/:id"
component: source/ShareDataForm
- path: "/filter/:fid"
component: filter/Filter
- path: "/runs"
component: observing_run/ObservingRunPage
- path: "/run/:id"
component: observing_run/RunSummary
- path: "/allocations"
component: allocation/AllocationPage
- path: "/allocation/:id"
component: allocation/AllocationSummary
- path: "/telescope/:id"
component: telescope/TelescopeSummary
- path: "/instrument/:id"
component: instrument/InstrumentSummary
- path: "/group_sources/:id"
component: group/GroupSources
- path: "/user_management"
component: user/UserManagement
- path: "/alerts"
component: alert/Alerts
- path: "/alerts/ztf/:id"
component: alert/ZTFAlert
- path: "/archive"
component: archive/Archive
- path: "/upload_spectrum/:id"
component: spectrum/UploadSpectrum
- path: "/source/:id/finder"
component: FindingChart
- path: "/observability/:id"
component: source/Observability
- path: "/source/:id/periodogram"
component: Periodogram
- path: "/db_stats"
component: DBStats
- path: "/galaxies"
component: galaxy/GalaxyPage
- path: "/spatial_catalogs"
component: spatial_catalog/SpatialCatalogPage
- path: "/gcn_events"
component: gcn/GcnEvents
- path: "/gcn_events/:dateobs"
component: gcn/GcnEventPage
- path: "/telescopes"
component: telescope/TelescopePage
- path: "/instruments"
component: instrument/InstrumentPage
- path: "/mmadetectors"
component: mma_detector/MMADetectorPage
- path: "/services"
component: analysis/AnalysisServicePage
- path: "/recurring_apis"
component: RecurringAPIPage
- path: "/shifts"
component: shift/ShiftNoId
- path: "/shifts/:id"
component: shift/ShiftWithId
- path: "/summary_search"
component: summary/SummarySearch
- path: "/observations"
component: observation/ObservationPage
- path: "/followup_requests"
component: followup_request/FollowupRequestPage
- path: "/source/:obj_id/analysis/:analysis_id"
component: source/SourceAnalysisPage
- path: "/taxonomies"
component: taxonomy/TaxonomyPage
- path: "/tns_robots"
component: tns/TNSRobotsPage
- path: "/tns_robot/:id/submissions"
component: tns/TNSRobotSubmissionsPage
observation_plan:
default_filters: ['ztfg', 'ztfr', 'ztfi']
use_skyportal_fields: True
kowalski:
protocol: http
host: kowalski-api-1
port: 4000
token:
# a (dedicated) Kowalski instance holding the ZTF light curve data referred to as Gloria
gloria:
protocol: http
host: kowalski-api-1
port: 4000
token:
melman:
protocol: http
host: kowalski-api-1
port: 4000
token:
sidebar:
# See https://material-ui.com/components/material-icons/
- name: main
subitems:
- name: Dashboard
icon: Home
url: /
- name: Sources
icon: Storage
url: /sources
- name: Candidates
icon: Search
url: /candidates
- name: Favorites
icon: Star
url: /favorites
- name: Alerts
icon: Explore
url: /alerts
- name: Persistent Sources
icon: CloudCircle
url: /archive
- name: Groups
icon: GroupWork
url: /groups
- name: Observing Runs
icon: LocalCafe
url: /runs
- name: GCN Events
icon: SettingsInputAntenna
url: /gcn_events
- name: Followup Requests
icon: WorkOutlined
url: /followup_requests
- name: Shifts
icon: SubwayRounded
url: /shifts
- name: Summary Search
icon: Troubleshoot
url: /summary_search
- name: About
icon: Info
url: /about
- name: Other
icon: MoreHoriz
subitems:
- name: Telescopes
icon: MyLocation
url: /telescopes
- name: Instruments
icon: Wifi
url: /instruments
- name: MMADetectors
icon: Abc
url: /mmadetectors
- name: Allocations
icon: HourglassEmptyOutlined
url: /allocations
- name: Observations
icon: ZoomInOutlined
url: /observations
- name: TNS Robots
icon: Assignment
url: /tns_robots
- name: Galaxies
icon: TornadoOutlined
url: /galaxies
- name: Spatial Catalogs
icon: PhotoSizeSelectLargeOutlined
url: /spatial_catalogs
- name: Analysis Services
icon: SentimentSatisfied
url: /services
- name: Recurring API
icon: Restore
url: /recurring_apis
- name: Taxonomies
icon: WallpaperOutlined
url: /taxonomies
- name: Admin
icon: AdminPanelSettings
permissions: ["Manage users", "System admin"]
subitems:
- name: DB Stats
icon: Assessment
permissions: ["System admin"]
url: /db_stats
- name: User Management
icon: Group
permissions: ["Manage users", "System admin"]
url: /user_management
security:
strict: true
slack:
enabled: false
url: null
homepage_grid:
# This section describes the grid on which Home Page widgets are laid out.
#
# The breakpoints describe screen sizes at which a different set of widget
# layouts should be used. Note that these breakpoints describe minimum width
# values, unlike the maximum width bounds used by Material UI breakpoints.
# For example, a breakpoint of "sm: 650" will match windows with width 650px
# or greater, until the next highest breakpoint is hit (probably a "md").
# This is different from Material UI, where a breakpoint of 650 would match
# window widths that are at most 650px.
#
# The cols describe the number of evenly spaced columns that make up the
# grid at a given breakpoint. For example, on extra-large screens (greater
# than ${breakpoints.xlg} pixels), the grid will use ${cols.xlg} columns of
# equal width to describe sizes of widgets based on the layouts provided.
#
# Optionally, you may provide a "row_height: {a rem value}" property in
# this section to change the height of a row on the grid. By default, this
# value is 9.375rem (150px for the default 16px = 1rem configuration).
breakpoints:
xlg: 1400
lg: 1150
md: 996
sm: 650
xs: 0
cols:
xlg: 16
lg: 12
md: 10
sm: 6
xs: 4
homepage_widgets:
# This section describes the specific widgets shown on the Home Page and how
# they are laid out by default on the grid of the page.
#
# The name of section should be the same as the widget's React component.
#
# The props property should be a set of properties to be passed on to the
# underlying React component for the widget. You may run into cases in which
# you must pass a more complex, dyamic property (perhaps fetched from the
# application redux store). Since you can not know that in the time of the
# configuration writing, such properties should be directly coded into the
# HomePage.jsx.template file (see the GroupList widget for an example)
#
# By default, any widget listed here is shown on the Home Page. However, you
# can give a widget the property "show: false" to turn off rendering of the
# widget.
#
# The resizable property determines whether the user is able to resize the
# widget after it has been rendered based on default layouts.
#
# Finally, the layouts property provides an array of default sizes/locations
# for each screen width breakpoint for the given widget. Layout arrays are
# given in the order [x, y, width, height], in units of grid columns/rows.
# For example, a layout array of [1, 2, 3, 4] will render a widget 3 grid
# columns in width, 4 grid rows in height, and have its upper-left corner at
# the column 1 (zero-indexed) and row 2. Note that each row is by default
# 150px in height. The row height can be altered in the homepage_grid
# section above (as well as other grid characteristics).
WeatherWidget:
resizeable: true
minW: 2
layouts:
xlg: [12, 3, 4, 2]
lg: [9, 3, 3, 2]
md: [6, 6, 4, 3]
sm: [0, 9, 6, 1]
xs: [0, 19, 5, 1]
SourceCounts:
props:
sinceDaysAgo: 7
resizeable: true
minW: 1.5
layouts:
xlg: [14, 0, 2, 1]
lg: [10, 0, 2, 1]
md: [8, 0, 2, 1]
sm: [4.5, 0, 1.5, 1]
xs: [0, 0, 4, 1]
RecentSources:
resizeable: true
minW: 2
layouts:
xlg: [0, 0, 5, 3]
lg: [0, 0, 4, 3]
md: [0, 0, 4, 3]
sm: [0, 3, 3, 3]
xs: [0, 4, 4, 3]
NewsFeed:
resizeable: true
minW: 2
layouts:
xlg: [10, 0, 4, 3]
lg: [7, 0, 3, 3]
md: [4, 0, 4, 3]
sm: [0, 0, 4.5, 3]
xs: [0, 1, 4, 3]
TopSources:
resizeable: true
minW: 2
layouts:
xlg: [5, 0, 5, 3]
lg: [4, 0, 3, 3]
md: [0, 3, 4, 3]
sm: [3, 3, 3, 3]
xs: [0, 7, 4, 3]
TopSavers:
resizeable: true
minW: 3
layouts:
xlg: [7, 3, 5, 3]
lg: [5, 3, 4, 2]
md: [0, 6, 6, 3]
sm: [0, 10, 6, 3]
xs: [0, 14, 4, 3]
RecentGcnEvents:
resizeable: true
minW: 3
layouts:
xlg: [0, 3, 7, 3]
lg: [0, 3, 5, 2]
md: [4, 3, 6, 3]
sm: [0, 6, 6, 3]
xs: [0, 10, 4, 4]
GroupList:
props:
title: My Groups
resizeable: true
minW: 1.5
layouts:
xlg: [14, 1, 2, 2]
lg: [10, 1, 2, 2]
md: [8, 1, 2, 2]
sm: [4.5, 1, 1.5, 2]
xs: [0, 17, 4, 2]
database:
database: skyportal
host: db
port: 5432
user: skyportal
password: password
ports:
facility_queue: 64510
notification_queue: 64610
observation_plan_queue: 64710
thumbnail_queue: 64910
tns_retrieval_queue: 64810
tns_submission_queue: 64812
server:
# From https://console.developers.google.com/
#
# - Create Client ID
# - Javascript origins: https://localhost:5000
# - Authorized redirect URLs: http://localhost:5000/complete/google-oauth2/
#
# You need to have Google+ API enabled; it takes a few minutes to activate.
protocol: http
host: <host>
port:
# It is recommended to use TLS in production
ssl: False
processes: 4
# The max size of a request body in megabytes (M)
max_body_size: 100
# nginx parameter which sets both the time in seconds before which
# the server is considered unavailable and the subsequent period of
# time the server will be unavailable
fail_timeout: 60
# Rate limit: number of requests per second (see https://www.nginx.com/blog/rate-limiting-nginx/)
rate_limit: 5
# Rate limit burst size (https://www.nginx.com/blog/rate-limiting-nginx/#bursts)
burst: 10
# In addition to the local network, specify any IP addresses that are to be
# exempt from API rate limiting
whitelisted_ips:
# Class A private network
- 10.0.0.0/8
# Class B private network
- 172.16.0.0/12
# Class C private network
- 192.168.0.0/16
# skipper.caltech.edu
- 131.215.198.228
# kowalski.caltech.edu
- 131.215.198.229
# Specify IPs or address ranges (e.g., 130.211.0.0/22) that are associated
# with upstream load balancing.
# These trusted addresses are used to uncover the originating IP.
loadbalancer_ips:
# Google Load Balancer IPs
# See https://cloud.google.com/load-balancing/docs/https#x-forwarded-for_header
- 130.211.0.0/22
- 35.191.0.0/16
# preview.fritz.science
- 34.120.0.80
# fritz.science
- 35.244.192.22
auth:
debug_login: True
google_oauth2_key:
google_oauth2_secret:
google_oauth2_timeout: 15
services:
dask: False
misc:
days_to_keep_unsaved_candidates: 7
minutes_to_keep_candidate_query_cache: 120
minutes_to_keep_source_query_cache: 360
minutes_to_keep_localization_instrument_query_cache: 1440
max_items_in_localization_instrument_query_cache: 100
minutes_to_keep_public_source_pages_cache: 1440
minutes_to_keep_reports_cache: 1440
public_group_name: "Sitewide Group"
# Use a named cosmology from `astropy.cosmology.parameters.available` cosmologies
# or supply the arguments for an `astropy.cosmology.FLRW` cosmological instance.
# If {"flat": True} then use a subclass of the FLRW, called `FlatLambdaCMD`
# otherwise use `LambdaCDM`. See `utils.cosmology.py` for the way in which
# the user-supplied cosmology parameter set constructs the site-wide cosmology.
cosmology: Planck18
#cosmology: {H0: "65.0", Om0: 0.3, Ode0: 0.7, name: 'skyportal_user_cosmo'}
dustmap: sfd
dustmap_folder: persistentdata/dustmap
# The minimum signal-to-noise ratio/ n-sigma for lim mag cacluations to
# consider a photometry point as a detection
photometry_detection_threshold_nsigma: 3.0
# The airmass value below which to track hours for when plotting
# on an object's observability page
hours_below_airmass_threshold: 2.9
color_palette: turbo
external_logging:
papertrail:
# get an account at https://papertrailapp.com
enabled: False
# change url to the correct subdomain for your account
# and change the port as well
url:
port:
# which log files, if any do you not want to send over to the 3rd party?
excluded_log_files: ["log/websocket_server.log"]
sentry:
endpoint:
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# Sentry recommends adjusting this value in production.
traces_sample_rate: 1.0
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate: 1.0
weather:
refresh_time: 3600.0
openweather_api_key:
cron: []
# - interval: 60
# script: jobs/count_unsaved_candidates.py
# - interval: 1440
# script: jobs/delete_unsaved_candidates.py
# limit: ["01:00", "02:00"]
comments_folder: persistentdata/comments
analysis_services:
analysis_folder: persistentdata/analysis
max_analysis_per_obj_per_user: 50
sn_analysis_service:
port: 6801
ngsf_analysis_service:
port: 7001
spectral_cube_analysis_service:
port: 7002
openai_analysis_service:
port: 7003
summary:
# set this global API key if the project
# will pay for the OpenAI costs. Otherwise
# individual users need to set their own key
# in the user preferences
# Get a global key at:
# https://platform.openai.com/account/api-keys
api_key:
temperature: 0.2
max_tokens: 350
top_p: 1.0
frequency_penalty: 0.0
model: gpt-3.5-turbo
presence_penalty: 1.0
prompt: Using markdown (with appropriate URL links), in one human-readable paragraph please summarize the following comments about this astronomical source. If classification and/or redshift are given, then note those in the summary. This summary will be primarily read by professional astronomers to help them with their work.
embeddings_store:
summary:
location: pinecone
environment: us-east1-gcp
api_key:
index_name: openai-skyportal-summary
index_size: 1536
model: text-embedding-ada-002
pod_type: p1.x1
gcn:
server: gcn.nasa.gov
# you can obtain a client_id and client_secret at https://gcn.nasa.gov/quickstart
# you can set a group_id to remember the last GCN the app ingested from the stream
client_group_id:
client_id:
client_secret:
notice_types:
- FERMI_GBM_FLT_POS
- FERMI_GBM_GND_POS
- FERMI_GBM_FIN_POS
- FERMI_GBM_SUBTHRESH
- SWIFT_BAT_GRB_POS_ACK
- SWIFT_XRT_POSITION
# - LVC_PRELIMINARY
# - LVC_INITIAL
# - LVC_UPDATE
# - LVC_RETRACTION
# - AMON_ICECUBE_COINC
# - AMON_ICECUBE_HESE
- ICECUBE_ASTROTRACK_GOLD
- ICECUBE_ASTROTRACK_BRONZE
- MAXI_UNKNOWN
twilio:
# Twilio Sendgrid API configs
# This needs to be set to a valid, Sendgrid-registered address in config.yaml
from_email:
# This needs to be obtained via Sendgrid setup on their site
sendgrid_api_key:
# Twilio SMS API configs
# These values must be valid ones from the Twilio API console
from_number:
sms_account_sid:
sms_auth_token:
smtp:
from_email:
password:
host:
port:
# This value needs to be either "sendgrid" or "smtp" (without quotes)
email_service: sendgrid
invitations:
enabled: False # If debug_login=True above, invite tokens won't be used during auth
days_until_expiry: 3
email_subject: "You have been invited to collaborate on Fritz"
email_body_preamble: | # This can include HTML tags
Welcome to <b>Fritz</b>!
<br />
Dark star crashes, pouring its light into ashes.
notifications:
enabled: True
standard_stars:
ZTF: data/ztf_standards.csv
ESO: data/eso_standards.csv
# Parameters for the thumbnail classification function which labels
# images as grayscale or colored. See utils/thumbnail.py for the function.
image_grayscale_params:
thumb_size: 40
MSE_cutoff: 22
adjust_color_bias: True
slack:
microservice_port: 64100
expected_url_preamble: "https://hooks.slack.com/"
spectrum_types:
types:
- source
- host
- host_center
default: source
# define the additional passbands that are not in SNCosmo
# (https://sncosmo.readthedocs.io/en/stable/bandpass-list.html)
# the names must be unique. The wavelength array should
# describe the full extent of the bandpass in Angstrom
# and the transmission should be a vector of the same
# length that defines the full Quantum Efficiency at each wavelength.
# must have at least two elements in the arrays
# `wavelength` and `transmission`.
# additional_bandpasses:
# - name: 'atlasc'
# filterset: 'atlas'
# wavelength: [4150, 4157, 6556, 6560]
# transmission: [0, 1, 1, 0]
# description: "basic ATLAS C filter - tophat transmission"
# - name: 'atlaso'
# filterset: 'atlas'
# wavelength: [5580, 5582, 8249, 8250]
# transmission: [0, 1, 1, 0]
# description: "basic ATLAS O filter - tophat transmission"
docs:
servers:
- url: https://fritz.science
description: Production
- url: https://preview.fritz.science
description: Preview/Testing
kowalski:
server:
name: "Kowalski"
version: "3.0.0"
description: "Kowalski: a toolkit for Time-Domain Astronomy, provides an API to access most of its underlying functionality.
To use it, you will need a user account that can be provided by the system's administrator. Once you have an account you can retrieve your token using the `/api/auth` endpoint described here.
We strongly suggest accessing Kowalski using its dedicated Python client: [penquins](https://github.com/dmitryduev/penquins). It comes with its own documentation and examples, and can be installed with `pip install penquins`.
If you have any questions or need help, please contact us."
host: "0.0.0.0"
port: 4000
processes: 4
max_requests: 100000
timeout: 36000
admin_username: "admin"
# fixme: use ''.join(secrets.choice(string.ascii_lowercase + string.digits) for _ in range(32))
admin_password: "admin"
# fixme: use ''.join(secrets.choice(string.ascii_lowercase + string.digits) for _ in range(32))
SECRET_KEY: "abc0123"
JWT_SECRET_KEY: "abc0123"
JWT_ALGORITHM: "HS256"
JWT_EXP_DELTA_SECONDS:
# fixme: use from cryptography.fernet import Fernet; Fernet.generate_key().decode()
fernet_key: "irjsxvfJdqSJ2fcnpPacbH972dt-RPMMLE48PQ8J5Hg="
client_max_size: 1048576
contact:
name: "Your Name"
email: "your_email@your_domain.com"
ztf:
mountain_ip: null
mountain_port: null
mountain_username: null
mountain_password: null
mountain_bind_ip: null
mountain_bind_port: null
kafka:
default.topic.config:
auto.offset.reset: "earliest"
group: "kowalski"
scala_version: "2.13"
kafka_version: "3.4.1"
bootstrap.servers: "192.168.0.64:9092,192.168.0.65:9092,192.168.0.66:9092"
zookeeper: "192.168.0.64:2181"
bootstrap.test.servers: "localhost:9092"
zookeeper.test: "localhost:2181"
path: "kafka_2.13-3.4.1"
processes_per_topic:
ZTF: 1
database:
max_pool_size: 200
max_wired_tiger_cache:
host: "kowalski_mongo_1"
port: 27017
# if not null, must be same as in entrypoint of mongo container
replica_set: "rs0"
db: "kowalski"
admin_username: "mongoadmin"
# fixme: use strong password if exposing the database to the world
admin_password: "mongoadminsecret"
username: "ztf"
# fixme: use strong password if exposing the database to the world
password: "ztf"
srv: False # to use with mongodb atlas or any other distant mongodb server, where specifying a port is not necessary
build_indexes: True
collections:
users: "users"
filters: "filters"
queries: "queries"
alerts_ztf: "ZTF_alerts"
alerts_ztf_aux: "ZTF_alerts_aux"
alerts_ztf_classifications: "ZTF_alerts_classifications"
alerts_pgir: "PGIR_alerts"
alerts_pgir_aux: "PGIR_alerts_aux"
alerts_wntr: "WNTR_alerts"
alerts_wntr_aux: "WNTR_alerts_aux"
alerts_turbo: "TURBO_alerts"
alerts_turbo_aux: "TURBO_alerts_aux"
skymaps: "skymaps"
tns: "TNS"
indexes:
ZTF_alerts:
- name: radec_candid
fields:
- ["coordinates.radec_geojson", "2dsphere"]
- ["candid", -1]
unique: false
- name: radec_objectId
fields:
- ["coordinates.radec_geojson", "2dsphere"]
- ["objectId", -1]
unique: false
- name: jd_radec_candid
fields:
- ["candidate.jd", 1]
- ["coordinates.radec_geojson", "2dsphere"]
- ["candid", -1]
unique: false
- name: jd_radec_objectId
fields:
- ["candidate.jd", 1]
- ["coordinates.radec_geojson", "2dsphere"]
- ["objectId", -1]
unique: false
- name: objectId
fields:
- ["objectId", -1]
unique: false
- name: candid
fields:
- ["candid", -1]
unique: true
- name: pid
fields:
- ["candidate.pid", 1]
unique: false
- name: objectId_pid
fields:
- ["objectId", -1]
- ["candidate.pid", 1]
unique: false
- name: pdiffimfilename
fields:
- ["candidate.pdiffimfilename", 1]
unique: false
- name: jd_programid_programpi
fields:
- ["candidate.jd", 1]
- ["candidate.programid", 1]
- ["candidate.programpi", 1]
unique: false
- name: jd_braai_candid
fields:
- ["candidate.jd", -1]
- ["classifications.braai", -1]
- ["candid", -1]
unique: false
- name: jd_drb_candid
fields:
- ["candidate.jd", -1]
- ["candidate.drb", -1]
- ["candid", -1]
unique: false
- name: jd_braai_magpsf_isdiffpos_ndethist
fields:
- ["candidate.jd", 1]
- ["classifications.braai", 1]
- ["candidate.magpsf", 1]
- ["candidate.isdiffpos", 1]
- ["candidate.ndethist", 1]
unique: false
- name: jd_field_drb_ndethhist_magpsf_isdiffpos_objectId
fields:
- ["candidate.jd", 1]
- ["candidate.field", 1]
- ["candidate.rb", 1]
- ["candidate.drb", 1]
- ["candidate.ndethist", 1]
- ["candidate.magpsf", 1]
- ["candidate.isdiffpos", 1]
- ["objectId", -1]
unique: false
TNS:
- name: radec__id
fields:
- ["coordinates.radec_geojson", "2dsphere"]
- ["_id", -1]
unique: false
- name: discovery_date
fields:
- ["discovery_date", -1]
unique: false
PGIR_alerts:
- name: radec_candid
fields:
- [ "coordinates.radec_geojson", "2dsphere" ]
- [ "candid", -1 ]
unique: false
- name: radec_objectId
fields:
- [ "coordinates.radec_geojson", "2dsphere" ]
- [ "objectId", -1 ]
unique: false
- name: jd_radec_candid
fields:
- [ "candidate.jd", 1 ]
- [ "coordinates.radec_geojson", "2dsphere" ]
- [ "candid", -1 ]
unique: false
- name: jd_radec_objectId
fields:
- [ "candidate.jd", 1 ]
- [ "coordinates.radec_geojson", "2dsphere" ]
- [ "objectId", -1 ]
unique: false
- name: objectId
fields:
- [ "objectId", -1 ]
unique: false
- name: candid
fields:
- [ "candid", -1 ]
unique: true
- name: jd_drb_candid
fields:
- [ "candidate.jd", -1 ]
- [ "candidate.drb", -1 ]
- [ "candid", -1 ]
unique: false
- name: jd_drb_ndethist_dmag2mass_isstar_distnearbrstar
fields:
- [ "candidate.jd", -1 ]
- [ "candidate.drb", -1 ]
- [ "candidate.ndethist", 1 ]
- [ "candidate.dmag2mass", -1 ]
- [ "candidate.isstar", -1 ]
- [ "candidate.distnearbrstar", 1 ]
unique: false
- name: jd_scorr_dmag2mass
fields:
- [ "candidate.jd", -1 ]
- [ "candidate.scorr", -1 ]
- [ "candidate.dmag2mass", -1 ]
unique: false
WNTR_alerts:
- name: radec_candid
fields:
- ["coordinates.radec_geojson", "2dsphere"]
- ["candid", -1]