Skip to content

Commit

Permalink
#2218 Added dy_km
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Jan 27, 2023
1 parent 5e055ae commit 82735e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libcode/vx_grid/find_grid_by_name.cc
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ sdata.eccentricity = 0.;
sdata.false_east = 0.;
sdata.false_north = 0.;
sdata.scale_factor = 1.0;
sdata.dy_km = sdata.d_km;

ToGrid = new Grid ( sdata );

Expand Down
2 changes: 2 additions & 0 deletions src/libcode/vx_grid/grid_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ mlog << Debug(grid_debug_level)
<< " y_pin: " << y_pin << "\n"
<< " lon_orient: " << lon_orient << "\n"
<< " d_km: " << d_km << "\n"
<< " dy_km: " << dy_km << "\n"
<< " r_km: " << r_km << "\n"
<< " nx: " << nx << "\n"
<< " ny: " << ny << "\n\n";
Expand Down Expand Up @@ -1313,6 +1314,7 @@ if ( st1->nx == st2->nx &&
is_eq (rescale_lon(st1->lon_orient),
rescale_lon(st2->lon_orient), loose_tol) &&
is_eq (st1->d_km, st2->d_km, loose_tol) &&
is_eq (st1->dy_km, st2->dy_km, loose_tol) &&
is_eq (st1->r_km, st2->r_km, loose_tol) ) status = true;

return ( status );
Expand Down
1 change: 1 addition & 0 deletions src/libcode/vx_grid/st_grid_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ struct StereographicData {
double false_east;
double false_north;
double scale_factor;
double dy_km;

void dump();
};
Expand Down

0 comments on commit 82735e6

Please sign in to comment.