I have been trying to read a raster file in netcdf format which I will later on sample. I need to read using the DatasetReader as float.
When I read:
ds = rasterio.open(f'netcdf:{file}:AOT_L2_Mean', dtype=rasterio.float64)
aot = ds.sample(120.57577514648, 16.003829956055)
The sampled data are still in Int16. These data are aerosol optical thickness thus only have value 0 - 5 and not 0 - 20,000. How to correctly read it as float and have values that are 0 - 5 like as I open it on QGIS?
Here is a sample data: https://drive.google.com/file/d/11ZRiLCIId1G1Dfjlc3TbvdgLOb4B8mit/view?usp=sharing