#3014 closed help (answered)

running JULES with one selected fluxnet site

Reported by: awright Owned by: pmcguire
Component: JULES Keywords: fluxnet , jules
Cc: Platform: JASMIN
UM Version:

Description

Hello Patrick,

How would I run a suite with only one selected FLUXNET site? In my FH_Std2 suite, in rose-suite.conf, e.g. I put:
'IT_Col', and try to run the model. It does not work and I get this error:
[INFO] install: suite.rc
[INFO] REGISTERED FH_Std2 → /home/users/azin/cylc-run/FH_Std2
[FAIL] cylc validate -o /tmp/tmp5J0Kkg —strict FH_Std2 # return-code=1, stderr=
[FAIL] Jinja2Error:
[FAIL] File "<unknown>", line 134, in template
[FAIL] TemplateSyntaxError?: expected token ',', got 'site'
[FAIL] Context lines:
[FAIL]
[FAIL] [runtime]
[FAIL]
[FAIL] {% include 'site/suite.rc.'+ LOCATION %} ←- Jinja2Error

I have tried other things too, like setting the site selection in suite.rc to the name of the site and then typing SUBSET = selection, in rose-suite.conf.

Would you know how to do it?

All the best,

Azin

Change History (5)

comment:1 Changed 12 months ago by pmcguire

  • Status changed from new to accepted

Hi Azin
I am not really sure what you did when you put 'IT_Col' into FH_Std2/rose-suite.conf. Did you set SUBSET='IT_Col'? Or did you set LOCATION='IT_Col'? I don't think either of those will work. Or did you try something else?
Patrick

comment:2 Changed 12 months ago by pmcguire

Hi Azin:
Did you try setting in your rose-suite.conf file (with single quotes around selection)?:
SUBSET= 'selection'
You didn't type the single quotes in your query, but maybe you did when you actually did this.

When you do this, you will also see that in your suite.rc file, that it uses the logic:

{%- for site in site_info %}
{%- if SUBSET == 'all' or SUBSET == site or ( SUBSET == 'med') or ( SUBSET == 'lba'\\
 and 'LBA' in site ) or ( SUBSET == 'peg' and not 'LBA' in site ) or ( SUBSET == 'mead'\\
 and 'US_Ne' in site ) or ( SUBSET == 'china' and site[0:2] == 'CN') or \\
( SUBSET == 'wetland' and site in wetland_sites ) or ( SUBSET == 'selection' and \\
site in selected_sites )%}

This says that site needs to be in the selected_sites list.
So if you look for the selected_sites list in your suite.rc file, it says:

 {%- set selected_sites = ['LBA_K67']
     %}

So you can change this to read instead:

 {%- set selected_sites = ['IT_Col']
     %}

Does it run properly when you do that?
Patrick

comment:3 Changed 12 months ago by awright

Thank you Patrick,

As you said, by having the SUBSET = 'selection' in rose-suite.conf and setting the set selected-sites= IT_Col? in suite.rc, I could run JULES for one site only.

Best wishes,

Azin

comment:4 Changed 12 months ago by pmcguire

Dear Azin
Awesome! I am happy to hear that you can run JULES for single FLUXNET sites now.
Patrick

comment:5 Changed 12 months ago by pmcguire

  • Resolution set to answered
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.