@@ -788,23 +788,32 @@ 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+ if 'SRTM' in self .ard_parameters ['single_ARD' ]['dem' ]['dem_name' ]:
792+
793+ logger .info (
794+ 'Scene is outside SRTM coverage. Snap will therefore use '
795+ 'the Copernicus 30m Global DEM. '
796+ )
797+
798+ self .ard_parameters ['single_ARD' ]['dem' ][
799+ 'dem_name' ] = 'Copernicus 30m Global DEM'
800+
791801 logger .info (
792- 'Scene is outside SRTM coverage. Snap will therefore use '
793- 'the GETASSE30 DEM. Also consider to use a stereographic '
794- 'projection.'
802+ 'The scene\' s location is towards the poles. '
803+ 'Consider to use a stereographic projection.'
795804 )
805+
796806 epsg = input (
797- 'Please type the EPSG you want to project the output data or '
798- 'just press enter for keeping Lat/Lon coordinate system '
799- '(e.g. 3413 for NSIDC Sea Ice Polar Stereographic North '
800- 'projection, or 3976 for NSIDC Sea Ice Polar Stereographic '
801- 'South projection'
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'
802812 )
813+
803814 if not epsg :
804815 epsg = 4326
805816
806- self .ard_parameters ['single_ARD' ]['dem' ][
807- 'dem_name' ] = 'GETASSE30'
808817 self .ard_parameters ['single_ARD' ]['dem' ][
809818 'out_projection' ] = int (epsg )
810819
0 commit comments