@@ -907,9 +907,19 @@ def local_t_star(gdir, *, ref_df=None, tstar=None, bias=None,
907907 """Compute the local t* and associated glacier-wide mu*.
908908
909909 If ``tstar`` and ``bias`` are not provided, they will be interpolated from
910- the reference t* list.
910+ the reference t* list (``ref_df``) .
911911
912- Note: the glacier wide mu* is here just for indication. It might be
912+ If none of these are provided (the default), this list be obtained from
913+ the current working directory (``ref_tstars.csv`` and associated params
914+ ``ref_tstars_params.json``). These files can either be generated with a
915+ call to ``compute_ref_t_stars`` if you know what you are doing, ot you
916+ can obtain pre-preprocessed lists from our servers:
917+ https://cluster.klima.uni-bremen.de/~oggm/ref_mb_params/
918+
919+ The best way to fetch them is to use
920+ :py:func:`oggm.workflow.download_ref_tstars`.
921+
922+ Note: the glacier wide mu* is output here just for indication. It might be
913923 different from the flowlines' mu* in some cases.
914924
915925 Parameters
@@ -934,19 +944,20 @@ def local_t_star(gdir, *, ref_df=None, tstar=None, bias=None,
934944 # Do our own interpolation
935945 if ref_df is None :
936946 # Use the the local calibration
947+ msg = ('If `ref_df` is not provided, please put a list of '
948+ '`ref_tstars.csv` and associated params '
949+ '`ref_tstars_params.json` in the working directory. '
950+ 'Please see the documentation of local_t_star '
951+ 'for more information.' )
937952 fp = os .path .join (cfg .PATHS ['working_dir' ], 'ref_tstars.csv' )
938953 if not os .path .exists (fp ):
939- raise InvalidWorkflowError ('If ref_df is not given, provide '
940- '`ref_tstars.csv` in the working '
941- 'directory' )
954+ raise InvalidWorkflowError (msg )
942955 ref_df = pd .read_csv (fp )
943956
944957 # Check that the params are fine
945958 fp = os .path .join (cfg .PATHS ['working_dir' ], 'ref_tstars_params.json' )
946959 if not os .path .exists (fp ):
947- raise InvalidWorkflowError ('If ref_df is not given, provide '
948- '`ref_tstars_params.json` in the '
949- 'working directory' )
960+ raise InvalidWorkflowError (msg )
950961 with open (fp , 'r' ) as fp :
951962 ref_params = json .load (fp )
952963 for k , v in ref_params .items ():
0 commit comments