Skip to content

Commit

Permalink
Merge pull request #28 from OPERA-Cal-Val/fix_pekel
Browse files Browse the repository at this point in the history
Fix pekel
  • Loading branch information
cmarshak authored Feb 8, 2024
2 parents 40bfcc5 + c571852 commit 912577e
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 54 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.7]
* Fix typo: `Peckel` --> `pekel`
## [0.0.8]
* Fix typo in `pekel_water_occ_2021` and other instances of misspelled name: `peckel` --> `pekel`

## [0.0.7]
* Add python 3.12 support
Expand Down
281 changes: 237 additions & 44 deletions notebooks/Basic_Demo.ipynb

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions notebooks/tile_creation/2_Peckel_Water_Mask.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"# Upper left corner\n",
"ul_corners = [(-180 + (i) * 10, 80 - (j) * 10) for i in range(36) for j in range(14)]\n",
"# data\n",
"df_peckel_data = gpd.GeoDataFrame(geometry=geometries, crs=CRS.from_epsg(4326))"
"df_pekel_data = gpd.GeoDataFrame(geometry=geometries, crs=CRS.from_epsg(4326))"
]
},
{
Expand Down Expand Up @@ -124,9 +124,9 @@
" lat_str = f'{abs(lat):d}S'\n",
" return f'{lon_str}_{lat_str}'\n",
"\n",
"df_peckel_data['tile_id'] = list(map(tile_id_gen, ul_corners))\n",
"df_peckel_data['url'] = list(map(url_generator, ul_corners))\n",
"df_peckel_data.boundary.plot()"
"df_pekel_data['tile_id'] = list(map(tile_id_gen, ul_corners))\n",
"df_pekel_data['url'] = list(map(url_generator, ul_corners))\n",
"df_pekel_data.boundary.plot()"
]
},
{
Expand Down Expand Up @@ -218,7 +218,7 @@
}
],
"source": [
"df_peckel_data.head()"
"df_pekel_data.head()"
]
},
{
Expand All @@ -241,7 +241,7 @@
}
],
"source": [
"sample_url = df_peckel_data.url[0]\n",
"sample_url = df_pekel_data.url[0]\n",
"print(sample_url)"
]
},
Expand Down Expand Up @@ -281,7 +281,7 @@
"metadata": {},
"outputs": [],
"source": [
"df_peckel_data = TILE_SCHEMA.validate(df_peckel_data)"
"df_pekel_data = TILE_SCHEMA.validate(df_pekel_data)"
]
},
{
Expand Down Expand Up @@ -310,7 +310,7 @@
}
],
"source": [
"to_geojson_gzip(df_peckel_data, str(DATA_DIR / 'pekel_water_occurrence_2021.geojson.zip'))"
"to_geojson_gzip(df_pekel_data, str(DATA_DIR / 'pekel_water_occurrence_2021.geojson.zip'))"
]
}
],
Expand Down

0 comments on commit 912577e

Please sign in to comment.