#Copy crops variables into output files.

#ncks -A -v crops_herb <from file>  <to file>

VERSION=ModernRepro_ba06166

#Create new files:
cp V144x90_lc_ModernRepro_ba06166_2025-05-15.nc V144x90_lc_ModernRepro_ba06166.nc
cp V144x90_laimax_ModernRepro_ba06166_2025-05-15.nc V144x90_laimax_ModernRepro_ba06166.nc
cp V144x90_height_ModernRepro_ba06166_2025-05-15.nc V144x90_height_ModernRepro_ba06166.nc
cp V144x90_lai_ModernRepro_ba06166_2025-05-15.nc V144x90_lai_ModernRepro_ba06166.nc

#LAI max
ncks -A -v crops_herb ../../kglut_modelE/data/V144x90_EntMM16_lai_max_trimmed_scaled_ext1.nc V144x90_laimax_${VERSION}.nc

#Height
ncks -A -v hgt_crops_herb ../../kglut_modelE/data/V144x90_EntMM16_height_trimmed_scaled_ext1.nc V144x90_height_${VERSION}.nc

#LAI monthly
ncks -A -v crops_herb ../../kglut_modelE/data/V144x90_EntMM16_lai_trimmed_scaled_ext1.nc V144x90_lai_${VERSION}.nc

