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
Curious for your response,
Vishal
···
Vishal K. Mehta, PhD
Sr. Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org
Hi Vishal,
El lun., 3 dic. 2018 18:34, Vishal Mehta <vishalm1975@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