Skip to content

Commit

Permalink
Bug fix direction mapping and CSV output
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Oct 30, 2024
1 parent 3793c51 commit 2c13553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion das2/vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DasErrCode das_geovec_values(das_geovec* pThis, double* pValues)
/* Remap based on dirs, sure wish I had room to save this away */
int dirs[3] = {0};
for(int i = 0; i < pThis->ncomp; ++i)
dirs[i] = (pThis->dirs << i*2)&0x3;
dirs[i] = (pThis->dirs >> i*2)&0x3;

switch(pThis->et){
case vtByte:
Expand Down
3 changes: 2 additions & 1 deletion utilities/das3_csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ void _prnVecLblHdr(const DasDim* pDim, const DasVar* pVar)
DasVar_vecMap(pVar, &uDirs, aDirs);

char psLabels[3][32] = {'\0'};
int nLabels = das_makeCompLabels(pVar, (char**) psLabels, 32);
char* ptrs[3] = {&(psLabels[0][0]), &(psLabels[1][0]), &(psLabels[2][0]) };
int nLabels = das_makeCompLabels(pVar, (char**) ptrs, 32);

for(int i = 0; i < uDirs; ++i){
if(i > 0)
Expand Down

0 comments on commit 2c13553

Please sign in to comment.