Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-15 Thread Jana Mendrok
Dear Pengwang, please take a look at the workspace variable propmat_clearsky_field (and the workspace method propmat_clearsky_fieldCalc, that calculates this variables). Could they probably provide the output you need? abs_coef and its *Calc method are obsolete and not supported anymore. Best wi

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-15 Thread Pengwang Zhai
Thanks, Jana. Too bad that the only arts feature that I am using is now obsolete. Now given propmat_clearsky_field, can I somehow obtain abs_coeff from it? I used the following commands to create abs_coeff_user, which is the absorption coefficients per specie, Tensor3Create(abs_coeff_user) Re

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-15 Thread Jana Mendrok
Hi, what do you intend to do with abs_coeff_user? Do you really process this further within ARTS itself? only then it makes sense to process propmat_clearsky_field into a Tensor3*, i think. Else, I strongly recommend to do any re-shaping / reduction outside of ARTS; other programming languages are

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-15 Thread Pengwang Zhai
Thanks, Jana. > Note that for deriving abs_coef for this, you need to sum up over all species > (i.e. over the 0th dimension of propmat_clearsky_field. This is exactly what I wanted to do within arts to get “abs_coef”. If it is not possible with arts, I will use matlab to do this. The three d

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Richard Larsson
Dear Pengwang Zhai, I think we still have what you are looking for in ARTS. The variable you are actually interested in is not abs_coef, but abs_coef_per_species. The way to create this is to first run abs_xsec_agenda and then abs_coefCalcFromXsec. I think your code should only change from: ab

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Pengwang Zhai
Thanks, Richard. I tried your suggestion. Unfortunately, it does not work. The error message is: arts TestAbsCoeff.arts Version: arts-2.2.57 (compiled Fri Feb 12 21:05:27 2016) Executing Arts {… … … } This run took 11.10s (11.07s CPU time) Run-time error in controlfile: TestAbsCoeff.arts Run-t

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Richard Larsson
Dear Pengwang, Yeah, you have to copy abs_species to abs_species active. I forgot about that. The Copy( out, in ) function does that so add Copy( abs_species active, abs_species) before you call the xsec agenda. To explain the reasoning for the active tag: Not all species can be handled by t

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Richard Larsson
Erratum, Sorry, this was wrong of me. You have to create an ArrayOfIndex of the active species. So you need to load an ArrayOfIndex the length of abs_species and fill it with 0,1,2,3,4,5,...n-1, where n is the number of species you are using. Sorry about the spam, //Richard 2016-02-16 14:31 GM

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Pengwang Zhai
Hi, Richard, Thanks very much. Now it still does not run. See: arts TestAbsCoeff.arts Executing ARTS. Command line: /ARTS/arts-2.2/build/src/arts TestAbsCoeff.arts Version: arts-2.2.57 (compiled Fri Feb 12 21:05:27 2016) This run took 0.03s (0.01s CPU time) Run-time error in controlfile: TestAb

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Pengwang Zhai
Thanks very much, Richard. I am not sure how to do this then. I would appreciate it very much if you could provide a template. I need abs_coef, which is the total absorption coefficients for all gas species. Then I mix the gas absorption with aerosol and cloud scattering properties and use t

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Jana Mendrok
Hi, I tried different software package for this purpose, and found ARTS is one > of the best in terms of usability. I am not sure what was the motivation > to obsolete abs_coef, which I believe is one of the most important > quantities in radiative transfer. Is there any way to keep it in the >

Re: [arts-users] calculate absorption coefficients from abs_coefCalc

2016-02-16 Thread Pengwang Zhai
Thanks, Jana. Your email explains much of my confusions now. I will use propmat_clearsky_field and calculate abs_coef from it using other scrips, matlab, for example. The only problem is the burden of figuring out a 7 dimension tensor text file layout, but I will get there eventually. Thanks