Skip to content

Commit 32b6740

Browse files
committed
Add comment and references to BIOS variables
1 parent e9b70aa commit 32b6740

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: regrid_aus_05x05_to_005x005.sh

+16
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,22 @@ ncks --overwrite --no-alphabetize -x -v c4frac \
446446
echo "Append c4frac variable to output file"
447447
ncks -A -v c4frac c4frac.nc ${output_file}
448448

449+
bios_vars_regex='^clay$|^sand$|^ssat$|^bch$|^css$|^hyds$|^mvg$|^sfc$|^sucs$|^c4frac$|^rhosoil$|^silt$|^swilt$'
450+
451+
echo "Add provenance information to BIOS soil parameters"
452+
att_nm='comment'
453+
var_nm=${bios_vars_regex}
454+
mode='o'
455+
att_type='c'
456+
att_val='Data provided from the Atlas of Australian Soils (digital).'
457+
ncatted -h -a "${att_nm}","${var_nm}","${mode}","${att_type}","${att_val}" tmp.nc
458+
att_nm='references'
459+
var_nm=${bios_vars_regex}
460+
mode='o'
461+
att_type='c'
462+
att_val='https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889'
463+
ncatted -h -a "${att_nm}","${var_nm}","${mode}","${att_type}","${att_val}" tmp.nc
464+
449465
echo "Clean up"
450466
rm clay.nc sand.nc ssat.nc bch.nc css.nc hyds.nc mvg.nc sfc.nc sucs.nc c4frac.nc rhosoil.nc silt.nc swilt.nc
451467

0 commit comments

Comments
 (0)