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/).
Attention: To be able to check your data replication requests before submission it is recommended to have a working [synda replication tool](http://prodiguer.github.io/synda/ installation available. If you use the hosted submission form at https://data-forms.dkrz.de:8080 this is the case by default ..
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 [ ]:
# Evaluate this cell to identifiy your form
from dkrz_forms import form_widgets, form_handler, checks
form_infos = form_widgets.show_selection()
In [ ]:
# Evaluate this cell to generate your personal form instance
form_info = form_infos[form_widgets.FORMS.value]
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.txt","cmip5_smhi_rcp_0.txt"]
form.selection_files = ["...","..."] # strings in a list
#---- generation of input fields for your files
text_w = form_widgets.get_selection_files(form.selection_files)
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 = utils.get_file_list(form.selection_files)
print form.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