-
Notifications
You must be signed in to change notification settings - Fork 16
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 cartesian projection #168
Conversation
I didn't create tests for this as we don't have any idealized files in xwrf-data. @MaxEtherington could you maybe share some? |
My instinct would be skipping grid/projection handling for this case rather than adding a possibly fictitious (since there isn't really a datum or projection to be referred to?) identity transformation, but having no real experience with idealized WRF output, I'd definitely defer to others with more experience. In any case, I'd agree that there should be at least some test of this (either way it is implemented) before going in. |
I see your point, @jthielen - was thinking the exact same thing. However, since we probably still want to create the coordinate values for the @MaxEtherington what do you think of this implementation? And could you provide us with test files? |
Hi! Apologies for not getting back to you — I've been out on a geology mapping trip for the last week, and internet access has been correspondingly patchy. Regarding implementation, skipping the creation of a CRS seems best; in the simulations I've run, ideal.exe simply rips the input lat/lon from namelist.input and applies the same values uniformly to every cell in the grid. That is to say, those 'coordinates' don't resemble anything real. The wrfoutput files I've been working with are somewhat hefty (1.5–3.5 GB); how much would you like me to trim them down? How many timesteps would be useful? I'm admittedly fairly new to Github — what would be the best way to share them with you? |
Thanks for your reply. I'm fine with just not creating the CRS. In the end, if you're using idealized WRF runs, you should know what you are doing as a user. Regarding the data, I would ask you to make a pull request in the xarray-contrib/xwrf-data repo adding the respective file with a sensible name like |
@jthielen I added just one small test for the ideal file because the XLAT/XLONG coordinates don't seem to be sensible (they are all one value). If you have any further ideas what to test, let me know. Otherwise this would be good to go from my POV |
@lpilz - I have a sample dataset we can pull in here - I wonder if we just make the projection optional as well, as we do with other postprocessing steps? |
same thing here - let me know if you need a review @lpilz |
Thanks! We already have a dataset in xwrf-data but if you think that there is something missing, we can of course add yours as well :) Regarding the projection: That's probably a good idea, refactoring it to make it more intuitively useable was something that was on my mind anyways... Let's discuss this in a new issue.
And if you could review, that would be great :) |
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.
Looks good to me - thanks @lpilz !
Change Summary
Added cartesian projection in grid treatment. This will cause the transformation (L64/66) to be an identity transformation. There could also be an argument for raising an error and just skipping the creation of the CRS and these coordinates as the idealized lat/lons probably don't correspond to actual coordinates.
Related issue number
Closes #163
Checklist