alexisInSAR / EZ-InSAR

Matlab Interface for Easy InSAR
GNU General Public License v3.0
105 stars 35 forks source link

SLC List Check Error in EZ_InSAR Software #67

Closed Elcappo2019 closed 4 months ago

Elcappo2019 commented 8 months ago

Description:

I am encountering an issue while using the EZ_InSAR software. Here are the steps I've taken:

Installed all packages and initiated the EZ_InSAR interface. Created a KML file for my study area, set the Path number, Flight direction, and specified the period interval. Modified the pathinformation.txt file with my ASF credentials (ASFID and ASFPWD), and tested the account successfully on ASF Search. Clicked on "Check SLC list," but encountered the following error:

" Error using createlistSLC>@(rep)strrep(M.AcquisitionDate,'Z',rep) (line 120) Unrecognized table variable name 'AcquisitionDate'. Error in createlistSLC (line 120) a = cellfun(@(rep) strrep(M.AcquisitionDate,'Z',rep), {''}, 'UniformOutput', false); Error in manageSLC (line 39) createlistSLC([],[],[],miesar_para); Error in GUIMIESAR>@(src,evt,arg1,arg2)manageSLC(src,evt,'checking',figmiesar.UserData) (line 231) btslccheck.ButtonPushedFcn = @(src,evt,arg1,arg2) manageSLC(src,evt,'checking',figmiesar.UserData); Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 386) Error while evaluating Button PrivateButtonPushedFcn. "

                                                         Any guidance on resolving this issue would be highly appreciated.

Additional Information:

Operating System: [Ubuntu 22.04.3 LTS] Matlab version: [ R2020_b]

EZ_InSAR

alexisInSAR commented 7 months ago

Hi,

What is your version of EZ-InSAR?

FranckzGithub commented 7 months ago

I am facing the same problem, a few days ago it was working, but now is not working, maybe is a problem with the API? even i runned in linux command line: curl https://api.daac.asf.alaska.edu/services/search/param?platform=Sentinel-1A\&beamMode=IW\&bbox=-68.231,-16.6733,-67.9672,-16.3895\&start=2018-01-01T00:00:00UTC\&end=2020-12-31T00:00:00UTC\&relativeOrbit=76\&flightDirection=A\&processingLevel=SLC\&maxResults=10000\&output=csv > tmp_list_SLC.csv but is not working, as i told you this same command line it was working a few days ago, but now... no, why?

FranckzGithub commented 7 months ago

it was a problem of the API in my case, now is working.... whole day was not working

A220N1 commented 7 months ago

Hi,

I encountered a similar error as well.

Check the SLC's error

Version of EZ-InSAR: [2.1.0]

Operating System: [I run all in wsl2 (ubuntu 22.04) ; MATLAB R2023B]

Description of the Problem:

I encountered an issue while using EZ_InSAR. Here are the steps I followed:

  1. Installed all required packages and initiated the EZ_InSAR interface. ezinsar_wsl2

  2. Modified the pathinformation.txt file with my ASF credentials (ASFID and ASFPWD), and tested the account successfully on ASF Search.

  3. Created a KML file for my study area and set the necessary SLC parameters. ezinsar_webmap

  4. Clicked on "Check SLC's"

Error Message:

ezinsar_matlab

I don't think it's an issue with ASF because I was able to download products by logging into the website, but I noticed that another user, FranckzGithub, mentioned that he had a similar issue caused by a problem with the API. FranckzGithub, could you please provide more details about how you resolved the issue or any additional information that might be helpful?

Also, for completeness, the slc csv is created, with the complete list of data for the date range I want. :

tmp_list_SLC.csv

A220N1 commented 7 months ago

Locale Configuration and CSV Parsing Error in MATLAB

Issue Update

I am providing additional details on my environment setup, specifically the locale configuration, as it might be related to the error encountered while parsing CSV files in MATLAB.

Locale Details

My WSL2 environment is fully set to en_US.UTF-8 across all parameters, as confirmed by the locale command. Despite this, MATLAB seems to misinterpret the period (.) as a decimal separator instead of recognizing the comma (,) as the delimiter when reading CSV files, leading to the "Unrecognized table variable name 'AcquisitionDate'" error (refer to the provided screenshot).

Additional Details: CSV Delimiter Impact on Reading Files

When attempting to read a CSV file without specifying the delimiter, MATLAB does not recognize the column headers and results in an error:

>> data = readtable('tmp_list_SLC.csv');
>> data.AcquisitionDate
Error using  . 
Unrecognized table variable name 'AcquisitionDate'.

However, when specifying the comma delimiter, MATLAB correctly identifies the column names and reads the data as expected:

>> data = readtable('tmp_list_SLC.csv', 'Delimiter', ',');
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the
table. The original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names. 
>> data.AcquisitionDate

ans =

  18×1 cell array

    {'2023-11-12T18:59:57.405455Z'}
    {'2023-11-12T18:59:32.576390Z'}
    ...
    {'2023-08-08T18:59:55.081051Z'}
    {'2023-08-08T18:59:30.264320Z'}

This behavior indicates that the issue lies with MATLAB's default delimiter settings, which do not align with the locale configuration of en_US.UTF-8 where the comma is expected to be the list separator

Seeking Solution

Given the locale settings, MATLAB should not require the explicit specification of a comma delimiter for CSV operations. I am seeking a solution to ensure MATLAB adheres to the en_US.UTF-8 locale settings for file reading functions by default, without needing to manually specify the delimiter each time.

Elcappo2019 commented 7 months ago

Hi,

What is your version of EZ-InSAR?

Sorry for delay in reply, I used " EZ-InSAR-Version_2_1_0_Beta"

alexisInSAR commented 7 months ago

Hi,

We hope that the new version (2.2.0) will solve your problem.

Kind regards,

Alexis