@Arctic-Ambrun the asf_search
Python package has a baseline_search
which calculates the spatial baseline for a stack (based on the reference scene). A terse example of using that function and pandas
to build an SBAS stack is here:
https://gist.github.com/jhkennedy/e9e7ec353b2a05419e50413368ff0505
All (well, most) the metadata is available via asf_search
and would let you build pairs/filter however you like. asf_search
and Vertex is developed by ASF's Search/Discovery team, and you can also ask for features or chat with them here:
https://gitter.im/ASFDiscovery/community
asf_search
; that should be coming soon but I don't know what the timeline is.
@Arctic-Ambrun: sorry, I mixed up the baselines. Yes, there's currently no good way to get at the spatial baselines with
asf_search
; that should be coming soon but I don't know what the timeline is.
yeah i checked the code, and seems we can only calculate it via the Iw.xml. So is it possible to download these xmls without data? I`d like to help coding
@Arctic-Ambrun: sorry, I mixed up the baselines. Yes, there's currently no good way to get at the spatial baselines with
asf_search
; that should be coming soon but I don't know what the timeline is.yeah i checked the code, and seems we can only calculate it via the Iw.xml. So is it possible to download these xmls without data? I`d like to help coding
And I want to ask a question also. How did ASF-VERTEX returns the spatial baseline data? and the spatial baseline is different with a pair when changing the reference, do you mind telling me the reason? THanks in advance.!
Hello everyone, may I ask two question here.I`m using the SBAS tools to analyse a eruption of volcano, Unfortunatly, Some of my process failed, Which troubles me to make next step with Mintpy.
Here I want to ask two question:
First, why some process failed, Could anyone please tell me the reason?
Eg: Reference scene: S1A_IW_SLC1SSV_20160804T114946_20160804T115022_012450_01372F_C4E2
Secondary Scene: S1A_IW_SLC1SSV_20160909T114948_20160909T115023_012975_014884_E67D
Second, what kind of parameter in GAMMA should I use, to achieve the same result as that does in ASF?
@nasasport In general (like on the DAAC OSL), users are responsible for updating their conda environments. If we updated all the time for users, we would eventually break someone's work.
To update, you could rerun the Create_OSL_Conda_Environments.ipynb
notebook or do more manual changes to your environments. The environments are usually stored within your home directory so that any customizations carry over from one server session to another.
We try to keep the current environments reflected in GitHub at https://github.com/ASFOpenSARlab/opensarlab-envs. Searching for asf_search
(https://github.com/ASFOpenSARlab/opensarlab-envs/search?q=asf_search) shows that it is not pinned so the latest on conda forge build will be pulled in on build or update.
asf_tools
specifically, you can do conda install -c conda-forge asf_tools
on the command line or !conda install -c conda-forge asf_tools
(don't forget the exclamation mark) within a notebook (within the right kernel/environment). Again, any changes with the conda environments will be semi-permanent and carry over your server sessions.
@SMJMirza we use hyp3lib.resample_geotiff.resample_geotiff
to create the KML files. We typically call it like:
resample_geotiff(geotiff, browse_width, 'KML', geotiff.replace('.tif', ''), use_nn=True)
There's a lot of code there, it's largely untested and it looks like that file hasn't been modified in two years, but it seems to be working. Let me know if there's an issue with it!
Hello all,
First of all, thank you very much in advance for your help!
I'm a standard Linux-Debian user, not a programmer nor a Python knowledgest, so I have some general doubts and confusions whn trying to work with MintPy.
I'm struggling to perform a time series analysis with ASF-Vertex and MintPy.
I installed conda, MintPy and HyP3 in my linux computer. I downloaded all the interferogram pairs from Vertex and cropped them to my small AOI with cutGeotiffs.py in the linux console as indicated here:
https://mintpy.readthedocs.io/en/latest/dir_structure/
I also consulted this example, which as far as I can understand, follows the same procedure I would like to apply:
https://zenodo.org/record/5502403#.YpyFNzVByWs
I also found this notebooks which I tried to use as a reference:
https://nbviewer.org/github/ASFHyP3/hyp3-docs/blob/main/docs/tutorials/hyp3_insar_stack_for_ts_analysis.ipynb
https://nbviewer.org/github/insarlab/MintPy-tutorial/blob/main/smallbaselineApp_hyp3.ipynb
But I'm unable to figure out how to start the process to get the time series results. I can’t understand the following aspects:
1- how to get most of the configuration file parameters (RidgecrestSenDT71.txt in the example).
2 - in which “environment” do I must run the scripts. Shall I do work in the linux shell? Or must I get into some programming environment or specific shell like Conda, Python, HyP3 or something else? How do I get into the specific environment? Do I must be sited in a specific path? How do I call to the MintPy scripts?
3 - In short, I can’t figure out how to run smallbaselineApp.py
By other side, following the jupyter notebooks, and if I’m not wrong (highly possible), I realize that every time that I follow the “0 Initial setup” step, I’m installing a sort of a virtual machine in Conda (or every Conda environment is itself a sort of a virtual machine), which multiplies the installation of common linux packages in my computer such as gdal, alsa, hdf5, sql, etc. Is that so?
Well, sorry for throwing such general questions in the forum, and excuse me if my English is not quite clear. I will really thank you for any help you can give me.
Best regards!
Really disappointing, finally I got MintPy working and after two days downloading the ERA5 files, now the service is down for around the last 24 hours :(
"CDS is currently having some technical issues and data downloads might fail or take longer than usual. Sorry about inconveniences."
Any idea to avoid this problem?
Hi all, I'm having issues logging into my Earthdata account through ASF. I am running into issues running the cell under 2.1 Use the HyP3 SDK to connect to the HyP3-watermap deployment in this notebook from asf-tools:
https://github.com/ASFHyP3/asf-tools/blob/develop/prototype/water-extent-map-on-demand.ipynb
I've verified that I'm entering the correct username and password and have tried restarting the kernel and editing my Earthdata profile. Any suggestions?
This is the full error message:
HTTPError Traceback (most recent call last)
File ~/.local/envs/asf-tools/lib/python3.9/site-packages/hyp3_sdk/util.py:77, in get_authenticated_session(username, password)
76 try:
---> 77 response.raise_for_status()
78 except requests.HTTPError:
File ~/.local/envs/asf-tools/lib/python3.9/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
1020 if http_error_msg:
-> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: 401 Client Error: Unauthorized for url: https://auth.asf.alaska.edu/login?error=access_denied&error_msg=Pre%20authorization%20required%20for%20this%20application,%20please%20authorize%20by%20visiting%20the%20resolution%20url&resolution_url=https://urs.earthdata.nasa.gov/approve_app?client_id=BO_n7nTIlMljdvU6kRRB3g
During handling of the above exception, another exception occurred:
AuthenticationError Traceback (most recent call last)
Input In [4], in <cell line: 3>()
1 import hyp3_sdk
----> 3 hyp3_watermap = hyp3_sdk.HyP3('https://hyp3-watermap.asf.alaska.edu', prompt=True)
File ~/.local/envs/asf-tools/lib/python3.9/site-packages/hyp3_sdk/hyp3.py:41, in HyP3.init(self, api_url, username, password, prompt)
38 if password is None and prompt:
39 password = getpass('NASA Earthdata Login password: ')
---> 41 self.session = get_authenticated_session(username, password)
42 self.session.headers.update({'User-Agent': f'{hyp3_sdk.name}/{hyp3_sdk.version}'})
File ~/.local/envs/asf-tools/lib/python3.9/site-packages/hyp3_sdk/util.py:79, in get_authenticated_session(username, password)
77 response.raise_for_status()
78 except requests.HTTPError:
---> 79 raise AuthenticationError('Was not able to authenticate with credentials provided\n'
80 'This could be due to invalid credentials or a connection error.')
81 else:
82 response = s.get(AUTH_URL)
AuthenticationError: Was not able to authenticate with credentials provided
This could be due to invalid credentials or a connection error.