Skip to content
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

defining own regions by reducing latitudes & longitudes #252

Closed
markcollier opened this issue Mar 26, 2015 · 5 comments
Closed

defining own regions by reducing latitudes & longitudes #252

markcollier opened this issue Mar 26, 2015 · 5 comments

Comments

@markcollier
Copy link

Is it possible to define my own regions, in addition to the 4 currently defined. For example, I want to define a box that covers Australia, say longitude 110:160 and latitude 10s:50s? I could call this "OZBOX".
I see:
.../PCMDI_METRICS/v1p0/tmp/metrics/src/python/pcmdi/mean
_climate_metrics_calculations.py
allows to loop over a subset of latitude, can longitude be performed?
Regards,
Mark.

@doutriaux1 doutriaux1 added this to the 2.0 milestone Mar 26, 2015
@doutriaux1 doutriaux1 self-assigned this Mar 26, 2015
@durack1
Copy link
Collaborator

durack1 commented Mar 31, 2015

@markcollier this functionality is available, however it's use is not clearly documented in the parameter file examples - @doutriaux1 has self-assigned this and we'll let you know when we have something to test

@doutriaux1
Copy link
Contributor

@durack1 I don't think it is implemented at all yet. All we can do so far is select land/ocean
I plan on letting you use more sophisticated masks in the future, but I think what @markcollier really wants is a subset of lat/lons (e.g. elnino area) which is not implemented at all. That could be done though via a "user-defined" diagnostic.

@durack1
Copy link
Collaborator

durack1 commented Apr 7, 2015

@doutriaux1 yes exactly, we already have the domains specified in https://github.com/PCMDI/pcmdi_metrics/blob/master/src/python/pcmdi/mean_climate_metrics_calculations.py ('GLB','NHEX','TROPICS','SHEX') we just need to expose this list and their definition to the parameter file

@markcollier
Copy link
Author

Is it just a case of adding in another domain, and somehow specifying that I want to work over limited longitudes too?
eg.
domains = ['GLB','NHEX','TROPICS','SHEX','OZ']
if dom == 'OZ':
dm = dm_glb(latitude = (-50.,-10),longitude = (110.,115.))
do = do_glb(latitude = (-50.,-10),longitude = (110.,115.))
sorry my python skills are not enough to know how to test this...

@doutriaux1 doutriaux1 reopened this May 26, 2015
@gleckler1 gleckler1 modified the milestones: 2.0, 1.5 May 25, 2016
@durack1 durack1 modified the milestones: 1.1.1, 1.5 Jul 14, 2016
@doutriaux1
Copy link
Contributor

@markcollier #361 will actually implement this. It was a quick fix wasn't it 😜 Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants