GFDRR / thinkhazard

ThinkHazard!
http://thinkhazard.org/
GNU General Public License v3.0
33 stars 19 forks source link

Updated units in GeoNode #403

Closed fvanderbiest closed 8 years ago

fvanderbiest commented 8 years ago

@ingenieroariel says: "Just a note that the units changed from PGA-g to PGA-g-dec and SA-g to SA-g-dec"

('SA-g-dec', _('Spectral Acceleration (g)')),
('PGA-g-dec', _('Peak Ground Acceleration (g)')),
('PGA-g-per', _('Peak Ground Acceleration (%g)')),
fvanderbiest commented 8 years ago

I guess geonode metadata need an update since they still refer to the old units.

eg: http://45.55.174.20/api/layers/?hazard_type__in=earthquake

ingenieroariel commented 8 years ago

Fixed.

labs_geonode_metadata=# update base_resourcebase set hazard_unit = 'PGA-g-dec' where hazard_unit = 'PGA-g';
UPDATE 14
labs_geonode_metadata=# update base_resourcebase set hazard_unit = 'SA-g-dec' where hazard_unit = 'SA-g';
UPDATE 9
fvanderbiest commented 8 years ago

Thanks ! Should be adressed with https://github.com/GFDRR/thinkhazard/pull/404

We do not have thresholds related to SA-g / SA-g-dec for now.