# Demonstrate the GIBS API to create SatCam images compatible with record 22998 (Terra, 2018-07-13, 18:49:51Z, Boise ID) date="2018-07-13" lon="-116.20" lat="43.61" latmin=$(echo $lat"-1.08" | bc) latmax=$(echo $lat"+1.08" | bc) lonmin=$(echo $lon"-0.72" | bc) lonmax=$(echo $lon"+0.72" | bc) extent=$lonmin","$latmin","$lonmax","$latmax width=640 height=960 product="VIIRS_SNPP_DayNightBand_ENCC" curl "https://gibs.earthdata.nasa.gov/image-download?TIME=${date}&extent=${extent}&epsg=4326&layers=${product}&opacities=1&worldfile=false&format=image/jpeg&width=${width}&height=${height}" > viirs_snpp_dnb.jpg product="MODIS_Terra_CorrectedReflectance_TrueColor" curl "https://gibs.earthdata.nasa.gov/image-download?TIME=${date}&extent=${extent}&epsg=4326&layers=${product}&opacities=1&worldfile=false&format=image/jpeg&width=${width}&height=${height}" > modis_terra_truecolor.jpg product="MODIS_Aqua_CorrectedReflectance_TrueColor" curl "https://gibs.earthdata.nasa.gov/image-download?TIME=${date}&extent=${extent}&epsg=4326&layers=${product}&opacities=1&worldfile=false&format=image/jpeg&width=${width}&height=${height}" > modis_aqua_truecolor.jpg product="VIIRS_SNPP_CorrectedReflectance_TrueColor" curl "https://gibs.earthdata.nasa.gov/image-download?TIME=${date}&extent=${extent}&epsg=4326&layers=${product}&opacities=1&worldfile=false&format=image/jpeg&width=${width}&height=${height}" > viirs_snpp_truecolor.jpg