Skip to content

Downloaded tif gets cropped (preprocessing jpgs smaller than tif resolution) #310

Description

@ArtificialTruth

Describe the bug

When downloading images from Google Earth Engine, the .tifs get downloaded. For example:

2016-08-22-16-00-42_S2_ID_gmd58_datetime11-18-25__11_19_01_ms.tif
width=996
height=996

Then a .jpg gets created in preprocessing, for example this jpg corresponding to the .tif above:

Image
width=996
height=996

Normally I would not expect the .tiff to get cropped, as seen in above 2 examples, ie same width and height.

But for some ROIs, the tifs get cropped, for example

2017-08-24-15-50-28_S2_ID_gmd66_datetime11-20-25__05_50_14_ms.tif
width=996
height=996

get cropped to

Image
width=996
height=636

Steps To Reproduce

Steps to reproduce the behavior:

  1. Select bbox around west coast greenland
  2. Set ROIs to be from 0 to 98 km²
  3. The config.json explains how it was downloaded using 1_download_imagery.py

Several ROIs jpgs are being cropped, causing overall coastline to have missing areas:

Image ## Expected behavior It is expected to not crop only some ROIs, and then be able to predict the missing coastline in above screenshot.

Screenshots

ALL software version info

Desktop (please complete the following information):

  • OS: Ubuntu Desktop
  • Version 22
    coastseg 1.4.3 pyhd8ed1ab_0 conda-forge

Additional context

To clarify, here's the folder structure of the problematic tif image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions