######################### PolygonStats2D_timeBased ######################### **Doc:** **short class_name:** PolygonStats2D_timeBased **full class_name :** oceantracker.particle_statistics.polygon_statistics.PolygonStats2D_timeBased **Inheritance:** > ParameterBaseClass> _BaseParticleLocationStats> GriddedStats2D_timeBased> _CorePolygonMethods> PolygonStats2D_timeBased Parameters: ************ * ``class_name`` : ```` ** Description: Class name as string A.B.C, used to import this class from python path - default: ``None`` - data_type: ```` * ``coords_in_lat_lon_order`` : ```` ** Description: Allows points to be given (lat,lon) and order will be swapped before use, only used if hydro-model coords are in degrees - default: ``False`` - data_type: ```` - possible_values: ``[True, False]`` * ``duration`` : ```` ** Description: How long to do counting after start time, can be used instead of "end" parameter - default: ``None`` - data_type: ```` - units: ``sec`` - min: ``0.0`` * ``end`` : ``['str', 'float', 'datetime64', 'int', 'float64', 'float32']`` ** Description: Stop particle counting from this iso date-time, default is end of model run - default: ``None`` - possible_types: ``[, , , , , ]`` - units: ``ISO8601 date as string eg. "2017-01-01T00:30:00",np.datetime64, or float of seconds since 1/1/1970`` * ``grid_size``: ** Description: - number of (rows, columns) in grid, where rows is y size, cols x size, values should be odd, so will be rounded up to next - a list containing type: ``[]`` - default list : ``[100, 99]`` - data_type: ```` - min: ``1`` - max: ``100000`` - possible_types: ``[]`` - make_list_unique: ``False`` - fixed_len: ``2`` - min_len: ``0`` * ``name`` : ```` ** Description: Name used to refer to class in code and output, = None for core claseses - default: ``None`` - data_type: ```` * ``particle_property_list``: ** Description: - Create statistics for these named particle properties, list = ["water_depth"], for average of water depth at particle locations inside the counted regions - a list containing type: ``[]`` - default list : ``None`` - data_type: ```` - possible_types: ``[]`` - make_list_unique: ``True`` - min_len: ``0`` * ``role_output_file_tag`` : ```` ** - default: ``stats_polygon_time`` - data_type: ```` * ``start`` : ``['str', 'float', 'datetime64', 'int', 'float64', 'float32']`` ** Description: Start particle counting from this date-time, default is start of model run - default: ``None`` - possible_types: ``[, , , , , ]`` - units: ``ISO8601 date as string eg. "2017-01-01T00:30:00",np.datetime64, or float of seconds since 1/1/1970`` * ``status_list``: ** Description: - List of particle status types to count,eg ["on_bottom","moving"], other status types will be ignored in statistcs - a list containing type: ``[]`` - default list : ``['stationary', 'stranded_by_tide', 'on_bottom', 'moving']`` - data_type: ```` - possible_values: ``['unknown', 'bad_coord', 'cell_search_failed', 'notReleased', 'dead', 'hit_dry_cell', 'outside_domain', 'outside_open_boundary', 'stationary', 'stranded_by_tide', 'on_bottom', 'moving']`` - possible_types: ``[]`` - make_list_unique: ``False`` - min_len: ``0`` * ``update_interval`` : ```` ** Description: Time in seconds between calculating statistics, wil be rounded to be a multiple of the particle tracking time step - default: ``3600.0`` - data_type: ```` - units: ``sec`` * ``use_release_group_polygons`` : ```` ** Description: Omit polygon_list param and use all polygon release polygons as statistics/counting polygons, useful for building release group polygon to polygon connectivity matrix. - default: ``False`` - data_type: ```` - possible_values: ``[True, False]`` * ``user_note`` : ```` ** - default: ``None`` - data_type: ```` * ``water_depth_max`` : ```` ** Description: Count only those particles in water depths less than this value - default: ``None`` - data_type: ```` - min: ``0.0`` * ``water_depth_min`` : ```` ** Description: Count only those particles in water depths greater than this value - default: ``None`` - data_type: ```` - min: ``0.0`` * ``write`` : ```` ** Description: Write statistcs to disk - default: ``True`` - data_type: ```` - possible_values: ``[True, False]`` * ``z_max`` : ```` ** Description: Count only those particles with vertical position <= to this value - default: ``None`` - data_type: ```` - units: ``meters above mean water level, so is < 0 at depth`` * ``z_min`` : ```` ** Description: Count only those particles with vertical position >= to this value - default: ``None`` - data_type: ```` - units: ``meters above mean water level, so is < 0 at depth`` Expert Parameters: *******************