Disagg Python Data Extraction

50 views
Skip to first unread message

Claudio Schill

unread,
Jun 18, 2025, 4:54:18 PM6/18/25
to OpenQuake Users
Hi,

I'm trying to extract disagg results via python, I'm using the Extractor for this.
And this works fine if I extract `rlzs` or `stats`, however when I attempt to get the results in traditional format it doesn't work. I understand that `stats-traditional` is not supported, however from my understanding `rlzs-traditional` should work?

These are the commands I use:
```
from openquake.calculators.extract import Extractor
ex = Extractor(1215)
rlzs = ex.get("disagg?kind=TRT_Mag_Dist_Eps&imt=SA(0.075)&spec=rlzs&poe_id=0&site_id=0")
```
which works fine, however when I do
```
rlzs_trad = ex.get("disagg?kind=TRT_Mag_Dist_Eps&imt=SA(0.075)&spec=rlzs-traditional&poe_id=0&sit
      ⋮ e_id=0")
```
I get the following error:
Screenshot 2025-06-19 at 08.51.48.png
Am I doing something wrong, or is there a bug? This is using OQ version 3.23.2

Thanks,
Claudio
Reply all
Reply to author
Forward
0 new messages