Last active
June 28, 2022 12:45
-
-
Save tim-salabim/9c71c89e27ed7ba1228639a5982cc8de 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="/vsicurl/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_vsiurl.sh
Creating output file that is 9P x 9L.
Processing /vsicurl/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 /vsicurl/https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20220608/conus/hrrr.t00z.wrfsfcf00.grib2.
Copying nodata values from source /vsicurl/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 8m38,403s
user 2m7,462s
sys 0m51,741s