Skip to content

Some clarifying questions about using pythie #1

@zion0210

Description

@zion0210

Hello,

We are working on correction the monthly average T2m value.

Our data cube only contained reforecast for one month for each year (for example for Jan).
The analysis data cube also contained one month data for each year.

We have some clarifying questions about used pythie.

  1. What variables of the input numpy array passed to the Data class? Do I understand correctly that these are variables predictor, start_time, ens, variable, lead_time, lat, lon?
  2. Is it possible to train models for each lead time, or does this work automatically in pythie?
  3. The preparation step worked without errors
reforecasts_data = Data(...)
analysis_data = Data(...)
forecasts_data = Data(...)
ebc = MBM.BiasCorrection()
ebc.train(analysis_data, reforecasts_data)

but the forecast function sends an error message.

forecast = ebc(forestart_data)

pythie/postprocessors/[MBM.py](https://mbm.py/)", line 611, in get_interpolated_parameters
    f = interp1d(interp_time_timestamp, par1d, kind='cubic')
  File "pythie/lib/python3.7/site-packages/scipy/interpolate/[interpolate.py](https://interpolate.py/)", line 554, in init
    check_finite=False)
  File "pythie/lib/python3.7/site-packages/scipy/interpolate/_[bsplines.py](https://bsplines.py/)", line 1099, in make_interp_spline
    "match: expected %s, got %s+%s" % (nt-n, nleft, nright))
ValueError: The number of derivatives at boundaries does not match: expected 3, got 0+0

If we run the "ebc" function for reforecast_data, it sends identical message.

Best regards,
zion0210

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions