You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there! I have been trying to use salem.roi() to subset the netCDF data using a shapefile. However, I have noticed that the file size remains the same despite selecting a smaller area, and it is also taking a significantly longer time to run. Can anyone offer any assistance or advice on this matter? Your help would be greatly appreciated.
Check the code below:
forshapefileinshapefiles:
# open the shapefilecounty=salem.read_shapefile(shapefile)
# subset the netcdf data for the countycounty_data=data.salem.roi(shape=county)
file_name=os.path.basename(shapefile)
# save county netcdf filecounty_data.to_netcdf(save_path+"/"+file_name[:-4] +"_river_discharge.nc")
# close the netcdf filecounty_data.close()
The text was updated successfully, but these errors were encountered:
@fmaussion I tried it and it appears to be working, but I am getting data that falls outside the polygon of the shapefile. Is there a way to remove this data that exceeds the boundary of the shapefile? I want to select the points on land, instead of those on the sea. Any help would be appreciated.
Hello there! I have been trying to use
salem.roi()
to subset the netCDF data using a shapefile. However, I have noticed that the file size remains the same despite selecting a smaller area, and it is also taking a significantly longer time to run. Can anyone offer any assistance or advice on this matter? Your help would be greatly appreciated.Check the code below:
The text was updated successfully, but these errors were encountered: