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

Add data #8

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.nc4 filter=lfs diff=lfs merge=lfs -text
*.json filter=lfs diff=lfs merge=lfs -text
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/.quarto/
_site/
*.json
*.zip
*.nc4
*.DS_STORE
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"# User can pass any json or shape file here\n",
"# The \"geopandas\" library makes working with geospatial data easier by facilitating spatial operations on geometric types \n",
"\n",
"permian_basin = geopandas.read_file('../data/use-case-3/permian.zip')"
"permian_basin = geopandas.read_file('../use-case-3/data/permian.zip')"
]
},
{
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@
"metadata": {},
"outputs": [],
"source": [
"merra_t2m_dir='../data/use-case-2/merra_t2m_dir/'\n",
"merra_soil_moisture_dir = '../data/use-case-2/merra_soil_moisture_dir/'\n",
"merra_precip_rate_dir = '../data/use-case-2/merra_precip_rate_dir/'\n",
"merra_t2m_clim_dir = '../data/use-case-2/merra_t2m_clim_dir/'\n",
"savedir = '../data/use-case-2/saved_files'\n",
"merra_t2m_dir='data/merra_t2m_dir/'\n",
"merra_soil_moisture_dir = 'data/merra_soil_moisture_dir/'\n",
"merra_precip_rate_dir = 'data/merra_precip_rate_dir/'\n",
"merra_t2m_clim_dir = 'data/merra_t2m_clim_dir/'\n",
"savedir = 'data/saved_files'\n",
"\n",
"merra_precip_rate_clim_dir = merra_t2m_clim_dir \n",
"merra_soil_moisture_clim_dir = merra_t2m_clim_dir"
Expand Down Expand Up @@ -616,7 +616,7 @@
"\n",
"\n",
"# Insert the path to the NetCDF file\n",
"file_path = '../data/use-case-2/merra_t2m_dir/1991/MERRA2_100.instM_2d_asm_Nx.199101.nc4' # Replace with the path to your NetCDF file\n",
"file_path = 'data/merra_t2m_dir/1991/MERRA2_100.instM_2d_asm_Nx.199101.nc4' # Replace with the path to your NetCDF file\n",
"dataset = nc.Dataset(file_path)\n",
"\n",
"\n",
Expand Down Expand Up @@ -960,7 +960,7 @@
" ax.set_xlim(-1,12)\n",
" ax.set_ylim(min(ts['box_totals']),max(ts['box_totals'])) # manual per parameter\n",
" plt.show()\n",
" plt.savefig('../data/use-case-2/saved_files/'+savename.split('/')[-1],dpi=300,bbox_inches='tight')"
" plt.savefig('data/saved_files/'+savename.split('/')[-1],dpi=300,bbox_inches='tight')"
]
}
],
Expand Down
Binary file added sections/use-case-3/data/Permian.zip
Binary file not shown.
3 changes: 3 additions & 0 deletions sections/use-case-3/data/coverage.json
Git LFS file not shown
3 changes: 3 additions & 0 deletions sections/use-case-3/data/methane_metadata.json
Git LFS file not shown
3 changes: 3 additions & 0 deletions sections/use-case-3/data/target_mask.json
Git LFS file not shown
8 changes: 4 additions & 4 deletions sections/use-case-3/emit-ch4plume-v1_User_Notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"# Loading Permian Basin shape file as a region of interest\n",
"# User can pass any json or shape file here\n",
"# The \"geopandas\" library makes working with geospatial data easier by facilitating spatial operations on geometric types \n",
"permian_basin = geopandas.read_file('../data/use-case-3/permian.zip')\n",
"permian_basin = geopandas.read_file('data/permian.zip')\n",
"permian_basin = permian_basin.set_crs(4326,allow_override=True)"
]
},
Expand All @@ -129,18 +129,18 @@
"outputs": [],
"source": [
"# The ISS spatial coverage data is called on here\n",
"coverage = geopandas.read_file('../data/use-case-3/coverage.json')\n",
"coverage = geopandas.read_file('data/coverage.json')\n",
"coverage = coverage.set_crs(4326,allow_override=True)\n",
"\n",
"# The ISS Date Time is converted to strings\n",
"coverage['new_start_time'] = coverage.start_time.astype('str')\n",
"\n",
"# locations of where plumes are detected for the August 1, 2022 - present time period\n",
"metadata_json = geopandas.read_file('../data/use-case-3/methane_metadata.json')\n",
"metadata_json = geopandas.read_file('data/methane_metadata.json')\n",
"metadata_json = metadata_json.set_crs(4326,allow_override=True)\n",
"metadata_json['new_start_time'] = metadata_json['UTC Time Observed'].astype('str')\n",
"metadata_json['Scene FIDs'] = list(map(lambda x : x[0] ,metadata_json['Scene FIDs']))\n",
"target_mask = geopandas.read_file('../data/use-case-3/target_mask.json')\n",
"target_mask = geopandas.read_file('data/target_mask.json')\n",
"target_mask = target_mask.set_crs(4326,allow_override=True)\n",
"\n",
"\n",
Expand Down
Loading