This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Converts geographic coordinates from WGS84 to NZGD2000.""" | |
import math | |
AXIS_SEMI_MAJOR = 6378137.0 # Semi-major axis for GRS 80 | |
AXIS_SEMI_MINOR = 6356752.314245179 # Semi-minor axis for GRS 80 | |
FLATTENING = (AXIS_SEMI_MAJOR - | |
AXIS_SEMI_MINOR) / AXIS_SEMI_MAJOR # Flattening | |
# FLATTENING = 1 / 298.257222101 # or use the standard value for GRS 80 | |
E2 = 2 * FLATTENING - FLATTENING**2 # Eccentricity squared | |
FALSE_EASTING = 1600000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
end | |
# ----------------------------------------------------------------------------- | |
# alias | |
# ----------------------------------------------------------------------------- | |
function l -d "list all files" | |
ls -alrth $argv | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ============================================================================= | |
" | |
" Sections: | |
" -> vim_plug | |
" -> general | |
" -> user_interface | |
" -> colors_and_fonts | |
" -> misc | |
" | |
" ============================================================================= |