Hi Hugh, Since ARTS is strongly typed, a Numeric cannot be assigned directly to a Matrix.
But you can extract it into a temporary variable and then use MatrixSetConstant: Arts2 { VectorCreate(my_loses) VectorSet(my_loses, [180,170,160,150,140,130]) Print(my_loses) IndexSet(ybatch_start, 0) IndexSet(ybatch_n,6) NumericCreate(one_los) AgendaSet(ybatch_calc_agenda){ Extract(one_los,my_loses,ybatch_index) MatrixSetConstant(sensor_los, 1, 1, one_los) Print( ybatch_index, 0 ) Print( sensor_los, 0 ) ## Actual calculations including iyCalc go here Touch(y) Touch(y_aux) Touch(jacobian) } ybatchCalc } Hope this helps. Cheers, Oliver > On 17 Jul 2019, at 19:20, PUMPHREY Hugh <hugh.pumph...@ed.ac.uk> wrote: > > VectorCreate(my_loses) > VectorSet(my_loses, [180,170,160,150,140,130]) > Print(my_loses) > IndexSet(ybatch_n,7) > > AgendaSet(ybatch_calc_agenda){ > Extract(sensor_los,my_loses,ybatch_index) > Print( ybatch_index, 0 ) > Print( sensor_los, 0 ) > ## Actual calculations including iyCalc go here > }
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ arts_users.mi mailing list arts_users.mi@lists.uni-hamburg.de https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi