NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

SHADE/MOD on fields where longitude coords do not span 360 degrees #823

Closed karlmsmith closed 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 13 Nov 2007 20:51 UTC Can get smearing behavior when we do a SHADE/MOD and the region is a subset of a field that spans all longitudes, or when the intput field itself is just a portion of the globe.

This example uses data from the benchmark suite

yes? use "/home/porter/ansley/x86_64-linux/FERRET/bench/tripolar_subset.nc" yes? shade/lev=100/mod/hlim=-180:180 ht[i=100:180], geolon_vert_t[i=100:180], geolat_vert_t[i=100:180]

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1551

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 13 Nov 2007 20:57 UTC This had been fixed earlier this fall - detect in curv_coord_add_sub.F whether the longitude field spans 360 degrees of longitude, and apply the modulo shift accordingly.

Changes in fer/ccr/save_arg_pointers.c fer/plt/curv_coord_add_sub.F ppl/tmapadds/shade_fill_it.F

karlmsmith commented 6 years ago

Attachment from @AnsleyManke on 13 Nov 2007 20:52 UTC The plot from the example in the report. bug1551

karlmsmith commented 6 years ago

Attachment from @AnsleyManke on 13 Nov 2007 20:58 UTC here is the corrected plot bugfix1551