andwatson/decompose_insar_velocities

How to handle this error....?

vis2hnu1 opened this issue · 2 comments

Dear sir/madam,

Actually, this the first time I am using Matlab. So, I am facing difficulty while deal with errors. I had run the code on the example dataset, It worked but the problem is, I am not able to export them (in geotiff, grd..). Please help how can I rectify it.

Thanking you in advance,

This is what the error message displays:

Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of "create" function:
"No such file or directory (2)".

Error in netcdf.create (line 61)
ncid = matlab.internal.imagesci.netcdflib('create', filename, mode);

Error in grdwrite2 (line 41)
ncid = netcdf.create(file, 'NC_SHARE');

Error in decompose_insar_velocities (line 422)
grdwrite2(x_regrid,y_regrid,m_up,[par.out_path par.out_prefix '_vU.grd']);

Hello, so I'm guessing it would be that the output file either isn't set, or is trying to save into a directory that doesn't exist.
Check if the output of "[par.out_path par.out_prefix '_vU.grd']" is a reasonable path on your system.

Hello, so I'm guessing it would be that the output file either isn't set, or is trying to save into a directory that doesn't exist. Check if the output of "[par.out_path par.out_prefix '_vU.grd']" is a reasonable path on your system.

Thank you, sir; it worked.