Browse Source

No need to convert latitudes

interpolate
Michael Uleysky 2 years ago
parent
commit
368ce8f329
  1. 4
      include/HYCOM.h
  2. 4
      include/NEMO.h

4
include/HYCOM.h

@ -324,8 +324,8 @@ class HYCOMData
{
real lon1 = ToGeoDomainPos(args.at("lonb").ToReal());
real lon2 = ToGeoDomainPos(args.at("lone").ToReal());
real lat1 = ToGeoDomainPos(args.at("latb").ToReal());
real lat2 = ToGeoDomainPos(args.at("late").ToReal());
real lat1 = args.at("latb").ToReal();
real lat2 = args.at("late").ToReal();
ppar->yb = static_cast<size_t>(Floor((lat1 - latb) / latstep));
ppar->ye = static_cast<size_t>(Ceil((lat2 - latb) / latstep));

4
include/NEMO.h

@ -347,8 +347,8 @@ class NEMOData
{
real lon1 = ToGeoDomainNeg(args.at("lonb").ToReal());
real lon2 = ToGeoDomainNeg(args.at("lone").ToReal());
real lat1 = ToGeoDomainNeg(args.at("latb").ToReal());
real lat2 = ToGeoDomainNeg(args.at("late").ToReal());
real lat1 = args.at("latb").ToReal();
real lat2 = args.at("late").ToReal();
ppar->yb = static_cast<size_t>(Floor((lat1 - latb) / latstep));
ppar->ye = static_cast<size_t>(Ceil((lat2 - latb) / latstep));

Loading…
Cancel
Save