Skip to content

Commit

Permalink
Bug fix for codecs gt 64 in a dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Jun 12, 2024
1 parent a831ea7 commit 0263767
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions das2/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ DasErrCode DasCodec_init(

UNSUPPORTED:
if(bDateTime)
return das_error(DASERR_ENC, "Can not encode/decode datetime data from buffers "
"with encoding '%s' for items of %hs bytes each to/from an array of "
" '%s' type elements with time units of '%s'", sEncType, nSzEach,
das_vt_toStr(vtAry), epoch == NULL ? "none" : Units_toStr(epoch)
return das_error(DASERR_ENC, "For array %s: Can not encode/decode datetime data from buffers "
"with encoding '%s' for items of %hd bytes each to/from an array of "
" '%s' type elements with time units of '%s'", DasAry_id(pAry), sEncType,
nSzEach, das_vt_toStr(vtAry), epoch == NULL ? "none" : Units_toStr(epoch)
);
else
return das_error(DASERR_ENC, "Can not encode/decode '%s' data from buffers "
"with encoding '%s' for items of %hs bytes each to/from an array of "
" '%s' type elements", sSemantic, sEncType, nSzEach, das_vt_toStr(vtAry)
return das_error(DASERR_ENC, "For array %s: Can not encode/decode '%s' data from buffers "
"with encoding '%s' for items of %hd bytes each to/from an array of "
" '%s' type elements", DasAry_id(pAry), sSemantic, sEncType, nSzEach, das_vt_toStr(vtAry)
);
}

Expand Down
4 changes: 2 additions & 2 deletions utilities/das3_cdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void prnHelp()
" summary -> CATDESC\n"
" notes -> VAR_NOTES\n"
" format -> FORMAT\n"
" frame -> VECTOR_FRAME\n"
" frame -> REFERENCE_FRAME\n"
" nominalMin,nominalMax -> LIMITS_NOMINAL_MIN,LIMITS_NOMINAL_MAX\n"
" scaleMin,scaleMax -> SCALEMIN,SCALEMAX\n"
" scaleType -> SCALETYP\n"
Expand Down Expand Up @@ -476,7 +476,7 @@ const char* DasProp_cdfVarName(const DasProp* pProp)
if(strcmp(sName, "info" ) == 0) return "VAR_NOTES";
if(strcmp(sName, "notes" ) == 0) return "VAR_NOTES";

if(strcmp(sName, "frame" ) == 0) return "VECTOR_FRAME";
if(strcmp(sName, "frame" ) == 0) return "REFERENCE_FRAME";

if(strcmp(sName, "fill" ) == 0) return "FILLVAL";
if(strcmp(sName, "format" ) == 0) return "FORMAT";
Expand Down

0 comments on commit 0263767

Please sign in to comment.