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

GLEAM 3.7b recipe #4

Closed
alaws-USGS opened this issue Jul 15, 2023 · 4 comments · Fixed by #10
Closed

GLEAM 3.7b recipe #4

alaws-USGS opened this issue Jul 15, 2023 · 4 comments · Fixed by #10
Assignees

Comments

@alaws-USGS
Copy link
Collaborator

alaws-USGS commented Jul 15, 2023

GLEAM 3.7b

Originally posted by @alaws-USGS in #1 (comment)

@alaws-USGS alaws-USGS self-assigned this Jul 15, 2023
@alaws-USGS
Copy link
Collaborator Author

alaws-USGS commented Jul 15, 2023

Currently unable to create recipe due to Pangeo Forge recipes not support FTP clients

Looking at several solutions.

First solution to examine: passing local environment variables to fsspec.open to use FTP server

  1. Add login and password as local environment variables
  2. Use fsspec.open to download single file

Second potential solution:

  1. Replace fsspec engine for class pangeo_forge_recipes.patterns.FilePattern

@alaws-USGS
Copy link
Collaborator Author

alaws-USGS commented Jul 15, 2023

Update 1 on Solution 1:

On Windows Subsystem for Linux (WSL)

Added 4 variables to .bashrc (they are now environment variables:

  • GLEAM_FTP: FTP endpoint
  • GLEAM_USER: username
  • GLEAM_PASSWORD: password
  • GLEAM_PORT: port to use

@alaws-USGS
Copy link
Collaborator Author

alaws-USGS commented Jul 15, 2023

Update 2 on Solution 1:
Recipes use FileManager object, which uses fsspec.open in the background. fsspec.open creates an OpenFile object and uses context to know what kind of file system (SFTP).. So far, it has not been enough to find the path needed for the file.

I was able to write a script and pass them as **kwargs to the FilePattern object. However, it hangs up so I need to figure out the Apache Beam.

@alaws-USGS
Copy link
Collaborator Author

Update 3 on Solution 1:
Working on adapting script to existing recipe that works rather than from tutorial.

@alaws-USGS alaws-USGS linked a pull request Jul 16, 2023 that will close this issue
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 a pull request may close this issue.

1 participant