This form is intended to request data to be replicated from other ESGF nodes to be made locally available in the DKRZ CMIP data pool.
The specification of a requested data collection is based on the search facets describing the data collection. These facets correspond directly to the search categories you use to find data in one of the ESGF portals (e.g. https://esgf-data.dkrz.de/).
To be able to automate the data replication process as much as possible we recommend the following steps, which are supported in this form. In case you have problems with this approach please contact us directly via mail (esgf-replication 'at' dkrz.de).
General remarks:
In [ ]:
MY_LAST_NAME = "....." # e.gl MY_LAST_NAME = "schulz"
#------instantiate your replication form --------------------
from dkrz_forms import form_handler, form_widgets
form_info = form_widgets.check_pwd(MY_LAST_NAME)
sf = form_handler.init_form(form_info)
form = sf.sub.entity_out.report
Please provide the facet values charaterizing your data request. You can find the appropriate settings either
an example seclection file looks like:
project="CMIP5"
model="CNRM-CM5 CSIRO-Mk3-6-0"
experiment="historical amip"
ensemble="r1i1p1"
variable[atmos][mon]="tasmin tas psl"
variable[ocean][fx]="areacello sftof"
variable[land][mon]="mrsos,nppRoot,nep"
variable[seaIce][mon]="sic evap"
variable[ocnBgchem][mon]="dissic fbddtalk"
You can store your request using the cells below by adding %%writefile seclection/myfilename.txt
as a first line. Please select "myfilenamee" carefully to be able to remember later the dataset which this file charecterizes e.g. %%writefile erich_cmip5_atmos_vars_for_exp1.txt
In [ ]:
# provide the list of selection file names (.txt files)
# detailed, characterizing file names prefered ..
# e.g. sel_file_list = ["cmip5_mpi-m_rcp_1","cmip5_smhi_rcp_0"]
sel_file_list = ["...","..."] # strings in a list
#---- generation of input fields for your files
text_w = form_widgets.get_selection_files(sel_file_list)
form_widgets.gen_text_widgets(text_w)
In [ ]:
%%bash
# The following command searches for data sets matching your request
synda search -s ./selection/your_selection_file_to_be_checked.txt
# other helpfull commands
# synda check -s ./selection/...
# synda -h
# Final check always should be done with the following command
# - it shows the volume of data associated to your request
# synda show -s ./selection/...
by evaluating the cell below, the file list associated to your request at this time is generated. In case this fails please first try to debug your request using the cells above or by directly installing synda at your site. If problems persist please continue with the form submission below - we will try to resolve your request by direct interaction with our data managers ..
In [ ]:
form.file_list = dkrz_forms.utils.get_file_list(form.sel_file_list)
In [ ]:
form_handler.save_form(sf,"..my comment..") # add a comment to remember this specific
form_handler.email_form_info(sf) # do not change
form_handler.form_submission(sf) # do not change
In [ ]:
%%bash
# synda dump tas GFDL-ESM2M -F line -f -C size,filenam
synda variable tas
# synda search cmip5 MOHC HadGEM2-A amip4
# synda search cmip5 mon atmos -l 1000xCO2 mon atmos Amon r1i1p1
In [ ]:
%%bash
synda -h
In [ ]:
%%bash
synda check selection -s selection/test.txt