# ARTS built-in documentation server

## Workspace Method retrievalAddSinefit

### Description

Same as jacobianAddSinefit but also adds a new block to covmat_sx using the matrices in covmat_block and covmat_inv_block. If covmat_inv_block is non-empty, it is used as inverse for the added block which avoids its numerical computation. For number and order of elements added to x, see jacobianAddSinefit.

**Authors: **Simon Pfreundschuh

### Synopsis

retrievalAddSinefit( | covmat_sx, jacobian_quantities, jacobian_agenda, covmat_block, covmat_inv_block, sensor_response_pol_grid, sensor_response_dlos_grid, sensor_pos, period_lengths, no_pol_variation, no_los_variation, no_mblock_variation ) |

### Variables

OUT+IN | covmat_sx | (CovarianceMatrix) | Covariance matrix of a priori distribution This covariance matrix describes the Gaussian a priori distribution for an OEM retrieval. |

OUT+IN | jacobian_quantities | (ArrayOfRetrievalQuantity) | The retrieval quantities in the Jacobian matrix. |

OUT+IN | jacobian_agenda | (Agenda) | Pure numerical Jacobian calculation agenda. |

IN | covmat_block | (Sparse) | Holds matrices used to set blocks in covmat_sx and covmat_se. |

IN | covmat_inv_block | (Sparse) | Holds matrices used to set the inverse blocks in covmat_sx and covmat_se. |

IN | sensor_response_pol_grid | (ArrayOfIndex) | The "polarisation grid" associated with sensor_response. |

IN | sensor_response_dlos_grid | (Matrix) | The zenith and azimuth angles associated with sensor_response. |

IN | sensor_pos | (Matrix) | The sensor position for each measurement block. |

GIN | period_lengths | (Vector) | Period lengths of the fit. |

GIN | no_pol_variation | (Index, Default: 0) | Set to 1 if the baseline off-set is the same for all Stokes components. |

GIN | no_los_variation | (Index, Default: 0) | Set to 1 if the baseline off-set is the same for all line-of-sights (inside each measurement block). |

GIN | no_mblock_variation | (Index, Default: 0) | Set to 1 if the baseline off-set is the same for all measurement blocks. |