About the trouble downloading from ISC Bulletin in oq-mbtk as of Feb 2026

16 views
Skip to first unread message

Enrico Abcede

unread,
Feb 12, 2026, 3:08:11 AM (10 days ago) Feb 12
to OpenQuake Users
I am migrating from the old GEM Catalogue Toolkit to the current OpenQuake Model Building Toolkit (oq-mbtk). Previously, I was able to download data from the ISC, but I am now encountering issues when attempting to retrieve earthquake catalogs in .isf format. Please see the code I am using below:  

```python
%matplotlib inline
import openquake.cat.isc_downloader as isc

Cat1 = isc.ISCBulletinUrl()
Cat1.SetField("OutputFormat","ISF")
Cat1.SetField("StartYear","2000")
Cat1.SetField("EndYear","2001")
Cat1.SetField('SearchAreaShape','RECT')
Cat1.SetField('RectangleBottomLatitude','23')
Cat1.SetField('RectangleTopLatitude','34')
Cat1.SetField('RectangleLeftLongitude','77')
Cat1.SetField('RectangleRightLongitude','91')
Cat1.SetField("MinimumDepth","")

Cat1.GetCatalogue()

Cat1.WriteOutput("outputs/Example_ISF_Catalogue.isf")
```

I just get a connection error

```python
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Server is busy, retrying in a few seconds...
Warning: Maximum number of attempts reached...
```

Has there been a recent change to the download method or API for the ISC Bulletin? Any insights would be appreciated.

Peter Pažák

unread,
Feb 20, 2026, 6:07:37 PM (2 days ago) Feb 20
to OpenQuake Users
Hi, I am getting the same problem.
Though when I try:
Cat1.CreateUrl()
it seems to give correct path(?)


and maybe also expected results, though there is a line in the response saying:

Sorry a problem has occured with the map.

As the code of isc_downloader includes a cycle with:

            Page = parse_page(UrlRes.read())
            UrlRes.close()
            if Page.find("Sorry") > -1:
                if Tries > 10:
                    print("Warning: Maximum number of attempts reached...")
                    break
                print("Warning: Server is busy, retrying in a few seconds...")
                time.sleep(30)
                Tries += 1

it seems to remain in the loop an after 10 times it stops trying.
So maybe the output is correct, just the isc response changed a bit?
As a first workaround you probably may copy all between DATA_TYPE and STOP form the returned page data and save to an isf file.

Peter

Dátum: štvrtok 12. februára 2026, čas: 9:08:11 UTC+1, odosielateľ: enrico.a...@gmail.com
Reply all
Reply to author
Forward
0 new messages