[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-user
Subject:    Re: [GRASS-user] bil to netcdf format
From:       Veronica Andreo <veroandreo () gmail ! com>
Date:       2018-12-04 10:53:35
Message-ID: CAAMki4Hk629UwucCgMANaGA1FeCWQQxbLQyRbRhzouXthhgbnw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Vishal,


El lun., 3 dic. 2018 18:34, Vishal Mehta <vishalm1975@gmail.com> escribi=C3=
=B3:

> Hi All,
>
> 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.
>
> The dataset is the US -wide PRISM (1895-2018, monthly)
>
> 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.
>
> IALternately, 'm comfortable with an approach of converting it into GRASS
> rasters and then extracting what i need using bash scripting.
>
> However i was wondering of two perhaps better workflows:
> one, that uses the space times framework. It would be nice to have a
> manual or example, that went:
>
> PRISM .bil -> strds -> netcdf
>

I have not tried myself, but this could be a possible way:

#import bil files
r.in.bin
#create strds and register maps (per variable)
t.create
t.register
#convert each strds to 3d raster
t.rast.to.rast3
#export to netcdf
r.out.gdal

For time series issues, there's this wiki:
https://grasswiki.osgeo.org/wiki/Temporal_data_processing and references
therein

Now, I'm curious if it will work ;)

Cheers,
Vero

[Attachment #5 (text/html)]

<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 &lt;<a \
href="mailto:vishalm1975@gmail.com" target="_blank" \
rel="noreferrer">vishalm1975@gmail.com</a>&gt; 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&#39;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, &#39;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 \
-&gt; strds -&gt; 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&#39;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&#39;m \
curious if it will work ;)</div><div dir="auto"><br></div><div \
dir="auto">Cheers,</div><div dir="auto">Vero</div></div>


[Attachment #6 (text/plain)]

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic