revised with shape files
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/17d0c6f5 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/17d0c6f5 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/17d0c6f5 Branch: refs/heads/master Commit: 17d0c6f5866e3d7a00beaceff374ee1e8a559859 Parents: 02dfdec Author: huikyole <[email protected]> Authored: Tue Aug 2 21:54:42 2016 -0700 Committer: huikyole <[email protected]> Committed: Tue Aug 2 21:54:42 2016 -0700 ---------------------------------------------------------------------- ocw/dataset.py | 2 +- ocw/shape/countries.dbf | Bin 0 -> 208900 bytes ocw/shape/countries.prj | 1 + ocw/shape/countries.shp | Bin 0 -> 31413360 bytes ocw/shape/countries.shx | Bin 0 -> 2220 bytes ocw/shape/usa_states.dbf | Bin 0 -> 12962 bytes ocw/shape/usa_states.shp | Bin 0 -> 222344 bytes ocw/shape/usa_states.shx | Bin 0 -> 508 bytes 8 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/dataset.py ---------------------------------------------------------------------- diff --git a/ocw/dataset.py b/ocw/dataset.py index 52e610a..cc2043e 100644 --- a/ocw/dataset.py +++ b/ocw/dataset.py @@ -254,7 +254,7 @@ class Bounds(object): def __init__(self, boundary_type='rectangular', us_states=None, countries=None, user_mask_file=None, mask_variable_name=None, longitude_name=None, latitude_name=None, - lat_min=None, lat_max=None, lon_min=None, lon_max=None, + lat_min=-90, lat_max=90, lon_min=-180, lon_max=180, start=None, end=None): '''Default Bounds constructor :param boundary_type: The type of spatial subset boundary. http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/countries.dbf ---------------------------------------------------------------------- diff --git a/ocw/shape/countries.dbf b/ocw/shape/countries.dbf new file mode 100755 index 0000000..0ecd798 Binary files /dev/null and b/ocw/shape/countries.dbf differ http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/countries.prj ---------------------------------------------------------------------- diff --git a/ocw/shape/countries.prj b/ocw/shape/countries.prj new file mode 100755 index 0000000..f45cbad --- /dev/null +++ b/ocw/shape/countries.prj @@ -0,0 +1 @@ +GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/countries.shp ---------------------------------------------------------------------- diff --git a/ocw/shape/countries.shp b/ocw/shape/countries.shp new file mode 100755 index 0000000..7d40398 Binary files /dev/null and b/ocw/shape/countries.shp differ http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/countries.shx ---------------------------------------------------------------------- diff --git a/ocw/shape/countries.shx b/ocw/shape/countries.shx new file mode 100755 index 0000000..a441100 Binary files /dev/null and b/ocw/shape/countries.shx differ http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/usa_states.dbf ---------------------------------------------------------------------- diff --git a/ocw/shape/usa_states.dbf b/ocw/shape/usa_states.dbf new file mode 100755 index 0000000..ae67cce Binary files /dev/null and b/ocw/shape/usa_states.dbf differ http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/usa_states.shp ---------------------------------------------------------------------- diff --git a/ocw/shape/usa_states.shp b/ocw/shape/usa_states.shp new file mode 100755 index 0000000..4e52c28 Binary files /dev/null and b/ocw/shape/usa_states.shp differ http://git-wip-us.apache.org/repos/asf/climate/blob/17d0c6f5/ocw/shape/usa_states.shx ---------------------------------------------------------------------- diff --git a/ocw/shape/usa_states.shx b/ocw/shape/usa_states.shx new file mode 100755 index 0000000..b707b99 Binary files /dev/null and b/ocw/shape/usa_states.shx differ
