From 2eff180815619302f101a4ff32db6cf293b529c8 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 4 Mar 2019 02:07:53 +0100 Subject: unify column cleansing --- src/export/convert_coords.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/export/convert_coords.c b/src/export/convert_coords.c index abbbc22..64d7cbe 100644 --- a/src/export/convert_coords.c +++ b/src/export/convert_coords.c @@ -31,8 +31,10 @@ int main( ) double lon = l0+th/n; double lat = 2.0*atan(pow(F/r,1.0/n))-0.5*M_PI; - - printf("%lf\t%lf\n", lat*180.0/M_PI, lon*180.0/M_PI); + if (x > 0 && y > 0) + printf("%lf\t%lf\n", lat*180.0/M_PI, lon*180.0/M_PI); + else + printf("\t\n"); } else printf("\t\n"); } -- cgit v1.2.3