-
Notifications
You must be signed in to change notification settings - Fork 40
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
return delay files in geo coords if geocoded aoi #408
base: dev
Are you sure you want to change the base?
Conversation
addresses #403. note that outputs will still be saved in WGS84 |
This needs to be more carefully vetted before merging as it may have unintended consequences |
I dont think proj input is to be kept. We added proj as output not sure why
we need it as input if we enforce the coordinate to be gdal compatible.
Jeremy thoughts?
…On Wed, Nov 23, 2022 at 11:08 AM BB ***@***.***> wrote:
This needs to be more carefully vetted before merging as it may have
unintended consequences
—
Reply to this email directly, view it on GitHub
<#408 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESZPSNF5XNIA4ZUDK3WENTWJZTTBANCNFSM6AAAAAASJHRHPQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@@ -72,7 +72,7 @@ def get_heights(args, out, station_file, bounding_box=None): | |||
elif os.path.exists(args.dem): | |||
out['dem'] = args['dem'] | |||
if bounding_box is not None: | |||
dem_bounds = rio_extents(rio_profile(args.dem)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a try/except here so either will work? Or is it always [0]?
@@ -118,7 +118,7 @@ def tropo_delay(dt, wetFilename, hydroFilename, args): | |||
|
|||
########################################################### | |||
# Load the downloaded model file for CRS information | |||
wm_proj = rio_profile(f"netcdf:{weather_model_file}:t")["crs"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here as above, and below as well.
@@ -120,7 +123,13 @@ def rio_profile(fname): | |||
f"{fname} does not contain geotransform information" | |||
) | |||
|
|||
return profile | |||
elif profile['crs'].to_epsg() != 4326: | |||
fname_wgs84 = rio_reproject_geocoded(fname) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the part that wasn't working to correctly reproject the outputs?
If a user passes in a geocoded file for the AOI, the resulting wet/hydro delays will be written in those coords
Note that the
proj
input argument is not currently supported and should be removed until it's implemented (which may take some doing)