Re: [arts-users] ART question- sim 1D cloud

2022-08-23 Thread Lemke, Oliver
Hi Caroline,

The error message you're seeing suggests that your cmake version (check with 
`cmake --version`) is not recent enough. You need to have at least cmake 3.18 
installed. If your operating system does not provide a newer version and you're 
using anaconda or miniforge as your python environment, you can install a newer 
version that way (with `conda install cmake`).

If you're not using an anaconda flavor, it is also possible to install cmake 
via pip with `pip install --user cmake`. You then just have to make sure that 
you call the right cmake binary when configuring ARTS. You might have to 
provide the full path to the pip cmake version, e.g. `$HOME/.local/bin/cmake ..`

Cheers,
Oliver

> On 23 Aug 2022, at 16:17, Caroline Cox - STFC UKRI  
> wrote:
> 
> Thanks, Patrick for your reply.
> 
> I am using ARTS 2.2 as I am having problems getting the latest version to 
> run.  This is not ideal, I'd rather run the most recent version, but I am 
> finding an error message "[module] requires the language dialect "cxx17" , 
> but cmake does not know the compile flags to use to enable it.".  I've 
> updated all my compilers, but does not seem to fix this issue. If anyone has 
> any experience with this then do let me know.
> 
> Anyway, version 2.2 runs for clear-sky, so until I get the later version 
> going this is fine.  I have compiled with fortran options to enable the 
> Tmatrix code, and I can use it to produce single scattering xml files.  These 
> however, do not appear to be the format needed by the test file TestDOIT, and 
> I am getting xml syntax errors reported.  
> 
> If there are any other sources of information out there with a few more 
> detailed examples on how to use this for clouds, I would really interested to 
> see them.  
> 
> Thanks
> 
> Caroline




smime.p7s
Description: S/MIME cryptographic signature


Re: [arts-users] ART question- sim 1D cloud

2022-08-23 Thread Caroline Cox - STFC UKRI
Thanks, Patrick for your reply.

I am using ARTS 2.2 as I am having problems getting the latest version to run.  
This is not ideal, I'd rather run the most recent version, but I am finding an 
error message "[module] requires the language dialect "cxx17" , but cmake does 
not know the compile flags to use to enable it.".  I've updated all my 
compilers, but does not seem to fix this issue. If anyone has any experience 
with this then do let me know.

Anyway, version 2.2 runs for clear-sky, so until I get the later version going 
this is fine.  I have compiled with fortran options to enable the Tmatrix code, 
and I can use it to produce single scattering xml files.  These however, do not 
appear to be the format needed by the test file TestDOIT, and I am getting xml 
syntax errors reported.

If there are any other sources of information out there with a few more 
detailed examples on how to use this for clouds, I would really interested to 
see them.

Thanks

Caroline


From: Patrick Eriksson 
Sent: 20 August 2022 19:00
To: Cox, Caroline (STFC,RAL,RALSP) ; 
arts_users.mi@lists.uni-hamburg.de 
Subject: Re: [arts-users] ART question- sim 1D cloud

Caroline,

If you are using ARTS v2.2, the simplest way to obtain scattering data
in the correct format should be to use the Tmatrix code coming with
ARTS. This could need that you set some compilation flag.

Long time since I used v2.2. The method I talk about is now called
scat_data_singleTmatrix. I think it had the same name in v2.2, but I am
not sure.

Bye,

Patrick




On 2022-08-18 16:35, Caroline Cox - STFC UKRI wrote:
> Hi,
>
> I am currently using ARTS2.2 to do simulations of cloud in the
> microwave.  I have a question that I hope someone can help with.
>
> I have run though the clear sky example cases, and now I am trying to do
> a 1D simulation of cloud.  I've looked at the test DOIT example, and can
> run that example, but now I want to be able to run one for my own
> frequency range.  As I understand it, I need to produce a Single
> Scattering xml file for the appropriate frequency and
> particle\temperature ranges.  In the Test Doit example it uses the file
> 'p30f229-231T214-225r100NP-1ar1_5ice'.  How do I produce a file like
> this?  I have run the python code demo_ssp4arts to produce SSP xml
> files, but these are not an equivalent format to that needed in TestDOIT
> and I get an xml parse error.  I can't find any information about this
> in the code\documentation.
>
> Thanks
>
> Caroline
>
> This email and any attachments are intended solely for the use of the
> named recipients. If you are not the intended recipient you must not
> use, disclose, copy or distribute this email or any of its attachments
> and should notify the sender immediately and delete this email from your
> system. UK Research and Innovation (UKRI) has taken every reasonable
> precaution to minimise risk of this email or any attachments containing
> viruses or malware but the recipient should carry out its own virus and
> malware checks before opening the attachments. UKRI does not accept any
> liability for any losses or damages which the recipient may sustain due
> to presence of any viruses.
>

This email and any attachments are intended solely for the use of the named 
recipients. If you are not the intended recipient you must not use, disclose, 
copy or distribute this email or any of its attachments and should notify the 
sender immediately and delete this email from your system. UK Research and 
Innovation (UKRI) has taken every reasonable precaution to minimise risk of 
this email or any attachments containing viruses or malware but the recipient 
should carry out its own virus and malware checks before opening the 
attachments. UKRI does not accept any liability for any losses or damages which 
the recipient may sustain due to presence of any viruses.



Re: [arts-users] ART question- sim 1D cloud

2022-08-23 Thread Patrick Eriksson

Caroline,

Yes, the best would be if you could switch to the latest ARTS version. I 
assume someone else can sort out your compiler problem.


