function result = make_gen_maps(uid)
pkg load image
UID = uid;

RVIFileName = strcat(uid, "rvi.png");
try
	RVI = imread(RVIFileName);
catch
	aaaa = 1
end

try
	RVI = single(RVI);
	RVI = RVI/255;
	RVI_max = max(max(RVI))
		
	index_new = RVI;
	imgCMP = gen_map1_img(index_new);
	filename = strcat(UID,"/rvi")
	filename=strcat(filename,".png");
	imwrite(uint8(imgCMP),filename);
	imgCMP = gen_map2_img(index_new);
	filename = strcat(UID,"/rvi_cmap2")
	filename=strcat(filename,".png");
	imwrite(uint8(imgCMP),filename);
catch
	aa = 1
end

RVIFileName = strcat(uid, "dem.png");
try
	RVI = imread(RVIFileName);
catch
	aaaa = 1
end

try
	RVI = single(RVI);
	RVI = RVI/255;
	RVI_max = max(max(RVI))
		
	index_new = RVI;
	imgCMP = gen_map1_img(index_new);
	filename = strcat(UID,"/dem")
	filename=strcat(filename,".png");
	imwrite(uint8(imgCMP),filename);
	imgCMP = gen_map2_img(index_new);
	filename = strcat(UID,"/dem_cmap2")
	filename=strcat(filename,".png");
	imwrite(uint8(imgCMP),filename);
catch
	aa = 1;

end
end