class_docstr: Provide a SRTM download mechanism.
class_docstr_tok: ["Provide","a","SRTM","download","mechanism","."]
docstr: Return a typical downloader for this class. In general, this static
  method is used to create the default configuration in cartopy.config
docstr_tok: ["Return","a","typical","downloader","for","this","class",".","In","general",",","this","static","method","is","used","to","create","the","default","configuration","in","cartopy.config"]
code: def default_downloader(cls):
      """
      Return a typical downloader for this class. In general, this static
      method is used to create the default configuration in cartopy.config
  
      """
      default_spec = ("SRTM", "SRTMGL{resolution}", "{y}{x}.hgt")
      target_path_template = str(
          Path("{config[data_dir]}").joinpath(*default_spec)
      )
      pre_path_template = str(
          Path("{config[pre_existing_data_dir]}").joinpath(
              *default_spec
          )
      )
      return cls(
          target_path_template=target_path_template,
          pre_downloaded_path_template=pre_path_template,
      )
  
imports: import io
  from pathlib import Path
  import warnings
  import numpy
  from cartopy import config
  import cartopy.crs
  from cartopy.io import Downloader, LocatedImage, RasterSource, fh_getter
label_desc: Use image node_id 5 for calling the SRTMDownloader obj's underlying member method code with example usage: obj.default_downloader(cls) and returns: cls