Realised that I had the source code for ARTS 2.2 (but no running 
version) and had a quick look. Things have changed more around Tmatrix 
than I remembered. If you still want to generate scattering data for 
arts 2.2, look at tmatrix/TestTMatrixSSD.arts


If I get it right, you have to apply Extract on scat_data_array. That 
should give you data in the format of SingleScatteringData.


But maybe better to focus on the switch to latest ARTS ...

Bye,

Patrick


On 2022-08-23 16:17, Caroline Cox - STFC UKRI wrote:

Thanks, Patrick for your reply.

I am using ARTS 2.2 as I am having problems getting the latest version 
to run.  This is not ideal, I'd rather run the most recent version, but 
I am finding an error message "[module] requires the language dialect 
"cxx17" , but cmake does not know the compile flags to use to enable 
it.".  I've updated all my compilers, but does not seem to fix this 
issue. If anyone has any experience with this then do let me know.


Anyway, version 2.2 runs for clear-sky, so until I get the later version 
going this is fine.  I have compiled with fortran options to enable the 
Tmatrix code, and I can use it to produce single scattering xml files.  
These however, do not appear to be the format needed by the test file 
TestDOIT, and I am getting xml syntax errors reported.


If there are any other sources of information out there with a few more 
detailed examples on how to use this for clouds, I would really 
interested to see them.


Thanks

Caroline


*From:* Patrick Eriksson 
*Sent:* 20 August 2022 19:00
*To:* Cox, Caroline (STFC,RAL,RALSP) ; 
arts_users.mi@lists.uni-hamburg.de 

*Subject:* Re: [arts-users] ART question- sim 1D cloud
Caroline,

If you are using ARTS v2.2, the simplest way to obtain scattering data
in the correct format should be to use the Tmatrix code coming with
ARTS. This could need that you set some compilation flag.

Long time since I used v2.2. The method I talk about is now called
scat_data_singleTmatrix. I think it had the same name in v2.2, but I am
not sure.

Bye,

Patrick




On 2022-08-18 16:35, Caroline Cox - STFC UKRI wrote:

Hi,

I am currently using ARTS2.2 to do simulations of cloud in the 
microwave.  I have a question that I hope someone can help with.


I have run though the clear sky example cases, and now I am trying to do 
a 1D simulation of cloud.  I've looked at the test DOIT example, and can 
run that example, but now I want to be able to run one for my own 
frequency range.  As I understand it, I need to produce a Single 
Scattering xml file for the appropriate frequency and 
particle\temperature ranges.  In the Test Doit example it uses the file 
'p30f229-231T214-225r100NP-1ar1_5ice'.  How do I produce a file like 
this?  I have run the python code demo_ssp4arts to produce SSP xml 
files, but these are not an equivalent format to that needed in TestDOIT 
and I get an xml parse error.  I can't find any information about this 
in the code\documentation.


Thanks

Caroline

This email and any attachments are intended solely for the use of the 
named recipients. If you are not the intended recipient you must not 
use, disclose, copy or distribute this email or any of its attachments 
and should notify the sender immediately and delete this email from your 
system. UK Research and Innovation (UKRI) has taken every reasonable 
precaution to minimise risk of this email or any attachments containing 
viruses or malware but the recipient should carry out its own virus and 
malware checks before opening the attachments. UKRI does not accept any 
liability for any losses or damages which the recipient may sustain due 
to presence of any viruses.




This email and any attachments are intended solely for the use of the 
named recipients. If you are not the intended recipient you must not 
use, disclose, copy or distribute this email or any of its attachments 
and should notify the sender immediately and delete this email from your 
system. UK Research and Innovation (UKRI) has taken every reasonable 
precaution to minimise risk of this email or any attachments containing 
viruses or malware but the recipient should carry out its own virus and 
malware checks before opening the attachments. UKRI does not accept any 
liability for any losses or damages which the recipient may sustain due 
to presence of any viruses.




Re: [arts-users] ART question- sim 1D cloud

2022-08-20 Thread Patrick Eriksson

Caroline,

If you are using ARTS v2.2, the simplest way to obtain scattering data 
in the correct format should be to use the Tmatrix code coming with 
ARTS. This could need that you set some compilation flag.


Long time since I used v2.2. The method I talk about is now called 
scat_data_singleTmatrix. I think it had the same name in v2.2, but I am 
not sure.


Bye,

Patrick




On 2022-08-18 16:35, Caroline Cox - STFC UKRI wrote:

Hi,

I am currently using ARTS2.2 to do simulations of cloud in the 
microwave.  I have a question that I hope someone can help with.


I have run though the clear sky example cases, and now I am trying to do 
a 1D simulation of cloud.  I've looked at the test DOIT example, and can 
run that example, but now I want to be able to run one for my own 
frequency range.  As I understand it, I need to produce a Single 
Scattering xml file for the appropriate frequency and 
particle\temperature ranges.  In the Test Doit example it uses the file 
'p30f229-231T214-225r100NP-1ar1_5ice'.  How do I produce a file like 
this?  I have run the python code demo_ssp4arts to produce SSP xml 
files, but these are not an equivalent format to that needed in TestDOIT 
and I get an xml parse error.  I can't find any information about this 
in the code\documentation.


Thanks

Caroline

This email and any attachments are intended solely for the use of the 
named recipients. If you are not the intended recipient you must not 
use, disclose, copy or distribute this email or any of its attachments 
and should notify the sender immediately and delete this email from your 
system. UK Research and Innovation (UKRI) has taken every reasonable 
precaution to minimise risk of this email or any attachments containing 
viruses or malware but the recipient should carry out its own virus and 
malware checks before opening the attachments. UKRI does not accept any 
liability for any losses or damages which the recipient may sustain due 
to presence of any viruses.