netcdf file:/C:/home/nclimgrid/nclimgrid_prcp_mini.nc
{ dimensions: lat = 30; lon = 70; time = UNLIMITED; // (240 currently variables: float lat(lat=30); :long_name = "latitude"; :standard_name = "latitude"; float lon(lon=70); :long_name = "longitude"; :standard_name = "longitude"; float prcp(time=240, lon=70, lat=30); :standard_name = "precipitation"; :long_name = "Precipitation, total"; :units = "millimeters"; :valid_max = 2000.0f; // float :valid_min = 0.0f; // float :_FillValue = -999.9f; // float :missing_value = -999.9f; // float int time(time=240); :long_name = "time"; :standard_name = "time"; :units = "days since 1800-01-01 00:00:00"; :calendar = "gregorian"; // global attributes: :standard_name_vocabulary = "CF Standard Name Table (v26, 08 November 2013)"; :date_created = "2016-04-08 11:27:55"; :date_modified = "2016-04-08 11:27:55"; :geospatial_lon_max = -67.0209f; // float :geospatial_lat_max = 49.3542f; // float :geospatial_lon_min = -124.6875f; // float :geospatial_lat_min = 24.5625f; // float }
--
You received this message because you are subscribed to the Google Groups "xarray" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xarray+un...@googlegroups.com.
To post to this group, send email to xar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/be9c4d6a-35e9-4c02-91a0-fe6d0d431ca6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dataset type: Hierarchical Data Format, version 5
netcdf file:/C:/tmp/toy.nc { dimensions: lat = 2; lon = 2; time = 3; variables: int prcp(time=3, lon=2, lat=2); double lat(lat=2); double lon(lon=2); long time(time=3); :calendar = "proleptic_gregorian"; :units = "days since 2014-06-09 00:00:00"; }
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/e5f71296-4b23-408c-a3f9-8c638b9cf069%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "xarray" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xarray/fz7HHgpgwk0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xarray+un...@googlegroups.com.
To post to this group, send email to xar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/CAEQ_TvdJz%3Do-TLxJ5PjcVH%2BAQEPyTG%2BaSPkRop%2Bfn9sJzJgD9Q%40mail.gmail.com.
It seems that the approach Ryan suggested is doing the reverse of what I want to do, in that it appears to be grouping the grid cells (lon/lat pairs) by time step rather than the other way around. But I don't see how you can do things the right way if groupby() is limited to a single dimension.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/CACafSV%3DvZe8uk30FHQL0FiVNmoS9x-kbgJep5ph5WP99Q95tVg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/CAJAZx5BZZE9%3DzX5E5poxMfL1Th%3DVX%3DxF8CTa1v6ifF5OONRemg%40mail.gmail.com.
Ryan's example code uses a DataArray, whereas my current code operates on a Dataset. I assume that if you apply a function to a grouped DataArray then it's applied to the component (grouped) arrays of the DataArray. But when a function is applied to a grouped Dataset does it get applied to all grouped data variables of the Dataset? Is this the main difference between Datasets and DataArrays to consider when doing a split-apply-combine?
Ryan's example code appears to make several copies of the original DataArray (da, stacked, trend, and trend_unstacked), whereas in my code I've been overwriting my Dataset in order to conserve/reuse memory. Is there a reason to avoid this overwrite/reuse approach or is this reasonable? Does xarray have some magic under the covers which provides views of the original DataArray in order to avoid copies?
--
You received this message because you are subscribed to a topic in the Google Groups "xarray" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xarray/fz7HHgpgwk0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xarray+un...@googlegroups.com.
To post to this group, send email to xar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/CAEQ_Tvfh1G0a8FBFUJKECbECnGMDb-5LXpRtHkA6eTbKASRk3A%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "xarray" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xarray+un...@googlegroups.com.
To post to this group, send email to xar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/CACafSVnXYfYX8w-5vSz-fo0NiB2b52C_7SeHk8dBjXe1aAcKpA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/4a1f888d-2bc1-4f27-b82b-d97098addd3e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/CAEQ_Tvf-20XSLnr-XggJMFR5DyzpYoMWp%3DXegofw8fysNbr-TQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/aa8f823a-083a-4a12-b42f-7368a1fee87f%40googlegroups.com.