I have a GrADS formatted (Raw Binary) file with a control file as follows:
dset data.bin
undef -999.
options template
title Example data
xdef 720 linear 0.25 0.50
ydef 360 linear -89.75 0.50
tdef 1 linear 00Z01JAN1990 1yr
zdef 1 linear 1 1
vars 1
dat 0 99 Estimated data
ENDVARS
Does anyone have an idea of how to convert or reformat it into a common 2D raster file format using R or Python?
The expected output is a 2D map (which is usually as a raster file or 2D array) something like this map: Example of output