Folks,
I need help on "Unable to allocate memory: to make array." After reading the data from *.h5 data, I am getting this "Unable to allocate memory: to make array." error. Sometimes it is working; I mean without error, but most of the time I am getting the error...
My code is like this:
s = h5_parse(file)
fileID = h5f_open(file)
i_HH = h5d_open(fileID, '/bands/i_HH')
i_HV = h5d_open(fileID, '/bands/i_HV')
i_VV = h5d_open(fileID, '/bands/i_VV')
q_HH = h5d_open(fileID, '/bands/q_HH')
q_HV = h5d_open(fileID, '/bands/q_HV')
q_VV = h5d_open(fileID, '/bands/q_VV')
incident = h5d_open(fileID, '/tie_point_grids/incident_angle')
lat = h5d_open(fileID, '/tie_point_grids/latitude')
lon = h5d_open(fileID, '/tie_point_grids/longitude')
;+++++++++++++++++++++++++++++++++++++++
i_HH = h5d_read(i_HH)
i_HV = h5d_read(i_HV)
i_VV = h5d_read(i_VV)
q_HH = h5d_read(q_HH)
q_HV = h5d_read(q_HV)
q_VV = h5d_read(q_VV)
incident = h5d_read(incident)
lat = h5d_read(lat)
lon = h5d_read(lon)
range_spacing = s.(8).(6).range_spacing.(3)
azimuth_spacing = s.(8).(6).azimuth_spacing.(3)
H5F_CLOSE, fileID ; Close all
;print, range_spacing, azimuth_spacing
;+++++++++++++++++++++++++++++++++++++++reading is finished
dims=size(i_HH, /DIMENSIONS)
hh_slc_geo = i_HH + complex(0,1)*q_HH
DELVAR, i_HH, q_HH
hv_slc_geo = i_HV + complex(0,1)*q_HV
DELVAR, i_HV, q_HV
vv_slc_geo = i_VV + complex(0,1)*q_VV
DELVAR, i_VV, q_VV
Any kind of the help is highly appreciated,
Cheers,
Dave