-
Notifications
You must be signed in to change notification settings - Fork 21
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
LatLon Footprint Generation Requires Superfluous Argument #135
Comments
Further, the call requires the radii. This is redundant as the sensor model already encodes the semimajor and semiminor axes. All args: generate_latlon_footprint(sensor, dem=dem, nlines, nsmaples) Defaults: generate_latlon_footprint(sensor, dem) |
Hey Jay, I think there is room for some QOL stuff in knoten. Does the following function accomplish a similarly desired goal as the nlines and nsamples? Line 273 in 459231a
It does look like the Line 408 in 459231a
It looks like the expected arg/function flow is as follows: camera = create_csm(image, verbose=False)
boundary = generate_boundry(camera, 20)
# after default radii is fixed
footprint = generate_latlon_footprint(camera, boundary, dem=dem) From the above, providing a nlines and nsamples arg in generate_boundry would be a positive. We could also generate the boundary by default for a user is none is provided |
@acpaquette Yes, yes, and yes. All of the pieces are there, we just need to wrap it up into a nicer to use function. I'll see if I can get a PR in pre-vacay. If not, an enhancement to consider at some point. |
The func requires that an image boundary be passed in: https://github.com/DOI-USGS/knoten/blob/main/knoten/csm.py#L296 along side the sensor model. Instead of pushing the user to make multiple calls, simple get the images size from the sensor model and then allow user to pass
linc
,sinc
args (please not those names) like ISIS accepts.The current requirement:
A better func:
The text was updated successfully, but these errors were encountered: