-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_files.sh.old
executable file
·22 lines (21 loc) · 1.7 KB
/
get_files.sh.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#this script extracts the files required by add_cf_to_um from code.metoffice.gov.uk
#need to use FCM and be connected to MOSRS
#Probably by being logged into PUMA!
#11/Dec/2023
#Dan Hodson
#extract the common cf->stash mappings from the mip_convert tool in CDDS
fcm export fcm:cdds.x-tr/mip_convert/mip_convert/process/common_mappings.cfg
fcm export fcm:cdds.x-tr/mip_convert/mip_convert/process/HadGEM3_mappings.cfg
#extract the default UM stash from u-bg466 - GC3,1 CMIP6 Hist run
fcm export https://code.metoffice.gov.uk/svn/roses-u/b/g/4/6/6/trunk/app/um/rose-app.conf rose-app.conf.bg466
#extract the standard STASHMASTER_A file for the UM from umv10.7 as used by bg466
fcm export https://code.metoffice.gov.uk/svn/um/main/branches/pkg/Share/vn10.7_CMIP6_production_mods/rose-meta/um-atmos/HE\
AD/etc/stash/STASHmaster/STASHmaster_A
#extract the standard NEMO defined diagnostics list
fcm export https://code.metoffice.gov.uk/svn/nemo/branches/UKMO/dev_r5518_GO6_package/NEMOGCM/CONFIG/SHARED/field_def.xml
#field_def.xml has an error in the XML - a comment includes "<20cm" which confuses the XML parser
#replace "<" with "<" - the correct XML representation of "<"
sed -i 's/<20cm/\<\;20cm/g' field_def.xml
#file for that defines all the available ice diagnostics
fcm export https://code.metoffice.gov.uk/svn/cice/main/branches/pkg/Config/vn5.1.2_GSI8.1_package_branch/cice/source/ice_history_shared.F90