@@ -788,6 +788,7 @@ def create_ard(self, infile, out_dir, subset=None, overwrite=False):
788788 # when outside SRTM
789789 center_lat = self ._get_center_lat (infile )
790790 if float (center_lat ) > 59 or float (center_lat ) < - 59 :
791+
791792 if 'SRTM' in self .ard_parameters ['single_ARD' ]['dem' ]['dem_name' ]:
792793
793794 logger .info (
@@ -798,24 +799,26 @@ def create_ard(self, infile, out_dir, subset=None, overwrite=False):
798799 self .ard_parameters ['single_ARD' ]['dem' ][
799800 'dem_name' ] = 'Copernicus 30m Global DEM'
800801
801- logger .info (
802- 'The scene\' s location is towards the poles. '
803- 'Consider to use a stereographic projection.'
804- )
802+ if self .ard_parameters ['dem' ]['out_projection' ] == 4326 :
805803
806- epsg = input (
807- 'Type an alternative EPSG code for the projection of the '
808- 'output data or just press enter for keeping Lat/Lon '
809- 'coordinate system (e.g. 3413 for NSIDC Sea Ice Polar '
810- 'Stereographic North projection, or 3976 for NSIDC Sea Ice '
811- 'Polar Stereographic South projection'
812- )
804+ logger .info (
805+ 'The scene\' s location is towards the poles. '
806+ 'Consider to use a stereographic projection.'
807+ )
808+
809+ epsg = input (
810+ 'Type an alternative EPSG code for the projection of the '
811+ 'output data or just press enter for keeping Lat/Lon '
812+ 'coordinate system (e.g. 3413 for NSIDC Sea Ice Polar '
813+ 'Stereographic North projection, or 3976 for '
814+ 'NSIDC Sea Ice Polar Stereographic South projection'
815+ )
813816
814- if not epsg :
815- epsg = 4326
817+ if not epsg :
818+ epsg = 4326
816819
817- self .ard_parameters ['single_ARD' ]['dem' ][
818- 'out_projection' ] = int (epsg )
820+ self .ard_parameters ['single_ARD' ]['dem' ][
821+ 'out_projection' ] = int (epsg )
819822
820823 # --------------------------------------------
821824 # 3 Check ard parameters in case they have been updated,
0 commit comments