[GRASS-user] bil to netcdf format

Veronica Andreo veroandreo at gmail.com
Tue Dec 4 02:53:35 PST 2018


Hi Vishal,


El lun., 3 dic. 2018 18:34, Vishal Mehta <vishalm1975 at gmail.com> escribió:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181204/6951b666/attachment.html>


More information about the grass-user mailing list