@@ -351,7 +351,7 @@ def regions2kml(rundata=None,fname='regions.kml',verbose=True,combined=True):
351351 xge = xge + 360.
352352 if x .min () < - 180 or x .max () > 180 :
353353 # cannot deal with this case easily
354- print ('+++ polygon spans date line, might not display properly' )
354+ print ('*** polygon spans date line, might not display properly' )
355355
356356 v = "\n "
357357 for j in range (len (x )):
@@ -603,7 +603,7 @@ def poly2kml(xy,fname=None,name='poly',color='00FF00', width=3,
603603 xge = xge + 360.
604604 if x .min () < - 180 or x .max () > 180 :
605605 # cannot deal with this case easily
606- print ('+++ polygon spans date line, might not display properly' )
606+ print ('*** polygon spans date line, might not display properly' )
607607
608608 v = "\n "
609609 for j in range (len (x )):
@@ -737,21 +737,18 @@ def kml_footer():
737737
738738def kml_region (mapping , vertex_text = None ):
739739
740- print ('+++ vertex_text = ' , vertex_text )
741740 # if all x values are > 180 or all are < -180 shift the values for plotting
742741 if 'x3' in mapping :
743742 xge = np .array ([mapping ['x1' ], mapping ['x2' ], mapping ['x3' ],mapping ['x4' ]])
744743 else :
745744 xge = np .array ([mapping ['x1' ], mapping ['x2' ]])
746- print ('+++ initial xge = ' ,xge )
747745 if xge .min () > 180 :
748746 xge = xge - 360.
749747 if xge .max () < - 180 :
750748 xge = xge + 360.
751749 if xge .min () < - 180 or xge .max () > 180 :
752750 # cannot deal with this case easily
753- print ('+++ kml_region spans date line, might not display properly' )
754- print ('+++ final xge = ' ,xge )
751+ print ('*** kml_region spans date line, might not display properly' )
755752
756753 mapping ['x1' ] = xge [0 ]
757754 mapping ['x2' ] = xge [1 ]
0 commit comments