state_to_coord¶
-
process_ais_data.state_to_coord(state, options, grid_params)¶ Inverse function for
get_state.Calculates the coordinates of the middle of the passed in state in the specified grid passed in.
- Parameters
state (int) – The discretized grid square returned by
get_state.options (dict) – The script options specified in the
config_file.grid_params (dict) – The grid parameters specified in the
config_file.
- Returns
The longitude and latitude representing the middle of the state passed in.
- Return type
tuple