<jupyter_start><jupyter_text>ESGF replication request formThis form is intended to request data to be replicated from other ESGF nodes to be madelocally 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/).The specification is based on "selection files", which are then used by the synda ESGF download application. For details please see https://github.com/Prodiguer/synda/blob/master/sdt/doc/selection_file.md- a set of example selection files is accessible at: https://github.com/Prodiguer/synda/tree/master/sdt/selection/sample<jupyter_code>from dkrz_forms import form_widgets
form_widgets.show_status('form-submission')<jupyter_output><empty_output><jupyter_text>Please provide your last name and the password for this form<jupyter_code>MY_LAST_NAME = "...."   # e.gl MY_LAST_NAME = "schulz" 
#-------------------------------------------------
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.form_info<jupyter_output><empty_output><jupyter_text>Edit and store your replica selection file(s) Example selection file       %%writefile test1.txt     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"      -->this generates and stores a selection file named "test1.txt"       Provide your selection files below<jupyter_code>%%writefile selection/......txt  

%%writefile selection/......txt<jupyter_output><empty_output><jupyter_text>Check your selection fileusing the cells below you can check the coorectness of your selection filesit also privides you information on the amount of data to be transfered<jupyter_code>%%bash 

synda dump -s .....txt
#synda install -s example_selection_file_tst.txt # change file name accordingly
%%bash
synda dump -h<jupyter_output><empty_output><jupyter_text>Provide the ticket number for the replica request sent to <EMAIL><jupyter_code>sf.ticket_id = "...."  # Ticket Number in DKRZ RT ticketing system

sf.selection_files = ["...."]  # Provide names of selection files specified in next section
##to be completed<jupyter_output><empty_output><jupyter_text>Save your formyour form will be stored (the form name consists of your last name plut your keyword)<jupyter_code>form_handler.save_form(sf,"..my comment..") # edit my comment info<jupyter_output><empty_output><jupyter_text>officially submit your formthe form will be submitted to the DKRZ team to processyou also receive a confirmation email with a reference to your online form for future modifications<jupyter_code>form_handler.email_form_info(sf)
form_handler.form_submission(sf)<jupyter_output><empty_output><jupyter_text>Example synda calls  Explore Metadataexample synda calls to search and explore metadata<jupyter_code>%%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
%%bash 

synda -h<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0992234685073339, 'fraction_numerical': 0.006614897900488927, 'mean_word_length': 5.069808027923211, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 35, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '434906', 'license': 'Apache-2.0', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1071, 'n_words': 334, 'path': 'test/Templates/ESGF_replication_submission_form.ipynb', 'repo_name': 'IS-ENES-Data/submission_forms', 'size': '3494'}