@@ -39,10 +39,10 @@ In order to connect and poll alerts from Fink, you need to get your credentials:
39391 . Subscribe to one or more Fink streams by filling this [ form] ( https://forms.gle/2td4jysT4e9pkf889 ) .
40402 . After filling the form, we will send your credentials. Register them on your laptop by simply running:
4141 ```
42- fink_client_register -username < USERNAME> -group_id < GROUP_ID> -servers < SERVERS> ...
42+ fink_client_register -survey SURVEY - username USERNAME -group_id GROUP_ID -servers SERVERS ...
4343 ```
4444
45- In case of doubt, run ` fink_client_register -h ` . You can also inspect the configuration file on disk:
45+ Note that ` SURVEY ` is among ` ztf ` or ` lsst ` . In case of doubt, run ` fink_client_register -h ` . You can also inspect the configuration file on disk:
4646
4747``` bash
4848cat ~ /.finkclient/credentials.yml
@@ -54,77 +54,104 @@ Once you have your credentials, you are ready to poll streams! You can easily ac
5454
5555``` bash
5656fink_consumer -h
57- usage: fink_consumer [-h] [--display] [--display_statistics] [-limit LIMIT]
58- [--available_topics] [--save] [-outdir OUTDIR]
59- [-schema SCHEMA] [--dump_schema] [-start_at START_AT]
57+ usage: fink_consumer [-h] -survey SURVEY [--display]
58+ [--display_statistics] [-limit LIMIT]
59+ [--available_topics] [--save]
60+ [-outdir OUTDIR] [-schema SCHEMA]
61+ [--dump_schema] [-start_at START_AT]
6062
61- Kafka consumer to listen and archive Fink streams from the Livestream service
63+ Kafka consumer to listen and archive Fink streams from the
64+ Livestream service
6265
63- optional arguments :
66+ options :
6467 -h, --help show this help message and exit
65- --display If specified, print on screen information about
66- incoming alert.
67- --display_statistics If specified, print on screen information about queues,
68- and exit.
69- -limit LIMIT If specified, download only ` limit` alerts. Default is
70- None.
71- --available_topics If specified, print on screen information about
72- available topics.
73- --save If specified, save alert data on disk (Avro). See also
74- -outdir.
75- -outdir OUTDIR Folder to store incoming alerts if --save is set. It
76- must exist.
77- -schema SCHEMA Avro schema to decode the incoming alerts. Default is
78- None (version taken from each alert)
79- --dump_schema If specified, save the schema on disk (json file)
80- -start_at START_AT If specified, reset offsets to 0 (` earliest` ) or empty
81- queue (` latest` ).
68+ -survey SURVEY Survey name among ztf or lsst. Note that
69+ each survey will have its own configuration
70+ file.
71+ --display If specified, print on screen information
72+ about incoming alert.
73+ --display_statistics If specified, print on screen information
74+ about queues, and exit.
75+ -limit LIMIT If specified, download only ` limit` alerts.
76+ Default is None.
77+ --available_topics If specified, print on screen information
78+ about available topics.
79+ --save If specified, save alert data on disk
80+ (Avro). See also -outdir.
81+ -outdir OUTDIR Folder to store incoming alerts if --save is
82+ set. It must exist.
83+ -schema SCHEMA Avro schema to decode the incoming alerts.
84+ Default is None (version taken from each
85+ alert)
86+ --dump_schema If specified, save the schema on disk (json
87+ file)
88+ -start_at START_AT If specified, reset offsets to 0
89+ (` earliest` ) or empty queue (` latest` ).
8290` ` `
8391
8492You can also look at an alert on the disk:
8593
8694` ` ` bash
8795fink_alert_viewer -h
88- usage: fink_alert_viewer [-h] [-filename FILENAME ]
96+ usage: fink_alert_viewer [-h] [-f F] [-s S ]
8997
90- Display cutouts and lightcurve from a ZTF alert
98+ Display cutouts and lightcurve from an alert
9199
92- optional arguments:
93- -h, --help show this help message and exit
94- -filename FILENAME Path to an alert data file (avro format)
100+ options:
101+ -h, --help show this help message and exit
102+ -f F Path to an alert data file (avro format)
103+ -s S Survey name among ztf or lsst.
95104` ` `
96105
97- More information at [docs/livestream](https://fink-broker.readthedocs.io /en/latest/services/livestream).
106+ More information at [docs/livestream](https://doc.lsst. fink-broker.org /en/latest/services/livestream).
98107
99108# # Data Transfer usage
100109
101- If you requested data using the [ Data Transfer service](https://fink-portal.org/download), you can easily poll your stream using:
110+ If you requested data using the Data Transfer service ([ZTF ](https://ztf. fink-portal.org/download) or [LSST](https://lsst.fink-portal.org/download) ), you can easily poll your stream using:
102111
103112` ` ` bash
104- usage: fink_datatransfer.py [-h] [-topic TOPIC] [-limit LIMIT] [-outdir OUTDIR] [-partitionby PARTITIONBY] [-batchsize BATCHSIZE] [-nconsumers NCONSUMERS]
105- [-maxtimeout MAXTIMEOUT] [-number_partitions NUMBER_PARTITIONS] [--restart_from_beginning] [--verbose]
113+ usage: fink_datatransfer [-h] -survey SURVEY [-topic TOPIC] [-limit LIMIT]
114+ [-outdir OUTDIR] [-partitionby PARTITIONBY]
115+ [-batchsize BATCHSIZE] [-nconsumers NCONSUMERS]
116+ [-maxtimeout MAXTIMEOUT]
117+ [-number_partitions NUMBER_PARTITIONS]
118+ [--restart_from_beginning] [--dump_schema] [--verbose]
106119
107120Kafka consumer to listen and archive Fink streams from the data transfer service
108121
109- optional arguments :
122+ options :
110123 -h, --help show this help message and exit
124+ -survey SURVEY Survey name among ztf or lsst. Note that each survey will have its
125+ own configuration file.
111126 -topic TOPIC Topic name for the stream that contains the data.
112- -limit LIMIT If specified, download only ` limit` alerts from the stream. Default is None, that is download all alerts.
113- -outdir OUTDIR Folder to store incoming alerts. It will be created if it does not exist.
127+ -limit LIMIT If specified, download only ` limit` alerts from the stream.
128+ Default is None, that is download all alerts.
129+ -outdir OUTDIR Folder to store incoming alerts. It will be created if it does not
130+ exist.
114131 -partitionby PARTITIONBY
115- Partition data by ` time` (year=YYYY/month=MM/day=DD), or ` finkclass` (finkclass=CLASS), or ` tnsclass` (tnsclass=CLASS). ` classId` is
116- also available for ELASTiCC data. Default is time.
117- -batchsize BATCHSIZE Maximum number of alert within the ` maxtimeout` (see conf). Default is 1000 alerts.
132+ If specified, partition data when writing alerts on disk.
133+ Available options: - ` time` : year=YYYY/month=MM/day=DD (ztf and
134+ lsst) - ` finkclass` : finkclass=CLASS (ztf only) - ` tnsclass` :
135+ tnsclass=CLASS (ztf only) - ` classId` : classId=CLASSID (ELASTiCC
136+ only) Default is None, that is no partitioning is applied (all
137+ parquet files in the ` outdir` folder).
138+ -batchsize BATCHSIZE Maximum number of alert within the ` maxtimeout` (see conf).
139+ Default is 1000 alerts.
118140 -nconsumers NCONSUMERS
119- Number of parallel consumer to use. Default (-1) is the number of logical CPUs in the system.
141+ Number of parallel consumer to use. Default (-1) is the number of
142+ logical CPUs in the system.
120143 -maxtimeout MAXTIMEOUT
121- Overwrite the default timeout (in seconds) from user configuration. Default is None.
144+ Overwrite the default timeout (in seconds) from user
145+ configuration. Default is None.
122146 -number_partitions NUMBER_PARTITIONS
123- Number of partitions for the topic in the distant Kafka cluster. Do not touch unless you know what your are doing. Default is 10
147+ Number of partitions for the topic in the distant Kafka cluster.
148+ Do not touch unless you know what your are doing. Default is 10
124149 (Fink Kafka cluster)
125150 --restart_from_beginning
126- If specified, restart downloading from the 1st alert in the stream. Default is False.
151+ If specified, restart downloading from the 1st alert in the
152+ stream. Default is False.
153+ --dump_schema If specified, save the schema on disk (json file)
127154 --verbose If specified, print on screen information about the consuming.
128155` ` `
129156
130- More information at [docs/datatransfer](https://fink-broker.readthedocs.io /en/latest/services/data_transfer/).
157+ More information at [docs/datatransfer](https://doc.ztf. fink-broker.org /en/latest/services/data_transfer/).
0 commit comments