Skip to content

Commit 4336c9c

Browse files
authored
799 use new api url for ztf (#803)
* Update Fink Science Portal URL in README * Update APIURL to new endpoint * Update API endpoint for statistics retrieval * Update QR code URL to new domain * Update API endpoint for statistics request * Update href link for Fink Broker documentation * Update documentation links in query_cluster.py * Update documentation links in xmatch.py * Add survey option to fink_datatransfer command * Update documentation links to new ZTF site
1 parent 3c539cf commit 4336c9c

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![fronted](assets/frontend.png)
66

7-
The Fink Science Portal allows users to browse and display alert data collected and processed by Fink from a web browser: [https://fink-portal.org](https://fink-portal.org).
7+
The Fink Science Portal allows users to browse and display alert data collected and processed by Fink from a web browser: [https://ztf.fink-portal.org](https://ztf.fink-portal.org).
88

99
The backend is using [Apache HBase](https://hbase.apache.org/), a distributed non-relational database. The frontend is based on [Dash](https://plotly.com/dash/), a Python web framework built on top of Flask, Plotly and React. The frontend has also integrated components to perform fit on the data, such as [nifty-ls](https://github.com/flatironinstitute/nifty-ls) for variable stars, or the [imcce](https://ssp.imcce.fr/webservices/miriade/) tools for Solar System objects.
1010

apps/query_cluster.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def filter_number_tab():
160160
"Filters are provided by the Fink community of users. More information at ",
161161
html.A(
162162
"filters/#real-time-filters",
163-
href="https://fink-broker.readthedocs.io/en/latest/broker/filters/#real-time-filters",
163+
href="https://doc.ztf.fink-broker.org/en/latest/broker/filters/#real-time-filters",
164164
target="_blank",
165165
),
166166
". No filter is applied by default.",
@@ -389,7 +389,7 @@ def display_filter_tab(trans_datasource):
389389
" for fields description and ",
390390
dmc.Anchor(
391391
"here",
392-
href="https://fink-broker.readthedocs.io/en/latest/services/data_transfer/",
392+
href="https://doc.ztf.fink-broker.org/en/latest/services/data_transfer/",
393393
size="xs",
394394
target="_blank",
395395
),
@@ -418,7 +418,7 @@ def display_filter_tab(trans_datasource):
418418
" for fields description and ",
419419
dmc.Anchor(
420420
"here",
421-
href="https://fink-broker.readthedocs.io/en/latest/services/data_transfer/",
421+
href="https://doc.ztf.fink-broker.org/en/latest/services/data_transfer/",
422422
size="xs",
423423
target="_blank",
424424
),
@@ -447,7 +447,7 @@ def display_filter_tab(trans_datasource):
447447
" for fields description and ",
448448
dmc.Anchor(
449449
"here",
450-
href="https://fink-broker.readthedocs.io/en/latest/services/data_transfer/",
450+
href="https://doc.ztf.fink-broker.org/en/latest/services/data_transfer/",
451451
size="xs",
452452
target="_blank",
453453
),
@@ -650,6 +650,7 @@ def update_code_block(topic_name):
650650
-topic {topic_name} \\
651651
-outdir {topic_name} \\
652652
-partitionby {partition} \\
653+
-survey ztf \\
653654
--verbose
654655
"""
655656
return code_block
@@ -854,7 +855,7 @@ def update_log(batchid, interval):
854855
#### 2. Register
855856
856857
To retrieve the data, you need to get an account. See [fink-client](https://github.com/astrolabsoftware/fink-client) and
857-
the [documentation](https://fink-broker.readthedocs.io/en/latest/services/data_transfer) for more information.
858+
the [documentation](https://doc.ztf.fink-broker.org/en/latest/services/data_transfer/) for more information.
858859
859860
#### 3. Retrieve
860861
@@ -882,7 +883,7 @@ def layout():
882883
883884
Once ready, submit your job on the Fink Apache Spark and Kafka clusters to retrieve your data wherever you like.
884885
To access the data, you need to create an account. See the [fink-client](https://github.com/astrolabsoftware/fink-client) and
885-
the [documentation](https://fink-broker.readthedocs.io/en/latest/services/data_transfer) for more information. The data is available
886+
the [documentation](https://doc.ztf.fink-broker.org/en/latest/services/data_transfer/) for more information. The data is available
886887
for download for 7 days.
887888
"""
888889

apps/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
9090
# get stats for all the year 2021
9191
r = requests.post(
92-
'https://api.fink-portal.org/api/v1/statistics',
92+
'https://api.ztf.fink-portal.org/api/v1/statistics',
9393
json={{
9494
'date': '2021',
9595
'output-format': 'json'

apps/summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def store_release_photometry(n_clicks, object_data):
961961
],
962962
)
963963
def make_qrcode(path):
964-
qrdata = f"https://fink-portal.org/{path[1:]}"
964+
qrdata = f"https://ztf.fink-portal.org/{path[1:]}"
965965
qrimg = generate_qr(qrdata)
966966

967967
return html.Img(src="data:image/png;base64, " + pil_to_b64(qrimg))

assets/spark_ztf_transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def check_path_exist(dateToCheck):
274274
out: bool
275275
"""
276276
r = requests.post(
277-
"https://api.fink-portal.org/api/v1/statistics",
277+
"https://api.ztf.fink-portal.org/api/v1/statistics",
278278
json={
279279
"date": "{}{}{}".format(*dateToCheck.split("-")),
280280
"columns": "basic:sci",

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APIURL: https://api.fink-portal.org
1+
APIURL: https://api.ztf.fink-portal.org
22
HOST: localhost
33
PORT: 24000

index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ def on_load_cutouts(lc_id):
18511851
"textDecoration": "none",
18521852
"color": "gray",
18531853
},
1854-
href="https://fink-broker.readthedocs.io/en/latest/services/search/getting_started/#quick-start-api",
1854+
href="https://doc.ztf.fink-broker.org/en/latest/services/search/getting_started/#quick-start-api",
18551855
size="sm",
18561856
),
18571857
dmc.Anchor(

0 commit comments

Comments
 (0)