jyotisha.custom_transliteration¶
-
jyotisha.custom_transliteration.
print_lat_lon
(lat, lon)[source]¶ Returns a formatted string for a latitude and longitude
Returns a formatted string for latitude and longitude, given sexagesimal ‘strings’ using colons for separation
- Args:
- str latstr str lonstr
- Returns:
- string corresponding to the formatted latitude and longitude
- Examples:
>>> print_lat_lon('13:05:24','80:16:12') #Chennai "13°05'24''N, 80°16'12''E" >>> print_lat_lon('37:23:59','-122:08:34') #Palo Alto "37°23'59''N, 122°08'34''W" >>> print_lat_lon(1, -1) "1°0'0''N, 1°0'0''W"
-
jyotisha.custom_transliteration.
sexastr2deci
(sexa_str)[source]¶ Converts as sexagesimal string to decimal
Converts a given sexagesimal string to its decimal value
- Args:
- A string encoding of a sexagesimal value, with the various components separated by colons
- Returns:
- A decimal value corresponding to the sexagesimal string
- Examples:
>>> sexastr2deci('15:30:00') 15.5 >>> sexastr2deci('-15:30:45') -15.5125
-
jyotisha.custom_transliteration.
tr
(text, script, titled=True, source_script='hk_dravidian')[source]¶ NOTE: Please don’t put your custom tex/ md/ ics whatever code here and pollute core library functions. Wrap this in your own functions if you must. Functions should be atomic.