CALIPSO-project / SPINacc

A spinup acceleration procedure for land surface models (LSM)
4 stars 0 forks source link

ORCHIDEE-v3 : generalize latitude name in climate forcings #27

Closed gaillardr closed 1 year ago

gaillardr commented 1 year ago

In forcings.py, l.58 and l.59, the following elif statement only works if the latitude variable is named "lat" in the climate forcing. I propose to also accept "latitude" and "y" names that are common as well.

It would consiste in the following modification of l.58 and l.59 :

      elif var in ["lat","latitude","y"]: ncout.variables[var][:] = plat
      elif var in ["lon","longitude","x"]: ncout.variables[var][:] = plon
vbast commented 1 year ago

Done in commit c15f869. The issue can be closed now.

dsgoll123 commented 1 year ago

closed