Skip to content

Commit

Permalink
[#23] Add warning msg in pdb.to_nc()
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhu2e committed Oct 26, 2024
1 parent 70b5d4d commit 28d7a07
Show file tree
Hide file tree
Showing 25 changed files with 9,070 additions and 14 deletions.
3 changes: 2 additions & 1 deletion cfr/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def to_nc(self, path, verbose=True, **kwargs):
path (str): the path to save the file.
verbose (bool, optional): print verbose information. Defaults to False.
'''
p_warning('>>> Warning: this is an experimental feature.')
da = self.to_da()

try:
Expand Down Expand Up @@ -1868,7 +1869,7 @@ def to_nc(self, path, annualize=False, months=None, verbose=True, compress_param
for k in self.records.keys():
encoding_dict[k] = compress_params

ds = self.to_ds(annualize=annualize, months=months)
ds = self.to_ds(annualize=annualize, months=months, verbose=verbose)
ds.to_netcdf(path=path, encoding=encoding_dict)
if verbose: utils.p_success(f'ProxyDatabase saved to: {path}')

Expand Down
Binary file added docs/_images/notebooks_LMR_workflow_34_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/notebooks_LMR_workflow_36_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/notebooks_LMR_workflow_37_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/notebooks_lmr-lipdgraph_17_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,556 changes: 1,556 additions & 0 deletions docs/_sources/notebooks/LMR_workflow.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 28d7a07

Please sign in to comment.