Skip to content
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

IMAGEIO FFMPEG_WRITER WARNING when creating MP4 timelapse animation & other warning #512 #513

Open
wants to merge 18 commits into
base: development
Choose a base branch
from

Conversation

thekester
Copy link

This pull request addresses the issue #512 related to the IMAGEIO FFMPEG_WRITER WARNING when creating MP4 timelapse animations. It includes fixes for the warning and any other related warnings.

@kvos
Copy link
Owner

kvos commented Jul 10, 2024

thanks @thekester , can you explain a bit more about this PR?
is this PR AI-generated? did you test these changes?

@thekester
Copy link
Author

thekester commented Jul 10, 2024

Hi there, @kvos Yes, I tested the changes on example.py, and yes, this PR was generated by AI. When I try to run the example, I get a lot of warnings and errors, so I made all these changes to example.py. I run the script with python -u example.py I still have issues with example.ipynb, but they are caused by QtAgg errors on a Jupyter notebook and issues with ipykernel on my end [like MESA error: ZINK: failed to choose pdev , glx: failed to create drisw screen) so i still try to solve my issues with example.ipynb but now with example.py I don't have issues with all these changes.

@thekester
Copy link
Author

thekester commented Jul 10, 2024

The authenticate.py python script I purpose for Authentication Script for Google Earth Engine is just to verify if users are authenticated to gcloud before running example python scripts of coastsat. The example.py script works for me with all these changes with python -u but I could check if all these changes work with anaconda configuration. After solving errors with PATH in zhrc i was able to activate conda environment (coastsat) ┌──(

for conda i need to do conda install -c conda-forge geopandas -y
conda install -c conda-forge earthengine-api scikit-image matplotlib astropy notebook -y
conda install -c conda-forge pyqt=5 imageio-ffmpeg -y
conda install -c conda-forge opencv -y
conda install -c conda-forge pandas -y
conda install -c conda-forge gdal -y
conda install -c conda-forge scikit-learn -y
conda install -c conda-forge pyproj -y
conda install -c conda-forge geopandas -y

in SDS_shoreline.py
mng = plt.get_current_fig_manager()
# Get the figure manager and maximize the window
mng.window.showMaximized() works now for me so now the code works The available time series data ranges from 2017-11-30 00:15:00.000003+00:00 to 2018-01-01 23:59:59.999997+00:00.
Adjusting input dates to fit within the available time series data range:
Adjusted date range: 2017-11-30 00:15:00.000003+00:00 to 2018-01-01 23:59:59.999997+00:00
Extracting closest points: 100%Tide levels corresponding to the input dates have been successfully retrieved.
Correction values computed successfully.
Tidally-corrected time-series of the shoreline change along the transects saved as:
/home/user/Documents/githubcoastsat/CoastSat/data/NARRA/transect_time_series_tidally_corrected.csv
NA1 - outliers removed: 2
NA2 - outliers removed: 4
NA3 - outliers removed: 3
NA4 - outliers removed: 1
NA5 - outliers removed: 2
CSV file loaded successfully.
Profile IDs loaded: ['PF1', 'PF2', 'PF4', 'PF6', 'PF8']
ICE default IO error handler doing an exit(), pid = 94453, errno = 32 and my laptop entered in helicopter mode when mapping shorelines but i cannot see the figures (i see the figure1, figure2, figure3 ... to figure 27) but figures is transparent (maybe problem on my side )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants