old_contents: import datetime as dt
  import logging
  
  logger = logging.getLogger(__name__)
  
  try:
      from osgeo import gdal
  except ImportError:
      GDAL_INSTALLED = False
      logger.warning("No GDAL found.Some util funcs not working, but okay.")
  else:
      GDAL_INSTALLED = True
  
  nasa_date_format = '%Y-%j'
  nasa_dt_format = nasa_date_format + 'T%H:%M:%S'
  nasa_dt_format_with_ms = nasa_dt_format + '.%f'
  standard_date_format = '%Y-%m-%d'
  standard_dt_format = standard_date_format + 'T%H:%M:%S'
  
  
  def nasa_date_to_iso(datestr):
      """Convert the day-number based NASA format to ISO.
  
      Parameters
      ----------
      datestr : str
          Date string in the form Y-j
  
      Returns
      -------
      Datestring in ISO standard yyyy-mm-ddTHH:MM:SS.MMMMMM
      """
      date = dt.datetime.strptime(datestr, nasa_date_format)
      return date.isoformat()
  
  
  def iso_to_nasa_date(datestr):
      date = dt.datetime.strptime(datestr, standard_date_format)
      return date.strftime(nasa_date_format)
  
  
  def nasa_datetime_to_iso(dtimestr):
      if dtimestr.split('.')[1]:
          tformat = nasa_dt_format_with_ms
      else:
          tformat = nasa_dt_format
      time = dt.datetime.strptime(dtimestr, tformat)
      return time.isoformat()
  
  
  def iso_to_nasa_datetime(dtimestr):
      date = dt.datetime.strptime(dtimestr, standard_dt_format)
      return date.strftime(nasa_dt_format)
  
  
  def get_gdal_center_coords(imgpath):
      if not GDAL_INSTALLED:
          logger.error("GDAL not installed. Returning")
          return
      ds = gdal.Open(str(imgpath))
      xmean = ds.RasterXSize // 2
      ymean = ds.RasterYSize // 2
      return xmean, ymean
  
new_contents: import datetime as dt
  import logging
  from urllib.request import urlretrieve
  
  logger = logging.getLogger(__name__)
  
  try:
      from osgeo import gdal
  except ImportError:
      GDAL_INSTALLED = False
      logger.warning("No GDAL found.Some util funcs not working, but okay.")
  else:
      GDAL_INSTALLED = True
  
  nasa_date_format = '%Y-%j'
  nasa_dt_format = nasa_date_format + 'T%H:%M:%S'
  nasa_dt_format_with_ms = nasa_dt_format + '.%f'
  standard_date_format = '%Y-%m-%d'
  standard_dt_format = standard_date_format + 'T%H:%M:%S'
  
  
  def nasa_date_to_iso(datestr):
      """Convert the day-number based NASA format to ISO.
  
      Parameters
      ----------
      datestr : str
          Date string in the form Y-j
  
      Returns
      -------
      Datestring in ISO standard yyyy-mm-ddTHH:MM:SS.MMMMMM
      """
      date = dt.datetime.strptime(datestr, nasa_date_format)
      return date.isoformat()
  
  
  def iso_to_nasa_date(datestr):
      date = dt.datetime.strptime(datestr, standard_date_format)
      return date.strftime(nasa_date_format)
  
  
  def nasa_datetime_to_iso(dtimestr):
      if dtimestr.split('.')[1]:
          tformat = nasa_dt_format_with_ms
      else:
          tformat = nasa_dt_format
      time = dt.datetime.strptime(dtimestr, tformat)
      return time.isoformat()
  
  
  def iso_to_nasa_datetime(dtimestr):
      date = dt.datetime.strptime(dtimestr, standard_dt_format)
      return date.strftime(nasa_dt_format)
  
  
  def get_gdal_center_coords(imgpath):
      if not GDAL_INSTALLED:
          logger.error("GDAL not installed. Returning")
          return
      ds = gdal.Open(str(imgpath))
      xmean = ds.RasterXSize // 2
      ymean = ds.RasterYSize // 2
      return xmean, ymean
  
  
  def download(url, localpath='.', **kwargs):
      """Simple wrapper of urlretrieve
  
      Adding a default path to urlretrieve
  
      Parameters:
      ----------
      url : str
          HTTP(S) URL to download
      localpath : str,pathlib.Path
          Local path where to store the download.
      **kwargs : {dict}
          Keyword args to be handed to urlretrieve.
      Returns
      -------
      Tuple
          Tuple returned by urlretrieve
      """
      return urlretrieve(url, localpath, **kwargs)
  
subject: add mini wrapper around urlretrieve here.