NorESMhub / CAM

Community Atmosphere Model including CAM6-Nor branches
1 stars 20 forks source link

Inputdata: Aerotab files #3

Closed adagj closed 4 years ago

adagj commented 4 years ago

the wget protocal is not able to download the content of the AeroTab folder. we have to name the file names to provide a list of the files (56 files) to be downloaded. we suggest to group the various files in accordance to: aerocomk, aerodryk, kcomp, logntil, lwkcomp - which requires some knowledge of the code

We also need to be clear on which files are used by the model. All files are copied, but not necessarily used which is a waste of resources.

annefou commented 4 years ago

@Kirkevag This is for you...

Kirkevag commented 4 years ago

These files are always used (see https://wiki.met.no/_media/noresm/aerotab-slides.pdf): a) kcompN.out and lwkcompN,out where N=0,10 logntilpN.out, where N=1,10

b) In addition to a) these files are used when the model is configured to ouput AerCom diagnostics; aerocomN.out and aerodryN.out, where N=0,10

In addition to a) (and b if run with AeroCom), this file is needed when the model is configured to run with the MACv2 SP (prescribed anthropogenic) aerosols: MACv2.0-SP_v1.nc

Kirkevag commented 4 years ago

I think all the files should be downloaded. The file names are always the same, but the directory name may differ from version to version, and can be specified in the user_nl_cam file, e.g. as

aerotab_table_dir = '/work/shared/noresm/inputdata/noresm-only/atm/cam/camoslo/AeroTab-light_29jan20'

j34ni commented 4 years ago

I think I found a way to download the entire directory without specifying the name of the individual files which are inside.

In the process of testing it works

j34ni commented 4 years ago

It works!

The trick is to simply add the OS separator (that is “/”) after the name of the directory in the namelist to allow check_inputdata to switch from “server.getfile” to “server.getdirectory”.

For example the name of the aerotab_table_dir folder in components/cam/bld/namelist_files/namelist_defaults_cam.xml has to be written as:

\noresm-only/atm/cam/camoslo/AeroTab_8jun17/

I did my tests with all the inputdata needed for --compset 1850_CAM60%NORESM_CLM50%SP_CICE%PRES_DOCN%DOM_MOSART_SGLC_SWAV --res f19_tn14 copied in http://ns2345k.web.sigma2.no/inputdata/ and with these lines added in cime/config/cesm/config_inputdata.xml: \ \wget \

http://ns2345k.web.sigma2.no/inputdata
\

Kirkevag commented 4 years ago

Great!

j34ni commented 4 years ago

This could be fixed once and for all by adding a / after AeroTab_8jun17 at line 1946 in https://github.com/NorESMhub/CAM/blob/cam_cesm2_1_rel_05-Nor/bld/namelist_files/namelist_defaults_cam.xml