I was pulling some Himawari-8 images from RAMMB here and wanted to geo-reference the high res 5500 x 5500 images. I found a related question and answer using GDAL here which does work fine but I was hoping someone more familiar with GDAL and Rasterio could show me how to do the equivalent in Rasterio so I can write it fully in Python (I want to convert a lot of these images).
Here's an example of the working GDAL commands I wish to translate to Rasterio (slightly adapted from the linked question):
gdal_translate -a_srs "+proj=geos +h=35785863 +a=6378137.0 +b=6356752.3 +lon_0=140.7 +no_defs" -a_ullr -5500000 5500000 5500000 -5500000 full_disk_ahi_true_color_20210113014000.jpg temp.tif
gdalwarp -overwrite -t_srs "+proj=latlong +ellps=WGS84 +pm=140.7" -wo SOURCE_EXTRA=100 temp.tif Himawari8.tif
I'm hoping to get a Python snippet using Rasterio that generates the same geotif.