Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bnb/nc4 dep removal #210

Merged
merged 17 commits into from
May 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
lr_padded_slice=None default for bias_transforms
  • Loading branch information
bnb32 committed May 2, 2024
commit 7c29d0b8f65958d6c224dfeecb5843f0739dfa69
16 changes: 8 additions & 8 deletions sup3r/bias/bias_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def local_linear_bc(input,
lat_lon,
feature_name,
bias_fp,
lr_padded_slice,
lr_padded_slice=None,
out_range=None,
smoothing=0,
):
Expand Down Expand Up @@ -292,8 +292,8 @@ def monthly_local_linear_bc(input,
lat_lon,
feature_name,
bias_fp,
lr_padded_slice,
time_index,
lr_padded_slice=None,
temporal_avg=True,
out_range=None,
smoothing=0,
Expand All @@ -318,18 +318,18 @@ def monthly_local_linear_bc(input,
datasets "{feature_name}_scalar" and "{feature_name}_adder" that are
the full low-resolution shape of the forward pass input that will be
sliced using lr_padded_slice for the current chunk.
time_index : pd.DatetimeIndex
DatetimeIndex object associated with the input data temporal axis
(assumed 3rd axis e.g. axis=2). Note that if this method is called as
part of a sup3r resolution forward pass, the time_index will be
included automatically for the current chunk.
lr_padded_slice : tuple | None
Tuple of length four that slices (spatial_1, spatial_2, temporal,
features) where each tuple entry is a slice object for that axes.
Note that if this method is called as part of a sup3r forward pass, the
lr_padded_slice will be included automatically in the kwargs for the
active chunk. If this is None, no slicing will be done and the full
bias correction source shape will be used.
time_index : pd.DatetimeIndex
DatetimeIndex object associated with the input data temporal axis
(assumed 3rd axis e.g. axis=2). Note that if this method is called as
part of a sup3r resolution forward pass, the time_index will be
included automatically for the current chunk.
temporal_avg : bool
Take the average scalars and adders for the chunk's time index, this
will smooth the transition of scalars/adders from month to month if
Expand Down Expand Up @@ -403,7 +403,7 @@ def local_qdm_bc(data: np.array,
base_dset: str,
feature_name: str,
bias_fp,
lr_padded_slice,
lr_padded_slice=None,
threshold=0.1,
relative=True,
no_trend=False):
Expand Down
Loading