metno / emep-ctm

Open Source EMEP/MSC-W model
GNU General Public License v3.0
27 stars 18 forks source link

manual grid definition #100

Closed wichinkkruit closed 9 months ago

wichinkkruit commented 2 years ago

In gridvalues_mod.f90 there is a possibility to define your own grid. One of the options is to use a grid_def.nc file. Can anyone provide an example of this file? Or is there an easier way to define your own grid?

gitpeterwind commented 2 years ago

Hi Roy, This option(s) has not been used or maintained for many years. Probably it won't work without some testing and adaptations. The best way would be to project the meteorological files in the grid you want to use. (or better, make the meteorology directly in the right grid of course). The model would anyway do a simple interpolation of the met fields also with the "manual grid" option.. Is there a special reason why you want to use this option?

wichinkkruit commented 2 years ago

Hi Peter, we would like to run the model on a resolution/with emissions that is/are 3 times higher than the meteo files. Or do you think it's easier to generate the meteofiles on the same resolution as the emissions. I thought to save some storage capacity by using the meteo on a coarser horizontal resolution.

gitpeterwind commented 2 years ago

I understand. It would be cleaner to interpolate the metfields. If you are willing to try and test, you could try to reactivate the "Manual_Grid" option. This means that all the grid parameters have to be hardcoded in the fortran routine. Then the metdata will be interpolated by the model on the fly. I attach an old version of the fortran file, where an example is given (it used rotated spherical projection, which is a bit more complicated) GridValues_ml.f90.TXT .

mifads commented 9 months ago

No action here for 1½ years, so close for now. Just re-open if needed.