Created
June 28, 2022 12:44
-
-
Save tim-salabim/586674a30c3a197fe7f95f3b1d944cf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
url="https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20220608/conus/hrrr.t00z.wrfsfcf00.grib2" | |
bnds="-b 62 -b 77 -b 78 -b 79 -b 9 -b 71 -b 74 -b 75 -b 107 -b 112 -b 150 -b 105 -b 106 -b 124 -b 123 -b 126 -b 125" | |
ext="-2097264.0 -2088264.0 713109.3 722109.3" | |
dmsn="9 9" | |
prj="EPSG:9001" | |
ofl="/home/tim/Downloads/novsi.tif" | |
gdalwarp \ | |
-s_srs $prj \ | |
-te $ext \ | |
-ts $dmsn \ | |
-r "bilinear" \ | |
-overwrite \ | |
$url \ | |
$ofl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
time bash /home/tim/Downloads/gdal_url.sh
Creating output file that is 9P x 9L.
Processing https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20220608/conus/hrrr.t00z.wrfsfcf00.grib2 [1/1] : 0Using internal nodata values (e.g. 9999) for image https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20220608/conus/hrrr.t00z.wrfsfcf00.grib2.
Copying nodata values from source https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20220608/conus/hrrr.t00z.wrfsfcf00.grib2 to destination /home/tim/Downloads/novsi.tif.
Warning 1: /home/tim/Downloads/novsi.tif, band 117: Setting nodata to 9999 on band 117, but band 1 has nodata at -123456.789000000004. The TIFFTAG_GDAL_NODATA only support one value per dataset. This value of 9999 will be used for all bands on re-opening
Warning 1: /home/tim/Downloads/novsi.tif, band 151: Setting nodata to 9999 on band 151, but band 1 has nodata at -123456.789000000004. The TIFFTAG_GDAL_NODATA only support one value per dataset. This value of 9999 will be used for all bands on re-opening
Warning 1: /home/tim/Downloads/novsi.tif, band 167: Setting nodata to 9999 on band 167, but band 1 has nodata at -123456.789000000004. The TIFFTAG_GDAL_NODATA only support one value per dataset. This value of 9999 will be used for all bands on re-opening
...10...20...30...40...50...60...70...80...90...100 - done.
real 1m47,893s
user 1m34,052s
sys 0m3,182s