Skip to content

Commit 1b33126

Browse files
committed
corrected indexing into geotransform array in cetb_file.c
1 parent 144bc14 commit 1b33126

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/prod/cetb_file/src/cetb_file.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,10 +1855,10 @@ int fetch_crs( cetb_file_class *this, int template_fid ) {
18551855
}
18561856

18571857
if ( ( status = nc_put_att_text( this->fid, crs_id, "GeoTransform",
1858-
strlen( cetb_geotransform[this->region_id][this->resolution_id] ),
1859-
cetb_geotransform[this->region_id][this->resolution_id] ) ) ) {
1858+
strlen( cetb_geotransform[this->region_id][this->factor] ),
1859+
cetb_geotransform[this->region_id][this->factor] ) ) ) {
18601860
fprintf( stderr, "%s: Error setting %s to %s: %s.\n",
1861-
__FUNCTION__, "GeoTransform", cetb_geotransform[this->region_id][this->resolution_id],
1861+
__FUNCTION__, "GeoTransform", cetb_geotransform[this->region_id][this->factor],
18621862
nc_strerror( status ) );
18631863
return 1;
18641864
}

0 commit comments

Comments
 (0)