I am trying to read CMORPH precipitation data from NOAA (
http://www.cpc.ncep.noaa.gov/products/janowiak/cmorph_description.html).
After many try, I was not able to manage to read the data and could not understand why. I also search on internet, and did not find any specific help.
I attach a sample file, but more file can be found in the ftp below.
https://dl.dropboxusercontent.com/u/2768652/20140205_dly-025deg_cpc%2Bcomb.Z
ftp://ftp.cpc.ncep.noaa.gov/precip/global_CMORPH/daily_025deg/
I did many try, but my what I found the more consistent was :
%%
nlat = 480;
nlon =1440;
fid=fopen(['20140205_dly-025deg_cpc+comb'],'r');
a2=fread(fid,'real*4',4,'ieee-be'); % I skip 4 because there are 2 data sets in the file
fclose all;
LonL = 0.125:0.25:360-0.125;
LatL = 59.875:-0.25:-59.875;
b=reshape(a2,[nlat nlon ]);
imagesc(LonL,LatL,b)
%%
The provider give a sample Fortran code that help me to understand how the data is organized.
ftp://ftp.cpc.ncep.noaa.gov/precip/global_CMORPH/README.cmorph.025deg_daily
The image below (found on a trusted website) should be taken as reference.
https://dl.dropboxusercontent.com/u/2768652/20140205.gif
Thank you to all of you that could help me to solve this problem...
Martin