<div dir="auto"><div>Hi Vishal,<div dir="auto"><br></div><br><div class="gmail_quote"><div dir="ltr">El lun., 3 dic. 2018 18:34, Vishal Mehta <<a href="mailto:vishalm1975@gmail.com" target="_blank" rel="noreferrer">vishalm1975@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I'm wondering if anyone has interest and experience in piecing together a sensible multitempral multivariate netcdf file from a bunch of individual .bil files.</div><div><br></div><div>The dataset is the US -wide PRISM (1895-2018, monthly)</div><div><br></div><div>The main goal is to get spatial averages of each variable and time step for a bunch of watersheds. I have a tool that can extract this into my hydrology model from a netcdf file, hence the interest in netcdf.<br></div><div> <br></div><div>IALternately, 'm comfortable with an approach of converting it into GRASS rasters and then extracting what i need using bash scripting.</div><div><br></div><div>However i was wondering of two perhaps better workflows:</div><div>one, that uses the space times framework. It would be nice to have a manual or example, that went:</div><div><br></div><div>PRISM .bil -> strds -> netcdf</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I have not tried myself, but this could be a possible way:</div><div dir="auto"><br></div><div dir="auto">#import bil files</div><div dir="auto">r.in.bin</div><div dir="auto">#create strds and register maps (per variable)</div><div dir="auto">t.create</div><div dir="auto">t.register</div><div dir="auto">#convert each strds to 3d raster</div><div dir="auto">t.rast.to.rast3</div><div dir="auto">#export to netcdf</div><div dir="auto">r.out.gdal</div><div dir="auto"><br></div><div dir="auto">For time series issues, there's this wiki: <a href="https://grasswiki.osgeo.org/wiki/Temporal_data_processing">https://grasswiki.osgeo.org/wiki/Temporal_data_processing</a> and references therein</div><div dir="auto"><br></div><div dir="auto">Now, I'm curious if it will work ;)</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Vero</div></div>