Converting geocentric to topocentric coordinates with Pyproj
I am attempting to convert geocentric to topocentric coordinates with Pyproj, the following works:
transformer = pyproj.Transformer.from_pipeline('+proj=topocentric +lat_0=-54.510097 +lon_0=-67.115486 +h_0=135')
But this does not:
transformer = pyproj.Transformer.from_crs(
{"proj":'geocent'},
{"proj":'topocentric', 'lat_0':-54.510097, 'lon_0':-67.115486, 'h_0':135},
)
It generates this exception:
ProjError: Input is not a transformation.: (Internal Proj Error: pipeline: Pipeline: Mismatched units between step 1 and 2)
I would prefer the JSON version so I don't have to compose the string myself.