Skip to content

Commit

Permalink
default to list
Browse files Browse the repository at this point in the history
  • Loading branch information
ramarty committed Dec 20, 2023
1 parent a292518 commit 344f9c1
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 291 deletions.
552 changes: 266 additions & 286 deletions examples/quality-assessment.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/blackmarble/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def bm_extract(
bearer: str,
aggfunc: str | List[str] = ["mean"],
variable: Optional[str] = None,
quality_flag_rm: List[int] = None,
quality_flag_rm: List[int] = [],
check_all_tiles_exist: bool = True,
file_directory: Optional[Path] = None,
file_prefix: Optional[str] = None,
Expand Down Expand Up @@ -56,7 +56,7 @@ def bm_extract(
- For ``VNP46A3``, uses ``NearNadir_Composite_Snow_Free``.
- For ``VNP46A4``, uses ``NearNadir_Composite_Snow_Free``.
quality_flag: List[int], default = None
quality_flag_rm: List[int], default = []
Quality flag values to use to set values to ``NA``. Each pixel has a quality flag value, where low quality values can be removed. Values are set to ``NA`` for each value in ther ``quality_flag_rm`` vector.
For ``VNP46A1`` and ``VNP46A2`` (daily data):
Expand Down
6 changes: 3 additions & 3 deletions src/blackmarble/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def h5_to_geotiff(
f: Path,
/,
variable: str = None,
quality_flag_rm=None,
quality_flag_rm=[],
output_directory: Path = None,
output_prefix: str = None,
):
Expand Down Expand Up @@ -191,7 +191,7 @@ def bm_raster(
date_range: datetime.date | List[datetime.date],
bearer: str,
variable: Optional[str] = None,
quality_flag_rm: List[int] = None,
quality_flag_rm: List[int] = [],
check_all_tiles_exist: bool = True,
file_directory: Optional[Path] = None,
file_prefix: Optional[str] = None,
Expand Down Expand Up @@ -226,7 +226,7 @@ def bm_raster(
- For ``VNP46A3``, uses ``NearNadir_Composite_Snow_Free``.
- For ``VNP46A4``, uses ``NearNadir_Composite_Snow_Free``.
quality_flag: List[int], default = None
quality_flag: List[int], default = []
Quality flag values to use to set values to ``NA``. Each pixel has a quality flag value, where low quality values can be removed. Values are set to ``NA`` for each value in ther ``quality_flag_rm`` vector.
For ``VNP46A1`` and ``VNP46A2`` (daily data):
Expand Down

0 comments on commit 344f9c1

Please sign in to comment.