-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help starting with PyroSAR #297
Comments
Hi @SantaTitular I agree the documentation of the parameter from spatialist.vector import wkt2vector
for i in input_S1_files:
print(i)
with wkt2vector(wkt=wkt, srs=proj) as vec:
geocode(i,
outdir=outpath, test=True, t_srs=proj,
polarizations=['VV','VH'],
speckleFilter='Lee',
removeS1ThermalNoise=True,
allow_RES_OSV=True,
shapefile=vec) Works for you? |
Thanks so much for the response! Yes, it was the link for You're right, after looking through the documentation of the Thanks again! Quick edit: It does work without the subset (atleast its running and created the .xml file previously), so it is just this subset part. |
Your AOI is located in the central Pacific near Samoa, the scene covers Bosnia Herzegovina. Looks like you need to adjust your WKT string. the coordinate convention is always X-Y(-Z) whereas you seem to have Y-X. - POLYGON((19.295571567283318 43.75986021410339,
+ POLYGON((43.75986021410339 19.295571567283318, |
Thanks again for the help. Although I'm confused since I took the polygon's WKT from SNAP. Still, if I look up this polygon I did try changing the X-Y on the code but ended with the same error! |
Ah sorry. Swapping the coordinates would obviously get you to the Arabian peninsula and not to Samoa. There must be a different reason. Until I get this fixed I suggest you find a different way to create some vector file from your WKT string and use this file for processing. |
Hi again John, I tried processing without the subset however, I ended with an error file with the following line on it: Edit: File name: |
Your last message looks a lot like this: #265 |
Hi John, Thanks again for the help! Thats weird, If I remember correctly, I took proj's WKT from SNAP (Raster->Geometric->Reprojecting) but maybe before doing any shift in the image or drawing the polygon. I'll just use the projection from WKT online viz for future cases then. Regarding the error message, contrary to #265 this error would appear at the end, at the write module. I imported the graph to SNAP as you suggested in #265 (although he did have '(' special characters in the path name) and changed directory and the output format: However, if I incorporate the subset in the workflow (using the original, possible wrong path) I do get an output (albeit still not the one I wanted 😅)! So I guess it is more related to size of the image than anything else. |
Mh strange. I think you're right, this looks a lot like you don't have enough space. |
Yeah, I guess 500GBs not enough to process a full image. Still, I can process with the subset so I'm ok with it. Since I used lineartodB the output image was pretty much black, whereas I just wanted the linear form like this: I don't have much experience with this type of data but I think it look ok no? I'm still exploring more of the package and different processing steps and it is really helpfull to check the intermediate steps in SNAP. Thanks for the help again! |
500 GB should be plenty to process the images so the error could be coming from something else. |
Hi John, I'm back to using the pyroSAR library after taking time off but I can't seem to get the pyroSAR library working as previously. I lost the conda environment that I was using before and I can't seem to make a working one. I started by creating an environment with python 3.6 and installing pyroSAR (using conda install --channel conda-forge pyrosar) but the code only supported python > version 3.10? But using an environment with version 3.10 or 3.8 I can't seem to configure snappy nor the correct dependencies (for instance, I get the message 'no module osgeo') Don't suppose you have a .yaml file to help me out? Best, **EDIT: I Installed SNAP v10.0.0 and now I'm getting the following error: **EDIT2: Persistence pays off, after updating everything and restarting the computer I managed to run the code that you suggestted above (below). However, when I put test = False to run the .xml workflow, I still have memory issues as before. Is there something I can change just to obtain the correct final image?
|
@SantaTitular great you were able to get it to run. Sorry for all the issues you're encountering. |
@johntruckenbrodt thanks for the tip. Yesterday I had it working perfectly (took a while to process all the images I had), but for some reason today I had the same error:
I went to the code part raising the error and found the following: I'm not sure what originated this problem, all I did different was open SNAP and check for updates (maybe installed something bad?). If you're available, we could discuss further via email or a quick chat as I'm really keen on using pyroSAR for my project!😁 *EDIT: Yeah, after I removed and renistalled SNAP, it went back to working. Maybe it had something to do with the plugin installer... Still, if you're available, I would really enjoy discussing some questions regarding exclusions layers, etc. |
I have written a mail. Has it reached you? |
Hi,
I'm just starting to use pyroSAR after searching for a simpler way to process Sentinel S1 images in python. I started by just doing some standard processing but I'm not sure how to include the geometry (wkt) and the projection (proj) as if using snappy. I tried looking through the function itself but the
t_srs
link is broken unfortunately. The code below naturally outputs an error:OSError: file does not exist
in thesub = sub_parametrize(scene=id, geometry=shapefile, offset=offset, buffer=0.01)
,shp = Vector(geometry)
.Thanks in advance!
Tomás
The text was updated successfully, but these errors were encountered: