andwatson / decompose_insar_velocities

Matlab scripts for decomposing multiple line-of-sight InSAR velocity fields into East and Vertical components.
GNU General Public License v3.0
25 stars 10 forks source link

How to handle this error....? #22

Closed vis2hnu1 closed 5 months ago

vis2hnu1 commented 5 months ago

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']);

andwatson commented 5 months ago

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.

vis2hnu1 commented 5 months ago

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.