Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Last active February 8, 2025 03:13
Show Gist options
  • Save mdsumner/2de48b7dc961559ff3c86e6d928581ca to your computer and use it in GitHub Desktop.
Save mdsumner/2de48b7dc961559ff3c86e6d928581ca to your computer and use it in GitHub Desktop.

Rely on the geolocation arrays and GDAL warp:

gdalwarp -te -5500000 -5500000 5500000 5500000 -t_srs "+proj=geos +lon_0=140.7 +h=35785863 +x_0=0 +y_0=0 +a=6378137 +b=6356752.3 +units=m +no_defs" vrt://AHI-CHGT_v1r1_h09_s202403040030204_e202403040039398_c202403040047497.nc?sd_name=CldTopTemp test.vrt

or, assign the grid and ignore the geolocation arrays (in this case we also need GDAL_NETCDF_BOTTOMUP=NO)

"vrt://AHI-CHGT_v1r1_h09_s202403040030204_e202403040039398_c202403040047497.nc?sd_name=CldTopTemp&a_srs=+proj=geos +lon_0=140.7 +h=35785863 +x_0=0 +y_0=0 +a=6378137 +b=6356752.3 +units=m +no_defs&a_ullr=-5500000,5500000,5500000,-55000000"

image

file is at

https://noaa-himawari9.s3.amazonaws.com/AHI-L2-FLDK-Clouds/2024/03/04/0030/AHI-CHGT_v1r1_h09_s202403040030204_e202403040039398_c202403040047497.nc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment