psrc / urbansim2

3 stars 0 forks source link

Implement parcels.is_redevelopable #92

Closed hanase closed 7 years ago

hanase commented 7 years ago

The feasibility model should take this variable into account.

hanase commented 7 years ago

Implemented analogous to Opus:

def capacity_opportunity_non_gov(parcels):

use as a redevelopment filter

return np.logical_or(parcels.building_sqft_pcl == 0, # if no buildings on parcels return True
    # OR the following chain of ANDs
    (parcels.max_developable_capacity/parcels.building_sqft_pcl > 3)* # parcel is not utilized
    (parcels.number_of_governmental_buildings == 0)* # no governmental buildings
    (parcels.avg_building_age >= 20)* # buildings older than 20 years
    np.logical_or( # if condo, the utilization should have a higher bar (it's more difficult to get all condo owners to agree)
        parcels.max_developable_capacity / parcels.building_sqft_pcl > 6, 
        parcels.land_use_type_id <> 15
        )*
    (parcels.job_capacity < 500)* # do not turn down buildings with lots of jobs
    (parcels.improvement_value / parcels.parcel_sqft < 250) # do not turn down expensive mansions
)