From 5656de9ab41cdab394b328e57e0666af15b6a70f Mon Sep 17 00:00:00 2001 From: doblerone Date: Fri, 31 Jan 2020 10:02:09 +0000 Subject: [PATCH] Seperate NetCDF attribute changes. --- ncatted.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ncatted.sh diff --git a/ncatted.sh b/ncatted.sh new file mode 100644 index 0000000..5cf4b70 --- /dev/null +++ b/ncatted.sh @@ -0,0 +1,13 @@ +################################### +## Adjust NetCDF header information +################################### +for file in /lustre/storeB/users/andreasd/postclim/3DBC/*/???C/merged/*nc +do ncatted -O -a summary,global,o,c,"Post-processing the bias-corrected data used in Klima i Norge 2100 (see http://data.nve.no/report/climate_hydrological_projections_Norway.pdf) using the 3D bias-correction method proposed by Mehrotra and Sharma (2019). The 3DBC method corrects for temporal, spatial and inter-variable inconsistencies introduced by quantile mapping. seNorge_2018 daily precipitation and temperature data has been used as the reference data set." $file +ncatted -O -a creator_name,global,o,c,"Andreas Dobler" $file +ncatted -O -a creator_email,global,o,c,"andreas.dobler@met.no" $file +ncatted -O -a references,global,o,c,"Mehrotra and Sharma (2019): A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate, Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270" $file +ncatted -O -a institution,global,o,c,"The Norwegian Meteorological Institute (MET Norway)" $file +ncatted -O -a keywords,global,o,c,"Climate, Meteorology, Precipitation projections, Gridded data, Bias-adjustment, Empirical quantile mapping, 3DBC, Norway" $file +ncatted -O -a date_created,global,o,c,"Autumn 2019" $file +ncatted -O -h -a history,global,d,c,"" $file +done