farmingpy.eo.read_planet#
- read_planet(img_file, apply_mask=True, confidence=60, clip=None)[source]#
Read planetscope AnalyticMS_SR_8b .tif and apply mask.
- Parameters:
img_file (str) – Image file path.
apply_mask (bool, optional) – Apply udm1 mask and remove points with low mask confidence if True. Defaults to True.
confidence (int, optional) – Mask confidence threshold. Defaults to 60.
clip (GeoDataFrame, optional) – GeoDataFrame used to clip the image.
- Returns:
Planetscope image xarray.DataArray: Mask
- Return type:
xarray.DataArray