-
Notifications
You must be signed in to change notification settings - Fork 8
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
Projection support #38
base: main
Are you sure you want to change the base?
Projection support #38
Conversation
created with ``` globe=ccrs.Globe(semimajor_axis=6367470,semiminor_axis=6367470) 4:41 ccrs.LambertConformal(central_longitude=proj_inf[‘LoV’]/1e6,standard_parallels=(proj_inf[‘Latin1’]/1e6,proj_inf[‘Latin2’]/1e6), central_latitude=((proj_inf[‘Latin1’]/1e6+proj_inf[‘Latin2’]/1e6))/2 ,false_easting=0, false_northing=0, globe=globe).to_cf() ```
c8d6ed0
to
5946210
Compare
5946210
to
db737ab
Compare
# TODO: generalize the retrieval of x and y coords | ||
# coords = (dataarrays_by_target[target_output_var][0]['x'], dataarrays_by_target[target_output_var][0]['y']) | ||
# lon, lat = get_latitude_longitude_from_projection(projection, coords) |
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.
@ealerskans this would be my current proposal for you on where and how you could generate the lats and lons from x and y.
This is obviously per projection in each dataset and because we only accept one projection for now, you might just skip this step for all following datasets.
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.
the function is available from from .ops.projection
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.
Great work! Only some small comments from me :)
Co-authored-by: SimonKamuk <[email protected]>
eventually fixes #33
Main changes:
projections
attribute to dataset input section (seeexample.danra.yaml
)projections
section will acceptcrs_wkt
, single-value projection attributes or both, withcrs_wkt
being prioritizedOff-topic-changes (though required for better testing):
flatten
-methodQuestions:
grid_mapping
attribute, e.g.static
and others which depend on thegrid_index
which can map tox
andy
? Is there a standard for this?