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

Deploy workflow #2

Merged
merged 17 commits into from
Aug 29, 2023
Merged

Deploy workflow #2

merged 17 commits into from
Aug 29, 2023

Conversation

cisaacstern
Copy link
Member

Adds workflow to deploy recipe to Dataflow.

@cisaacstern
Copy link
Member Author

Hmm confused why I'm still seeing

{"message": "Error during running: No module named 'pangeo_forge_recipes.transforms'", "exc_info": "Traceback (most recent call last):\n  File \"/srv/conda/envs/notebook/bin/pangeo-forge-runner\", line 8, in <module>\n    sys.exit(main())\n  File \"/srv/conda/envs/notebook/lib/python3.9/site-packages/pangeo_forge_runner/cli.py\", line 28, in main\n    app.start()\n  File \"/srv/conda/envs/notebook/lib/python3.9/site-packages/pangeo_forge_runner/cli.py\", line 23, in start\n    super().start()\n  File \"/srv/conda/envs/notebook/lib/python3.9/site-packages/traitlets/config/application.py\", line 464, in start\n    return self.subapp.start()\n  File \"/srv/conda/envs/notebook/lib/python3.9/site-packages/pangeo_forge_runner/commands/bake.py\", line 201, in start\n    recipes = feedstock.parse_recipes()\n  File \"/srv/conda/envs/notebook/lib/python3.9/site-packages/pangeo_forge_runner/feedstock.py\", line 81, in parse_recipes\n    recipes[r[\"id\"]] = self._import(r[\"object\"])\n  File \"/srv/conda/envs/notebook/lib/python3.9/site-packages/pangeo_forge_runner/feedstock.py\", line 66, in _import\n    exec(compile(source=rewritten_ast, filename=filename, mode=\"exec\"), ns)\n  File \"feedstock/recipe.py\", line 9, in <module>\n    from pangeo_forge_recipes.transforms import (\nModuleNotFoundError: No module named 'pangeo_forge_recipes.transforms'", "status": "failed"}

will need to look into that further.

@cisaacstern
Copy link
Member Author

Ok great! Pruned test is now working on dataflow, and openable with:

import xarray as xr
path = "https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/aqua-modis-feedstock/aqua-modis-682286948-6008052687-2/aqua-modis.zarr"
ds = xr.open_dataset(path, engine="zarr")
ds
<xarray.Dataset>
Dimensions:   (time: 1, lat: 4320, lon: 8640)
Coordinates:
  * lat       (lat) float32 89.98 89.94 89.9 89.85 ... -89.9 -89.94 -89.98
  * lon       (lon) float32 -180.0 -179.9 -179.9 -179.9 ... 179.9 179.9 180.0
  * time      (time) datetime64[ns] 2002-07-04
Data variables:
    bbp_443   (time, lat, lon) float64 ...
    chlor_a   (time, lat, lon) float32 ...
    qual_sst  (time, lat, lon) uint8 ...
    sst       (time, lat, lon) float64 ...
Attributes: (12/44)
    Conventions:                      CF-1.6 ACDD-1.3
    cdm_data_type:                    grid
    creator_email:                    [email protected]
    creator_name:                     NASA/GSFC/OBPG
    creator_url:                      https://oceandata.sci.gsfc.nasa.gov
    easternmost_longitude:            180.0
    ...                               ...
    sw_point_longitude:               -179.9791717529297
    temporal_range:                   8-day
    time_coverage_end:                2002-07-12T02:19:59.000Z
    time_coverage_start:              2002-07-04T00:55:01.000Z
    title:                            MODISA Level-3 Standard Mapped Image
    westernmost_longitude:            -180.0

@cisaacstern cisaacstern merged commit 7b08cc1 into main Aug 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant