# Publishing single band rasters This simple AIKP is used for publishing single band rasters in TIFF/TIF file format to webUI, with additional option of determining domain minimum and maximum and selecting color map. ## Prerequisites - rsync Region of Interest (ROI - as GeoJSON or KML) to home folder - rsync single band raster for publishing to home folder ## Constraints - input raster has to be in Float32 - preferably in EPSG:4326 or EPSG code that GDAL can read ## CLI workflow ``` bash create -n project_name -a roi add -n roi_name ``` ``` bash task create -t ocli.aikp.index -r roi_name -n task_name -a ``` - optional but recommended ``` bash task set friendly_name="tree/structure/in/webUI/" task set attribution="user chosen text that would appear in bottom right of screen in webUI" task set color_map="user choice" ``` options: gray_linear, space, stripes, inverted_stripes, blue_to_red, red_to_blue, yellow_to_brown, brown_to_green, sunrise, sunset, NDVI, SAVI, EVI, inverted_NDWI, NDWI, copper, pink, haze, red_to_gray, hsv, parula, green-red-blue-white, rainbow, blue-green-red-yellow, aqua _flame, standard_gamma, decrease_hue, increase_hue, accent, saturn, supernova, peanut_butter_and_jerry, hot_metal ``` bash task set custom_index_path= ``` ``` bash task make recipe ``` ``` bash task template link ``` ``` bash task template set-domain ``` - optional if user wants to change domain minimum and maximum manually ``` bash task set domain_min=float task set domain_max=float ``` ``` bash task make recipe --override ``` ``` bash ai makecog full ``` - additional options that can be added `--nodata 0` = set no data value of created COG `--overview-resample ...` = choice of resampling algorithms, options: nearest, average (DEFAULT), bilinear, cubic, cubicspline, lanczos ``` ai makegeojson --friendly-name="+final addition to friendly name set above" ``` - additional options that can be added `--cos-key="+_addition"` = useful in case same task is reused for publishing multiple rasters, so each one will have different key in COS ``` bash ai upload ai publish post ```