Skip to content

Commit

Permalink
Small doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Jan 5, 2023
1 parent 2ee472f commit f8aed56
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/_code/prepare_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
cfg.PARAMS['use_winter_prcp_factor'] = False
cfg.PARAMS['hydro_month_nh'] = 10
cfg.PARAMS['hydro_month_sh'] = 4
cfg.PARAMS['prcp_scaling_factor'] = 2.5
tasks.process_histalp_data(gdir)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=FutureWarning)
Expand Down
Binary file modified docs/_static/logos/logo.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 removed docs/_static/logos/logo_bck.png
Binary file not shown.
Binary file modified docs/_static/logos/logo_shop.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/_static/logos/oggm_dark_l_alpha.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/_static/logos/oggm_dark_s_alpha.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 modified docs/_static/logos/oggm_icon_alpha.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/_static/logos/oggm_icon_alpha_all.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 removed docs/_static/logos/oggm_icon_alpha_out.png
Binary file not shown.
Binary file modified docs/_static/logos/oggm_l.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 modified docs/_static/logos/oggm_l_alpha.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/_static/logos/oggm_l_alpha_all.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/_static/logos/oggm_night_l_alpha.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/_static/logos/oggm_night_s_alpha.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/_static/logos/oggm_pride_l_alpha.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/_static/logos/oggm_pride_s_alpha.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/_static/logos/oggm_rainbow_l_alpha.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/_static/logos/oggm_rainbow_s_alpha.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 modified docs/_static/logos/oggm_s.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 modified docs/_static/logos/oggm_s_alpha.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/_static/logos/oggm_s_alpha_all.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/_static/plot_border_size.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 30 additions & 7 deletions docs/citing-oggm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,39 @@ The OGGM logos are free to use!

.. image:: _static/logo.png


**full logo**:
`pdf <_static/logos/oggm.pdf>`_,
`large (2004x856) <_static/logos/oggm_l.png>`_,
`large (2004x856) with alpha channel <_static/logos/oggm_l_alpha.png>`_,
`small (502x214) <_static/logos/oggm_s.png>`_,
`small (502x214) with alpha channel <_static/logos/oggm_s_alpha.png>`_
`logo large (2008x858) <_static/logos/oggm_l.png>`_,
`logo large (2008x858) with alpha channel <_static/logos/oggm_l_alpha.png>`_,
`logo small (502x215) <_static/logos/oggm_s.png>`_,
`logo small (502x215) with alpha channel <_static/logos/oggm_s_alpha.png>`_

.. image:: _static/logos/oggm_icon.png

**icon logo**:
`small (135x157) <_static/logos/oggm_icon.png>`_,
`small (135x157) with alpha channel <_static/logos/oggm_icon_alpha.png>`_
`icon small (135x157) <_static/logos/oggm_icon.png>`_,
`icon small (135x157) with alpha channel <_static/logos/oggm_icon_alpha.png>`_

.. image:: _static/logos/oggm_dark_s_alpha.png

**dark background logo**:
`dark large (2008x858) with alpha channel <_static/logos/oggm_dark_l_alpha.png>`_,
`dark small (502x215) with alpha channel <_static/logos/oggm_dark_s_alpha.png>`_

.. image:: _static/logos/oggm_rainbow_s_alpha.png

**OGGM rainbow**:
`rainbow large (2004x856) with alpha channel <_static/logos/oggm_rainbow_l_alpha.png>`_,
`rainbow small (502x215) with alpha channel <_static/logos/oggm_rainbow_s_alpha.png>`_

.. image:: _static/logos/oggm_night_s_alpha.png

**night dark background logo**:
`night dark large (2008x858) with alpha channel <_static/logos/oggm_night_l_alpha.png>`_,
`night dark small (502x215) with alpha channel <_static/logos/oggm_night_s_alpha.png>`_

.. image:: _static/logos/oggm_pride_s_alpha.png

**OGGM pride**:
`pride large (2004x856) with alpha channel <_static/logos/oggm_pride_l_alpha.png>`_,
`pride small (502x215) with alpha channel <_static/logos/oggm_pride_s_alpha.png>`_
5 changes: 5 additions & 0 deletions oggm/core/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ def mb_climate_on_height(gdir, heights, *, time_range=None, year_range=None):
df['glacier_prcp_scaling_factor'] = prcp_fac
gdir.write_json(df, 'local_mustar')
else:
if not cfg.PARAMS['prcp_scaling_factor']:
msg = ("If `PARAMS['use_winter_prcp_factor']` is set to False, "
"you need to set `PARAMS['prcp_scaling_factor']` "
"accordingly")
raise InvalidWorkflowError(msg)
prcp_fac = cfg.PARAMS['prcp_scaling_factor']
default_grad = cfg.PARAMS['temp_default_gradient']
g_minmax = cfg.PARAMS['temp_local_gradient_bounds']
Expand Down

0 comments on commit f8aed56

Please sign in to comment.