Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed mmi_tags to have only 12 columns #10432

Merged
merged 2 commits into from
Mar 10, 2025
Merged

Changed mmi_tags to have only 12 columns #10432

merged 2 commits into from
Mar 10, 2025

Conversation

micheles
Copy link
Contributor

@micheles micheles commented Mar 10, 2025

The JSON can be extracted by looking at http://HOST/v1/calc/CALCID/mmi_tags.

$ oq show mmi_tags
                   ID_1         number     contents  nonstructural    structural      residents          area  occupants_day  occupants_night  occupants_transit  occupants_avg  mmi
 LBN-ADM1-1590546715-B2    231.000000  3.117281e+07   3.521136e+07  3.876309e+07    3281.099854  9.264670e+04    3383.299805      3330.599854        2205.600098    2973.166748    3
 LBN-ADM1-1590546715-B3     36.000000  4.774555e+06   6.103493e+06  6.380899e+06     386.399994  1.548090e+04     286.300018       384.600006         245.699982     305.533356    3
 SYR-ADM1-1590546715-B1     45.000000  8.964385e+05   8.318501e+05  9.950382e+05     256.000000  6.290300e+03     289.399994       262.599976         173.099991     241.699997    3
 SYR-ADM1-1590546715-B2    799.000000  1.559059e+07   1.815720e+07  2.255524e+07    5561.299805  1.126468e+05    4425.600098      5561.100098        3546.199951    4510.966797    3
 SYR-ADM1-1590546715-B3    236.000000  6.686160e+06   6.667411e+06  8.035755e+06    1211.200073  3.895310e+04    1854.599976      1273.700073         887.799988    1338.699951    3
                    ...           ...           ...            ...           ...            ...           ...            ...              ...                ...            ...  ...

This is much better than having 65 columns like

                  ID_1     number_IV   contents_IV  nonstructural_IV  structural_IV   residents_IV  ...  residents_VIII     area_VIII  occupants_day_VIII  occupants_night_VIII  occupants_transit_VIII  occupants_avg_VIII
LBN-ADM1-1590546715-B2    231.000000  3.117281e+07      3.521136e+07   3.876309e+07    3281.099854  ...        0.000000  0.000000e+00            0.000000              0.000000                0.000000            0.000000
LBN-ADM1-1590546715-B3     36.000000  4.774555e+06      6.103493e+06   6.380899e+06     386.399994  ...        0.000000  0.000000e+00            0.000000              0.000000                0.000000            0.000000
SYR-ADM1-1590546715-B1     45.000000  8.964385e+05      8.318501e+05   9.950382e+05     256.000000  ...        0.000000  0.000000e+00            0.000000              0.000000                0.000000            0.000000

@micheles micheles added this to the Engine 3.24.0 milestone Mar 10, 2025
@micheles micheles requested review from ptormene and raoanirudh March 10, 2025 05:53
@micheles micheles merged commit 4df49c6 into master Mar 10, 2025
7 checks passed
@micheles micheles deleted the mmi_tags branch March 10, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant