#Converts seNorge precipitation field from UTM33to latlon in WGS84. #Used in Masterthesis by Aina Johannessen in 2018 on internal Norwegian Meterological institutes server. #------------------------------------------------------------------- #------------------------------------------------------------------- #Using fimex, which is an internal met product and only works inside a met secure system. #Fimex is the only one that could manage seNorges UTM33 to WGS84. Did not manage with neither cdo or ncl. #Fimex commandline retrived from Cristian Lussana (developer of seNorge) #------------------------------------------------------------------ for origdat in 20160925 20160926 20160927 20160928 20160929 20160930; do for orighour in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23; do makelatlon="fimex --input.file=../orig1h/seNorge_v2_0_PREC1h_grid_${origdat}${orighour}_${origdat}${orighour}.nc --output.file=../latlon1h/WGS84seNorge_v2_0_PREC1h_grid_${origdat}${orighour}_${origdat}${orighour}.nc --output.type=\"nc4\" --interpolate.method=\"nearestneighbor\" --interpolate.projString=\"+proj=longlat +datum=WGS84\" --interpolate.xAxisValues=\"-1.3091, -1.28077185929648,...,32.5147\" --interpolate.yAxisValues=\"72.0947, 72.08544912847,...,57.7651\" --interpolate.yAxisUnit=\"degree\" --interpolate.xAxisUnit=\"degree\"" echo $makelatlon #Display command eval $makelatlon #Runs the command done done # #