hamsci_psws.locator.gridsquare2latlon

hamsci_psws.locator.gridsquare2latlon(gridsquare, position='center', new_precision=None)[source]

Calculates lat,lon pairs from gridsquares. This routine is vectorized.

position options:

‘center’ ‘lower left’ ‘upper left’ ‘upper right’ ‘lower right’

new_precision:
None: Do not change the precision of the input grid squares.

If None, all input gridsquares must have the same precision, or an exception will be raised.

Even Integer: Input grid squares will be converted to this new precision.

Grid squares with less precision will be extended by appending patterns of ‘55’ and ‘mm’ to the correct length.

Grid squares with greater precision than new_precsion will be truncated.

Note that this will give a reduction in speed compared to uniform grid square precision.