Comments (15)
@yang162132, the new version was released yesterday. SNAP 10 is now supported.
Hi @vchaparro. Yes, the new version ist pip-installable. There is a new restriction for Python: python>=3.8,<3.11
. The >=3.8
part is intended, the 3.11
part will hopefully be fixed soon.
Could it be that your Python version does not match this requirement and you can only install an older version of pyroSAR?
from pyrosar.
It is normal for snap to start from the command line
from pyrosar.
Hi @yang162132 pyroSAR does not yet support SNAP 10. The fix has already been made (#303) and a new version 0.26.0 will be released in the next days.
from pyrosar.
Hi @yang162132 pyroSAR does not yet support SNAP 10. The fix has already been made (#303) and a new version 0.26.0 will be released in the next days.
Thank you for your response and I am looking forward to the next version. By the way, is there a complete case of Sentinel 1 radar data processing? Where can I see them.
from pyrosar.
Hi @yang162132, you can find some examples in the docs:
https://pyrosar.readthedocs.io/en/latest/general/processing.html
https://pyrosar.readthedocs.io/en/latest/general/snap.html
from pyrosar.
Why the result of pyroSAR.snap.util.geocode is Gtiff,rather then dim? This would seem to make more difficult to do ps-insar or time series analysis
from pyrosar.
It's just how I found it to be most useful in the past. I did a lot of time series analysis, but all outside of SNAP. GeoTIFF was the most convenient for me.
You can get around this like so:
import os
from pyroSAR.snap.util import geocode, gpt
from pyroSAR.snap.auxil import Workflow, groupbyWorkers
import logging
logging.basicConfig(level=logging.INFO)
fname = 'S1A_IW_GRDH_1SDV_20180829T170631_20180829T170656_023464_028DE0_9F36.zip'
outdir = 'out'
tmpdir = 'tmp'
# only create the workflow and return the file name
fname_wf = geocode(infile=fname, spacing=200,
outdir=outdir, tmpdir=tmpdir,
test=True, returnWF=True)
# modify the workflow
wf = Workflow(fname_wf)
write = wf['Write']
out = os.path.join(outdir, os.path.basename(write.parameters['file']) + '.dim')
write.parameters['file'] = out
write.parameters['formatName'] = 'BEAM-DIMAP'
wf.write(fname_wf)
# run the workflow
groups = groupbyWorkers(fname_wf, n=2)
gpt(xmlfile=fname_wf, tmpdir=tmpdir, groups=groups)
from pyrosar.
It's just how I found it to be most useful in the past. I did a lot of time series analysis, but all outside of SNAP. GeoTIFF was the most convenient for me.
You can get around this like so:
import os from pyroSAR.snap.util import geocode, gpt from pyroSAR.snap.auxil import Workflow, groupbyWorkers import logging logging.basicConfig(level=logging.INFO) fname = 'S1A_IW_GRDH_1SDV_20180829T170631_20180829T170656_023464_028DE0_9F36.zip' outdir = 'out' tmpdir = 'tmp' # only create the workflow and return the file name fname_wf = geocode(infile=fname, spacing=200, outdir=outdir, tmpdir=tmpdir, test=True, returnWF=True) # modify the workflow wf = Workflow(fname_wf) write = wf['Write'] out = os.path.join(outdir, os.path.basename(write.parameters['file']) + '.dim') write.parameters['file'] = out write.parameters['formatName'] = 'BEAM-DIMAP' wf.write(fname_wf) # run the workflow groups = groupbyWorkers(fname_wf, n=2) gpt(xmlfile=fname_wf, tmpdir=tmpdir, groups=groups)
what do you usually use for time series analysis? I only found MintPy with stamps in python, None of them seem to support geotiff
from pyrosar.
I mostly worked with backscatter data, nothing interferometric. I used to write my own programs in C++, nowadays I use a lot of xarray and dask. For this I don't use the function geocode
though, there is this package:
https://s1-nrb.readthedocs.io/en/latest/
https://s1-nrb.readthedocs.io/en/latest/examples/nrb_cube.html
Since you are mentioning MintPy and stamps, I guess you are after interferometric analysis. I haven't done much in this direction. However, there is this PR #152 which I need to merge one day. Other than that you would need to write your own workflows using the SNAP API.
from pyrosar.
Hi @johntruckenbrodt,
Is the last version being available from pip?
Thanks!
from pyrosar.
The python version I'm using is 3.10, but I've needed to install pyroSAR 0.26 from git, because with python 3.10 pip doesn't find the last version, the latest version it installs is 0.24.0
from pyrosar.
Mh. I just did a fresh install like this:
mamba create -n test python=3.10
mamba activate test
pip install pyroSAR
It worked fine, 0.26.0 is installed.
Can you try installation with a fresh environment? Perhaps some other package is causing the conflict.
from pyrosar.
Hi @johntruckenbrodt ,
I've tested it again, and now pip finds pyroSAR 0.26. I might have missed something in the previous tests.
Thanks!
from pyrosar.
Great you got it to work @vchaparro. Happy processing
from pyrosar.
Closing this as the original error has been fixed. @yang162132 feel free to open another issues in case you have more questions.
from pyrosar.
Related Issues (20)
- Geocode function stopped working: requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 1
- S1 OSV download from CDSE
- Error when running pyroSAR.snap.geocode HOT 1
- Issue with RuntimeError: data format not supported HOT 3
- S1 OSV download from ASF HOT 2
- fix one cause for GammaUnknownError: calloc_2d: memory allocation error for data values HOT 2
- Issue with GeoCode in last version of pyroSAR HOT 4
- Additional workflow on ENVI file output from geocode HOT 2
- Problem with orbit files HOT 5
- [Archive] use geometry instead of bounding box HOT 6
- Support for scenes from CDSE
- Help starting with PyroSAR HOT 12
- 'NoneType' object has no attribute 'text' with removeS1BorderNoiseMethod='pyroSAR' and old S-1 datasets HOT 3
- Handling of outdated lock files
- [Lock] add log message when trying to acquire lock on already locked file
- Error importing geocode when using pyroSAR 0.26 installed from pip HOT 3
- Gammaparse autoparser adds gamma definitions on each import.
- about ASAR data
- RuntimeError: cannot read version information from. Please restart SNAP. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrosar.