GEE Tutorial #26 - How to create and deploy Earth Engine Apps using Python?

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 67

  • @rohitdhankar360
    @rohitdhankar360 4 года назад +1

    Dear Prof Qiusheng , im totally loving most of the content you are sharing . - Thanks - Regards

  • @JG-xt2vh
    @JG-xt2vh 2 года назад +2

    Many thanks Dr Wu for this amazing tutorial!! :)
    I was wondering, would it be possible to create an EE App using python that exports data (e.g. features) into a specific Google Drive? Any suggestion will be much appreciated!
    Cheers!

  • @user-yw7ei8rb7l
    @user-yw7ei8rb7l 4 года назад

    Thank you for sharing

  • @cesarcisneros2967
    @cesarcisneros2967 Год назад

    Dear Dr. Wu, it seems that Heroku platform is not free anymore, do you know another alternative to deploy jupyter notebook apps?

  • @edify9783
    @edify9783 2 года назад

    the demo links says Offline for maintenance
    This app is undergoing maintenance right now. can you check pls

  • @rohitdhankar360
    @rohitdhankar360 4 года назад +1

    Thanks for the tutorials Prof Qiusheng . Quick Question - is Earth Engine Data available for commercial use - any updates on this ? , thanks - Regards .

    • @giswqs
      @giswqs  4 года назад +1

      See the Earth Engine FAQ: earthengine.google.com/faq/
      Is Earth Engine available for commercial use?
      Earth Engine has a commercial license program, so if you are interested in pursuing a commercial application of our product, please contact us at earthengine-commercial@google.com.
      Earth Engine's terms allow for use in development, research, and education environments. It may also be used for evaluation in a commercial or operational environment, but sustained production use is not allowed. Additionally, data products generated by Earth Engine may not be sold.

    • @rohitdhankar360
      @rohitdhankar360 4 года назад

      @@giswqs - Thanks that clarifies and further confirms my thought process . Would like to see Google , let it be used for - whatever and that too Free :)

  • @dandixon5626
    @dandixon5626 3 года назад

    This is such a great video. Question: could I use this method to take an official EE app written in javascript and embed it into my IPython notebook? That way I can do analyses and make plots but also take advantage of the EE ui functions. Thank you.

    • @giswqs
      @giswqs  3 года назад

      Unfortunately, the answer is no. GEE JavaScript GUI and Python GUI are not interchangeable.

  • @manuks2852
    @manuks2852 3 года назад

    Thanks, Dr Wu for this great tutorial. Is it possible to use my earth engine service account key file (JSON format) instead of using the token of my private earth engine account?

    • @giswqs
      @giswqs  3 года назад

      I have not used GEE service account before, so I cannot comment on this one.

  • @gauravshukla7849
    @gauravshukla7849 3 года назад

    The loading time of map while the application loads can it be reduced like it's executing all the codes so, any sort of way is their so that the loading time can be reduced ??

    • @giswqs
      @giswqs  3 года назад

      The best practice is not to execute computationally intensive tasks when the map is being loaded. Only compute when users request it.

  • @sukkiisukant
    @sukkiisukant 4 года назад

    Thanks for this wonderful tutorial. It is really helpful
    I have one doubt
    How to update already deployed app in heroku??

    • @giswqs
      @giswqs  4 года назад

      Make changes to your app, then use git to push changes to heroku.com. You can also link GitHub repo to your heroku app. In this way, you simply push changes to GitHub, and heroku will automatically pull changes from GitHub and depoly the updated app.
      git add .
      git commit -m "commit message"
      git push

  • @zephyrhamid7196
    @zephyrhamid7196 2 года назад

    i am having a token problem,,,, even after running config command,,,,

    • @giswqs
      @giswqs  2 года назад

      Go to the Heroku website, you can set the token there.

  • @blueskysu8380
    @blueskysu8380 3 года назад

    吴老师,您好。我想把制图功能也加在app中,部署完后在网页上报错“cartopy is not installed....”然后我就在requirements.txt中添加了cartopy,在运行“git push heroku master”总是报错“ UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.” 想请问老师怎样解决,描述的有点乱,望理解,盼回复。

    • @giswqs
      @giswqs  3 года назад

      cartopy is very challenging to install using pip. You will need to install many dependencies. See scitools.org.uk/cartopy/docs/v0.12/installing.html

    • @blueskysu8380
      @blueskysu8380 3 года назад

      @@giswqs 感谢老师的回复,尝试了各种方法还是都没有解决这个问题,似乎python2.6.6之后现在已经无法通过pip安装cartopy了。打扰老师了

  • @studytips423
    @studytips423 2 года назад

    It doesn't work anymore. I tried every possible way. But got the error all the time with "Please authorize access to your Earth Engine account by running earthengine authenticate in your command line, and then retry." Could you please check it again?

    • @giswqs
      @giswqs  2 года назад

      What Python version are you using?

    • @studytips423
      @studytips423 2 года назад

      @@giswqs I have tried python 3.7.7, and python 3.9.6. Got the same error.

  • @KennethQuisado
    @KennethQuisado 3 года назад

    Hello Proj Qiusheng! I've seen your post on the Streamlit community about supporting secrets and it is already a supported feature. Is it possible now to deploy Earth Engine Apps using Streamlit sharing? Thank you!

    • @giswqs
      @giswqs  3 года назад +1

      Thank you for letting me know that streamlit now supports secrets. Could you open an issue on GitHub? I will look into it. github.com/giswqs/geemap/issues

    • @KennethQuisado
      @KennethQuisado 3 года назад

      @@giswqs Sure professor. Thanks!

  • @sidharth1612
    @sidharth1612 4 года назад

    This seems to be IpyLeaflet maps, not exactly Published maps right? So there are lots of UI elements needed to be added, and it seems tha can only be done by Javascript editor and publishing to Google Cloud. Is there any other way?

    • @giswqs
      @giswqs  4 года назад +1

      The official Earth Engine Apps can only be created and deployed using JavaScript www.earthengine.app. I am providing the Python solution. If you want full UI, try geemap with Jupyter notebook.

    • @sidharth1612
      @sidharth1612 4 года назад

      @@giswqs Ok ! :) Thanks for the reply sir :)

  • @blueskysu8380
    @blueskysu8380 3 года назад

    吴老师您好,在heroku login/heroku login -i时,点击log in总是出现“IP address mismatch”,请问应该怎样处理,谢谢~

    • @giswqs
      @giswqs  3 года назад

      I have not encountered this error before. You can Google it.

    • @blueskysu8380
      @blueskysu8380 3 года назад

      ​@@giswqs Thanks

  • @ujjwalgarai3993
    @ujjwalgarai3993 4 года назад

    Sir, you upload another nice video. this is very helpful for our learning season.
    Sir, I have a little problem for using zonal stat every time I got result only coordinate, but not real value. Please help me what is the actual problem..

    • @giswqs
      @giswqs  4 года назад +1

      This is a known issue. The recent GEE API update broke some download functions. Please wait for Google to fix it. See github.com/giswqs/geemap/issues/63 and issuetracker.google.com/issues/159926579

    • @ujjwalgarai3993
      @ujjwalgarai3993 4 года назад

      @@giswqs Thanks sir for your valuable reply..

  • @ritikaprasai5118
    @ritikaprasai5118 3 года назад

    I am trying to deploy my own notebook but getting this error: There was an error when executing cell [1]. Please run Voilà with --show_tracebacks=True or --debug to see the error message, or configure VoilaConfiguration.show_tracebacks. Could you suggest me how I can fix this. Thank you.

    • @giswqs
      @giswqs  3 года назад +1

      Make sure you run `geemap.Map()` or `geemap.ee_initialize()` in the notebook before doing anything else with ee. Do NOT use `ee.Authenticate()` or `ee.Initialize()`. These will fail the authenticate process. Follow the steps in this repo. github.com/giswqs/geemap-heroku

    • @ritikaprasai5118
      @ritikaprasai5118 3 года назад

      @@giswqs Thank you so much Dr. Wu. I was able to fix the issue. Have a good day

  • @rafaelbarbedo795
    @rafaelbarbedo795 3 года назад

    Greetings Professor. Very good content. I enjoy all of your posts.
    One issue though: the app does not run with ee commands. It raises an error when ee.Initialize() is run. However, without this command it doesn't access ee variables. Any idea on the solution for this?

    • @giswqs
      @giswqs  3 года назад +1

      See github.com/giswqs/geemap/discussions/465#discussioncomment-710744

    • @rafaelbarbedo795
      @rafaelbarbedo795 3 года назад

      @@giswqs thank you very much! Solved.

  • @cemrealdogan7163
    @cemrealdogan7163 3 года назад

    Hi Dr. Wu, I followed all your steps in this tutorial but when I write 'python config_vars.py', prompt gives me a warning as ' command returned non-zero exit status 1'. What is your suggestion? Thanks in advance.

    • @giswqs
      @giswqs  3 года назад

      See github.com/giswqs/geemap-heroku/issues/1#issuecomment-656101951

    • @cemrealdogan7163
      @cemrealdogan7163 3 года назад

      @@giswqs Thanks, I will read it.

  • @anticanevas5509
    @anticanevas5509 4 года назад

    i m searching for long time how to deploy gee in web app , thank you very mush , you are the best. One question is there a way to integrate django (geodjango) with gee ? once again thanks you lot

    • @giswqs
      @giswqs  4 года назад +2

      Sorry I don't have an answer to your question. I have not used Django before, but I might look into geodjango when I have time.

    • @anticanevas5509
      @anticanevas5509 4 года назад

      @@giswqs thank you , great work

  • @rohitdhankar360
    @rohitdhankar360 4 года назад

    Also just noticed - why are you creating Heroku Apps . I dont think the Heroku App free hosting version allows you to have your own Domain Names ? Best option would be to host your own App on your own Cloud Server or Local machine using a Nginx or Apache server. Thats the Free and best option im aware of - Regards n Thanks

    • @giswqs
      @giswqs  4 года назад

      Heroku free version does allow custom domains. See www.heroku.com/pricing. I like it because it can be automatically deployed from GitHub. Once it is set up properly, I only need to push changes to GitHub. There is no hassle for maintaining a local server or paying money for a cloud server.

    • @rohitdhankar360
      @rohitdhankar360 4 года назад

      @@giswqs - Yes ure right . But a Custom domain on Heroku will cost lots more than own server. Also Heroku is not as easy as a personal server. Thanks for your reply - Regards.

  • @mga90ful
    @mga90ful 4 года назад

    Thanks Dr Wu for such a terrific tutorial!. Hope you can help me to solve the following issue:
    When running config_vars.py I get the error: ''[WinError 2] The system cannot find the file specified''. This means I can't upload the credentials to heroku.
    I tried to manually create an environmental variable EARTHENGINE_TOKE: VALUE (from the credential file in my PC), but the app still doesn't work. Perhaps you could provide some suggestions on how to manually set the credentials for the heroku app. Thank you!

    • @giswqs
      @giswqs  4 года назад +1

      See github.com/giswqs/geemap-heroku/issues/1#issuecomment-656101951

    • @anticanevas5509
      @anticanevas5509 4 года назад +1

      @@giswqs thanks it run now

  • @azad7796
    @azad7796 4 года назад

    Thank you Wu for the useful video, but I got this error: "conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program."

    • @giswqs
      @giswqs  4 года назад

      Did you install Anaconda or Miniconda on your computer? See github.com/giswqs/geemap#installation

    • @azad7796
      @azad7796 4 года назад

      @@giswqs Thank you for your reply. Again I received: "conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
      path was included, verify that the path is correct and try again." I checked the link and installed: conda create -n gee python=3.7
      conda activate gee
      conda install mamba -c conda-forge
      mamba install geemap -c conda-forge

  • @herlytama6387
    @herlytama6387 Год назад

    "The credentials file does not exist."

  • @shaotengwang3261
    @shaotengwang3261 4 года назад

    吴老师您好,我按照您的步骤做到运行config_vars.py时出现错误[win error2]:系统找不到指定的文件,请问应该如何解决?谢谢

    • @giswqs
      @giswqs  4 года назад

      See the solution here:github.com/giswqs/geemap-heroku/issues/1#issuecomment-656101951

    • @shaotengwang3261
      @shaotengwang3261 4 года назад

      @@giswqs 谢谢,解决了

    • @shaotengwang3261
      @shaotengwang3261 4 года назад

      在push geemap.ipynb例子创建app后发生错误:To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions:...
      The authorization workflow will generate a code, which you should paste in the box below
      后边报错There was an error when executing cell [2]. Please run Voila with --debug to see the error message.
      push bqplot.ipynb例子 app中可以成功显示。在jupyter notebook和vscode中都可以加载Map,请问老师google earth 生成的授权代码应该加在哪里?谢谢

    • @giswqs
      @giswqs  4 года назад

      You need to make sure that your Earth Engine token is set up correctly on heroku. See github.com/giswqs/geemap-heroku/issues/1#issuecomment-656101951

    • @shaotengwang3261
      @shaotengwang3261 4 года назад

      @@giswqs 非常感谢!

  • @joeyang3976
    @joeyang3976 4 года назад

    英语不好,听起来太难了0.0,请问吴老师,您的geemap可以做随机森林回归吗,有没有案例啊

    • @giswqs
      @giswqs  4 года назад

      See github.com/giswqs/earthengine-py-notebooks/tree/master/MachineLearning

    • @joeyang3976
      @joeyang3976 4 года назад

      @@giswqs 感谢吴老师!