pyroSAR appearing to look for a tmp file before it's created
See original GitHub issue- which operating system are you using?
RHEL - which environment is pyroSAR running in?
user-level installation of Python 3.9.2 - which version of pyroSAR are you using?
clone of the GitHub repository - which function of pyroSAR did you call with which parameters?
geocode - if applicable, which version of SNAP or GAMMA are you using in pyroSAR? SNAP 8.0, Sentinel-1 Toolbox 8.0.4
- the full error message [Errno 2] No such file or directory: ‘[…]/T30VUJ/2021/03/29/pyrosar/S1B__IW___D_20210329T063721_NR_Orb_Cal_TF_TC_dB/tmp/S1B_IW_GRDH_1SDV_20210329T063721_20210329T063746_026226_03213E_AA5A_tmp3.dim’
geocode call:
geocode(scene, outdir='%s' % (path2pyrosar), t_srs=crs_epsg, tr=resolution, scaling='dB', polarizations='all', geocoding_type='Range-Doppler', removeS1BorderNoise=True, removeS1BorderNoiseMethod='pyroSAR', removeS1ThermalNoise=True, terrainFlattening=terrainFlattening, externalDEMFile=dem_file, externalDEMNoDataValue=dem_ndv, externalDEMApplyEGM=True, speckleFilter=speckleFilter, refarea='gamma0', shapefile=granule_shp, alignToStandardGrid = True, standardGridOriginX = origin[0], standardGridOriginY = origin[1])
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How to recognize where my python code creates temp files?
type echo %temp% on command prompt and it should provide the location of temp directory. You can change the temp directory location by ......
Read more >Drivers - pyroSAR's documentation!
This is the core module of package pyroSAR. It contains the drivers for the different SAR image formats and offers functionality for retrieving...
Read more >Generate temporary files and directories using Python
TemporaryFile(). This function creates a temporary file in the temp directory and returns a file object, similar to built-in open() function.
Read more >Processing on AWS #107 - johntruckenbrodt/pyroSAR - GitHub
This example is runnable as long as you have a directory containing several images processed by function geocode. You do not need SNAP...
Read more >How to intercept temporary files created by a program?
I don't care how the program in question is done, I just want to see its temp files. – Sergiy Kolodyazhnyy. Sep 10,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Resolved after updating SNAP 👍🏻
I also encountered this error and had trouble figuring out how to update SNAP in a Dockerfile. In case others are in a similar situation, adding the following as a
RUN
command after installing SNAP resolved the error.The
pkill
workaround is needed because the SNAP update-all command hangs after updating ( https://senbox.atlassian.net/wiki/spaces/SNAP/pages/30539785/Update+SNAP+from+the+command+line ). Theexit 0
is needed because the workaround was returning a non-zero status causing the Docker build to terminate.